./devel/py-xopen, Open compressed files transparently

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.9.0, Package name: py37-xopen-0.9.0, Maintainer: bacon

This small Python module provides an xopen function that works like the
built-in open function, but can also deal with compressed files. Supported
compression formats are gzip, bzip2 and xz. They are automatically recognized
by their file extensions .gz, .bz2 or .xz.


Required to run:
[devel/py-setuptools] [archivers/pigz] [lang/python37]

Required to build:
[pkgtools/cwrappers] [devel/py-setuptools_scm]

Master sites:

SHA1: 51285841490ff72fab71bdca4374a3a888b4d050
RMD160: f67a389276dc11afa9358b6836f3a179cd0117c0
Filesize: 13.021 KB

Version history: (Expand)


CVS history: (Expand)


   2020-05-14 21:37:42 by Joerg Sonnenberger | Files touched by this commit (1)
Log message:
PYTHON_VERSIONS_INCOMPATIBLE must be set before including pyversion.mk.
Drop logic for unsupported versions.
   2020-04-03 18:20:50 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-xopen: updated to 0.9.0

v0.9.0
When the file name extension of a file to be opened for reading is not \ 
available, the content is inspected (if possible) and used to determine which \ 
compression format applies.
This release drops Python 2.7 and 3.4 support. Python 3.5 or later is now required.
   2019-10-27 00:48:55 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-xopen: updated to 0.8.4

v0.8.4:
Allow threads=0 to mean that no external pigz/gzip should be run.
Instead, regular gzip.open() is used.
   2019-10-19 08:41:10 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-xopen: updated to 0.8.3

v0.8.3
When reading gzipped files, let pigz use at most four threads by default. This \ 
limit previously only applied when writing to a file.
Support Python 3.8
   2019-09-06 08:04:17 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-xopen: updated to 0.8.2

v0.8.2
Skip newly introduced test on Python 2.7
io.TextIOWrapper(PipedGZipReader(...)) does not work, which is needed
for the test.
   2019-08-21 14:44:34 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-xopen: updated to 0.8.1

v0.8.1
Exiting with a SIGTERM exit code is fine when we sent it
When we forcefully close the subprocess with Popen.terminate(), we must not
complain that it returns an exit code of -15 (corresponding to SIGTERM).

v0.8.0
Speed improvements when iterating over gzipped files.
   2019-07-01 13:00:59 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-xopen: updated to 0.7.3

v0.7.3:
Add PipedGzipReader.flush()
To Do: Perhaps derive from IOBase instead. See a Python implementation in
_pyio.

v0.7.2:
Skip test on Python 2.7
I don’t want to entirely give up Python 2.7 compatibility, yet, but I also
don’t want to spend time fixing this.
   2019-06-21 09:54:16 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-xopen: updated to 0.7.1

0.7.1:
Add PipedGzipReader.seekable() and .peek()