1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

textproc/py-file-read-backwards: New port

Memory efficient way of reading files line-by-line from the end of file

This package is for reading file backward line by line as unicode in a
memory efficient manner for both Python 2.7 and Python 3.

It currently supports ascii, latin-1, and utf-8 encodings.

It supports "\r", "\r\n", and "\n" as new lines.

WWW: https://github.com/RobinNil/file_read_backwards

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Muhammad Moinur Rahman 2024-10-10 09:38:17 +02:00
parent 1bf50b4e0e
commit 1c10b1f54d
No known key found for this signature in database
GPG Key ID: BDB9B5A617C0BC91
4 changed files with 34 additions and 0 deletions

View File

@ -1380,6 +1380,7 @@
SUBDIR += py-fasttext-predict
SUBDIR += py-faust-cchardet
SUBDIR += py-feedparser
SUBDIR += py-file-read-backwards
SUBDIR += py-fingerprints
SUBDIR += py-flor
SUBDIR += py-fluent.syntax

View File

@ -0,0 +1,24 @@
PORTNAME= file-read-backwards
DISTVERSION= 3.1.0
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME:S/-/_/g}-${DISTVERSION}
MAINTAINER= bofh@FreeBSD.org
COMMENT= Memory efficient way of reading files line-by-line from the end of file
WWW= https://github.com/RobinNil/file_read_backwards
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist concurrent distutils unittest2
NO_ARCH= yes
TEST_WRKSRC= ${WRKSRC}/tests
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1728545451
SHA256 (file_read_backwards-3.1.0.tar.gz) = bd04593bc1938a003224be451d5d735f1f4490e1e70a568ce8d330bb7652a684
SIZE (file_read_backwards-3.1.0.tar.gz) = 23328

View File

@ -0,0 +1,6 @@
This package is for reading file backward line by line as unicode in a
memory efficient manner for both Python 2.7 and Python 3.
It currently supports ascii, latin-1, and utf-8 encodings.
It supports "\r", "\r\n", and "\n" as new lines.