Received: by mail.netbsd.org (Postfix, from userid 605) id 330B284E74; Mon, 22 Oct 2018 15:31:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 3DEC184E6A for ; Mon, 22 Oct 2018 15:31:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id w3Ao02HjnT-v for ; Mon, 22 Oct 2018 15:31:00 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 6135584D53 for ; Mon, 22 Oct 2018 15:31:00 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 4F784FBEE; Mon, 22 Oct 2018 15:31:00 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1540222260295250" MIME-Version: 1.0 Date: Mon, 22 Oct 2018 15:31:00 +0000 From: "Adam Ciarcinski" Subject: CVS commit: pkgsrc/archivers/py-zstandard To: pkgsrc-changes@NetBSD.org Reply-To: adam@netbsd.org X-Mailer: log_accum Message-Id: <20181022153100.4F784FBEE@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1540222260295250 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: adam Date: Mon Oct 22 15:31:00 UTC 2018 Modified Files: pkgsrc/archivers/py-zstandard: Makefile distinfo Log Message: py-zstandard: updated to 0.10.1 0.10.1: Backwards Compatibility Notes * ZstdCompressor.stream_reader().closed is now a property instead of a method. * ZstdDecompressor.stream_reader().closed is now a property instead of a method. Changes * Stop attempting to package Python 3.6 for Miniconda. The latest version of Miniconda is using Python 3.7. The Python 3.6 Miniconda packages were a lie since this were built against Python 3.7. * ZstdCompressor.stream_reader()'s and ZstdDecompressor.stream_reader()'s closed attribute is now a read-only property instead of a method. This now properly matches the IOBase API and allows instances to be used in more places that accept IOBase instances. 0.10.0: Backwards Compatibility Notes * ZstdDecompressor.stream_reader().read() now consistently requires an argument in both the C and CFFI backends. Before, the CFFI implementation would assume a default value of -1, which was later rejected. * The compress_literals argument and attribute has been removed from zstd.ZstdCompressionParameters because it was removed by the zstd 1.3.5 API. * ZSTD_CCtx_setParametersUsingCCtxParams() is no longer called on every operation performed against ZstdCompressor instances. The reason for this change is that the zstd 1.3.5 API no longer allows this without calling ZSTD_CCtx_resetParameters() first. But if we called ZSTD_CCtx_resetParameters() on every operation, we'd have to redo potentially expensive setup when using dictionaries. We now call ZSTD_CCtx_reset() on every operation and don't attempt to change compression parameters. * Objects returned by ZstdCompressor.stream_reader() no longer need to be used as a context manager. The context manager interface still exists and its behavior is unchanged. * Objects returned by ZstdDecompressor.stream_reader() no longer need to be used as a context manager. The context manager interface still exists and its behavior is unchanged. Bug Fixes * ZstdDecompressor.decompressobj().decompress() should now return all data from internal buffers in more scenarios. Before, it was possible for data to remain in internal buffers. This data would be emitted on a subsequent call to decompress(). The overall output stream would still be valid. But if callers were expecting input data to exactly map to output data (say the producer had used flush(COMPRESSOBJ_FLUSH_BLOCK) and was attempting to map input chunks to output chunks), then the previous behavior would be wrong. The new behavior is such that output from flush(COMPRESSOBJ_FLUSH_BLOCK) fed into decompressobj().decompress() should produce all available compressed input. * ZstdDecompressor.stream_reader().read() should no longer segfault after a previous context manager resulted in error. * ZstdCompressor.compressobj().flush(COMPRESSOBJ_FLUSH_BLOCK) now returns all data necessary to flush a block. Before, it was possible for the flush() to not emit all data necessary to fully represent a block. This would mean decompressors wouldn't be able to decompress all data that had been fed into the compressor and flush()ed. New Features * New module constants BLOCKSIZELOG_MAX, BLOCKSIZE_MAX, TARGETLENGTH_MAX that expose constants from libzstd. * New ZstdCompressor.chunker() API for manually feeding data into a compressor and emitting chunks of a fixed size. Like compressobj(), the API doesn't impose restrictions on the input or output types for the data streams. Unlike compressobj(), it ensures output chunks are of a fixed size. This makes this API useful when the compressed output is being fed into an I/O layer, where uniform write sizes are useful. * ZstdCompressor.stream_reader() no longer needs to be used as a context manager. * ZstdDecompressor.stream_reader() no longer needs to be used as a context manager. * Bundled zstandard library upgraded from 1.3.4 to 1.3.6. Changes * Added zstd_cffi.py and NEWS.rst to MANIFEST.in. * zstandard.__version__ is now defined. * Upgrade pip, setuptools, wheel, and cibuildwheel packages to latest versions. * Upgrade various packages used in CI to latest versions. Notably tox (in order to support Python 3.7). * Use relative paths in setup.py to appease Python 3.7. * Added CI for Python 3.7. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 pkgsrc/archivers/py-zstandard/Makefile \ pkgsrc/archivers/py-zstandard/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1540222260295250 Content-Disposition: inline Content-Length: 2170 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/archivers/py-zstandard/Makefile diff -u pkgsrc/archivers/py-zstandard/Makefile:1.6 pkgsrc/archivers/py-zstandard/Makefile:1.7 --- pkgsrc/archivers/py-zstandard/Makefile:1.6 Mon Jun 18 10:45:32 2018 +++ pkgsrc/archivers/py-zstandard/Makefile Mon Oct 22 15:31:00 2018 @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.6 2018/06/18 10:45:32 adam Exp $ +# $NetBSD: Makefile,v 1.7 2018/10/22 15:31:00 adam Exp $ -DISTNAME= zstandard-0.9.1 +DISTNAME= zstandard-0.10.1 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= archivers python MASTER_SITES= ${MASTER_SITE_PYPI:=z/zstandard/} @@ -11,6 +11,10 @@ COMMENT= Zstandard bindings for Python LICENSE= modified-bsd DEPENDS+= ${PYPKGPREFIX}-cffi>=1.11:../../devel/py-cffi +TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis +PYSETUPBUILDARGS+= --system-zstd + +.include "../../archivers/zstd/buildlink3.mk" .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk" Index: pkgsrc/archivers/py-zstandard/distinfo diff -u pkgsrc/archivers/py-zstandard/distinfo:1.6 pkgsrc/archivers/py-zstandard/distinfo:1.7 --- pkgsrc/archivers/py-zstandard/distinfo:1.6 Mon Jun 18 10:45:32 2018 +++ pkgsrc/archivers/py-zstandard/distinfo Mon Oct 22 15:31:00 2018 @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.6 2018/06/18 10:45:32 adam Exp $ +$NetBSD: distinfo,v 1.7 2018/10/22 15:31:00 adam Exp $ -SHA1 (zstandard-0.9.1.tar.gz) = 2f17c5c19d12df84f57c5293955f695f6e482010 -RMD160 (zstandard-0.9.1.tar.gz) = 97dd22b38c1f6ae184d67189564249bbea8d842a -SHA512 (zstandard-0.9.1.tar.gz) = 73c5d069de5fa99fdbc98c4789cd511d43c0c884cf09309df67a544852407c84c78d0f1b409eb6d5f5b44ec5e4c47350fe67b1eb555a891f92f0c1453a6d8b20 -Size (zstandard-0.9.1.tar.gz) = 558984 bytes +SHA1 (zstandard-0.10.1.tar.gz) = f49a345131797d949f9ed7f4e9b5b19c0d801ccb +RMD160 (zstandard-0.10.1.tar.gz) = 23ba3e53473ca2faadc1635ace0406af6e58e329 +SHA512 (zstandard-0.10.1.tar.gz) = 9191ef460a8cab33cbd488e51ed122fb6c6e364ec3161f5d2933ba5d28dd98425b268bea9d9d47d44dbfb8316fd1d00579efc277310191a52203ef76ed822309 +Size (zstandard-0.10.1.tar.gz) = 611517 bytes +SHA1 (patch-zstd.c) = c884da8109768cc331c61fd3caa0b38b8d9c706e --_----------=_1540222260295250--