pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkgsrc: py-zstandard: updated to 0.9.0

branches:  trunk
changeset: 306027:3de3932cc4ad
user:      adam <>
date:      Mon Apr 09 07:37:33 2018 +0000
py-zstandard: updated to 0.9.0


Backwards Compatibility Notes

CFFI 1.11 or newer is now required (previous requirement was 1.8).
The primary module is now zstandard. Please change imports of zstd and zstd_cffi to import zstandard. See the README for more. Support for importing the old names will be dropped in the next release.
ZstdCompressor.read_from() and ZstdDecompressor.read_from() have been renamed to read_to_iter(). read_from() is aliased to the new name and will be deleted in a future release.
Support for Python 2.6 has been removed.
Support for Python 3.3 has been removed.
The selectivity argument to train_dictionary() has been removed, as the feature disappeared from zstd 1.3.
Support for legacy dictionaries has been removed. Cover dictionaries are now the default. train_cover_dictionary() has effectively been renamed to train_dictionary().
The allow_empty argument from ZstdCompressor.compress() has been deleted and the method now allows empty inputs to be compressed by default.
estimate_compression_context_size() has been removed. Use CompressionParameters.estimated_compression_context_size() instead.
get_compression_parameters() has been removed. Use CompressionParameters.from_level() instead.
The arguments to CompressionParameters.__init__() have changed. If you were using positional arguments before, the positions now map to different arguments. It is recommended to use keyword arguments 
to construct CompressionParameters instances.
TARGETLENGTH_MAX constant has been removed (it disappeared from zstandard 1.3.4).
ZstdCompressor.write_to() and ZstdDecompressor.write_to() have been renamed to ZstdCompressor.stream_writer() and ZstdDecompressor.stream_writer(), respectively. The old names are still aliased, but 
will be removed in the next major release.
Content sizes are written into frame headers by default (ZstdCompressor(write_content_size=True) is now the default).
CompressionParameters has been renamed to ZstdCompressionParameters for consistency with other types. The old name is an alias and will be removed in the next major release.

Bug Fixes

Fixed memory leak in ZstdCompressor.copy_stream().
Fixed memory leak in ZstdDecompressor.copy_stream().
Fixed memory leak of ZSTD_DDict instances in CFFI's ZstdDecompressor.

New Features

Bundlded zstandard library upgraded from 1.1.3 to 1.3.4. This delivers various bug fixes and performance improvements. It also gives us access to newer features.
Support for negative compression levels.
Support for long distance matching (facilitates compression ratios that approach LZMA).
Supporting for reading empty zstandard frames (with an embedded content size of 0).
Support for writing and partial support for reading zstandard frames without a magic header.
New stream_reader() API that exposes the io.RawIOBase interface (allows you to .read() from a file-like object).
Several minor features, bug fixes, and performance enhancements.
Wheels for Linux and macOS are now provided with releases.


Functions accepting bytes data now use the buffer protocol and can accept more types (like memoryview and bytearray).
Add #includes so compilation on OS X and BSDs works.
New ZstdDecompressor.stream_reader() API to obtain a read-only i/o stream of decompressed data for a source.
New ZstdCompressor.stream_reader() API to obtain a read-only i/o stream of compressed data for a source.
Renamed ZstdDecompressor.read_from() to ZstdDecompressor.read_to_iter(). The old name is still available.
Renamed ZstdCompressor.read_from() to ZstdCompressor.read_to_iter(). read_from() is still available at its old location.
Introduce the zstandard module to import and re-export the C or CFFI backend as appropriate. Behavior can be controlled via the PYTHON_ZSTANDARD_IMPORT_POLICY environment variable. See README for 
usage info.
Vendored version of zstd upgraded to 1.3.4.
Add STRATEGY_BTULTRA compression strategy constant.
Switch from deprecated ZSTD_getDecompressedSize() to ZSTD_getFrameContentSize() replacement.
ZstdCompressor.compress() can now compress empty inputs without requiring special handling.
ZstdCompressor and ZstdDecompressor now have a memory_size() method for determining the current memory utilization of the underlying zstd primitive.
train_dictionary() has new arguments and functionality for trying multiple variations of COVER parameters and selecting the best one.
Converted all consumers to the zstandard new advanced API, which uses ZSTD_compress_generic()
CompressionParameters.__init__ now accepts several more arguments, including support for long distance matching.
ZstdCompressionDict.__init__ now accepts a dict_type argument that controls how the dictionary should be interpreted. This can be used to force the use of content-only dictionaries or to require the 
presence of the dictionary magic header.
ZstdCompressionDict.precompute_compress() can be used to precompute the compression dictionary so it can efficiently be used with multiple ZstdCompressor instances.
Digested dictionaries are now stored in ZstdCompressionDict instances, created automatically on first use, and automatically reused by all ZstdDecompressor instances bound to that dictionary.
All meaningful functions now accept keyword arguments.
ZstdDecompressor.decompressobj() now accepts a write_size argument to control how much work to perform on every decompressor invocation.
ZstdCompressor.write_to() now exposes a tell(), which exposes the total number of bytes written so far.
ZstdDecompressor.stream_reader() now supports seek() when moving forward in the stream.
Removed TARGETLENGTH_MAX constant.
Added frame_header_size(data) function.
Added frame_content_size(data) function.
Consumers of ZSTD_decompress* have been switched to the new advanced decompression API.
ZstdCompressor and ZstdCompressionParams can now be constructed with negative compression levels.
ZstdDecompressor now accepts a max_window_size argument to limit the amount of memory required for decompression operations.
FORMAT_ZSTD1 and FORMAT_ZSTD1_MAGICLESS constants to be used with the format compression parameter to control whether the frame magic header is written.
ZstdDecompressor now accepts a format argument to control the expected frame format.
ZstdCompressor now has a frame_progression() method to return information about the current compression operation.
Error messages in CFFI no longer have b'' literals.
Compiler warnings and underlying overflow issues on 32-bit platforms have been fixed.
Builds in CI now build with compiler warnings as errors. This should hopefully fix new compiler warnings from being introduced.
Make ZstdCompressor(write_content_size=True) and CompressionParameters(write_content_size=True) the default.
CompressionParameters has been renamed to ZstdCompressionParameters.


 archivers/py-zstandard/Makefile |   6 +++---
 archivers/py-zstandard/PLIST    |   5 ++++-
 archivers/py-zstandard/distinfo |  10 +++++-----
 3 files changed, 12 insertions(+), 9 deletions(-)

diffs (52 lines):

diff -r 6f74121b27b3 -r 3de3932cc4ad archivers/py-zstandard/Makefile
--- a/archivers/py-zstandard/Makefile   Mon Apr 09 07:34:15 2018 +0000
+++ b/archivers/py-zstandard/Makefile   Mon Apr 09 07:37:33 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.4 2018/03/23 13:42:59 adam Exp $
+# $NetBSD: Makefile,v 1.5 2018/04/09 07:37:33 adam Exp $
-DISTNAME=      zstandard-0.8.2
+DISTNAME=      zstandard-0.9.0
 CATEGORIES=    archivers python
@@ -10,7 +10,7 @@
 COMMENT=       Zstandard bindings for Python
 LICENSE=       modified-bsd
-DEPENDS+=      ${PYPKGPREFIX}-cffi>=1.8:../../devel/py-cffi
+DEPENDS+=      ${PYPKGPREFIX}-cffi>=1.11:../../devel/py-cffi
 .include "../../lang/python/"
 .include "../../mk/"
diff -r 6f74121b27b3 -r 3de3932cc4ad archivers/py-zstandard/PLIST
--- a/archivers/py-zstandard/PLIST      Mon Apr 09 07:34:15 2018 +0000
+++ b/archivers/py-zstandard/PLIST      Mon Apr 09 07:37:33 2018 +0000
@@ -1,8 +1,11 @@
-@comment $NetBSD: PLIST,v 1.2 2017/10/23 10:24:18 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2018/04/09 07:37:33 adam Exp $
diff -r 6f74121b27b3 -r 3de3932cc4ad archivers/py-zstandard/distinfo
--- a/archivers/py-zstandard/distinfo   Mon Apr 09 07:34:15 2018 +0000
+++ b/archivers/py-zstandard/distinfo   Mon Apr 09 07:37:33 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.4 2018/03/23 13:42:59 adam Exp $
+$NetBSD: distinfo,v 1.5 2018/04/09 07:37:33 adam Exp $
-SHA1 (zstandard-0.8.2.tar.gz) = 604397105017ca6458c1b135fb42db9f765ac220
-RMD160 (zstandard-0.8.2.tar.gz) = 7ff76e03e65832ad2d3df528009fe7feb6ab3f0a
-SHA512 (zstandard-0.8.2.tar.gz) = a5a7dc9cb562fe00c8ff1f1230d8146d30ec40c5d911ed0d6189703a365da83b733b556a332acbdfd1467bb3bf054c19dc0261820c7d080aab4ba771a3eb3791
-Size (zstandard-0.8.2.tar.gz) = 463526 bytes
+SHA1 (zstandard-0.9.0.tar.gz) = 56e8a3dcd7b1956c914e04c808f92ebf3bbd295b
+RMD160 (zstandard-0.9.0.tar.gz) = 6fc627255ff20ad5266bf8f15cd1a93da88de1c1
+SHA512 (zstandard-0.9.0.tar.gz) = 72b1fc542e5af36fc660d7b8d3882f0a25644d3b66316293717aabf9ba8cf578e49e2cf45e63e962c5535ec1f8b3e83248c379d34b0cab2ef1a950205ad153ce
+Size (zstandard-0.9.0.tar.gz) = 558068 bytes

Home | Main Index | Thread Index | Old Index