pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/archivers/py-zstandard py-zstandard: updated to 0.17.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f82433f16810
branches:  trunk
changeset: 372072:f82433f16810
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Jan 19 06:04:35 2022 +0000

description:
py-zstandard: updated to 0.17.0

0.17.0 (released 2021-01-18)

Backwards Compatibility Notes

ZstdCompressionWriter and ZstdDecompressionWriter now implement __iter__() and __next__(). The methods always raise io.UnsupportedOperation. The added methods are part of the io.IOBase abstract base 
class / interface and help ensure instances look like other I/O types.
The HASHLOG3_MAX constant has been removed since it is no longer defined in zstd 1.5.1.

Bug Fixes

The ZstdCompressionReader, ZstdCompressionWriter, ZstdDecompressionReader, and ZstdDecompressionWriter types in the C backend now tracks their closed attribute using the proper C type. Before, due to 
a mismatch between the C struct type and the type declared to Python, Python could read the wrong bits on platforms like s390x and incorrectly report the value of the closed attribute to Python.

Changes

Bundled zstd library upgraded from 1.5.0 to 1.5.1.
The C backend now exposes the symbols ZstdCompressionReader, ZstdCompressionWriter, ZstdDecompressionReader, and ZstdDecompressionWriter. This should match the behavior of the CFFI backend.
ZstdCompressionWriter and ZstdDecompressionWriter now implement __iter__ and __next__, which always raise io.UnsupportedOperation.
Documentation on thread safety has been updated to note that derived objects like ZstdCompressionWriter have the same thread unsafety as the contexts they were derived from.

diffstat:

 archivers/py-zstandard/Makefile                         |   7 +++----
 archivers/py-zstandard/distinfo                         |  10 +++++-----
 archivers/py-zstandard/patches/patch-c-ext_backend__c.c |   4 ++--
 3 files changed, 10 insertions(+), 11 deletions(-)

diffs (56 lines):

diff -r 1312fc8a8444 -r f82433f16810 archivers/py-zstandard/Makefile
--- a/archivers/py-zstandard/Makefile   Wed Jan 19 06:02:25 2022 +0000
+++ b/archivers/py-zstandard/Makefile   Wed Jan 19 06:04:35 2022 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.21 2022/01/04 20:52:32 wiz Exp $
+# $NetBSD: Makefile,v 1.22 2022/01/19 06:04:35 adam Exp $
 
-DISTNAME=      zstandard-0.16.0
+DISTNAME=      zstandard-0.17.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    archivers python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=z/zstandard/}
 
@@ -18,7 +17,7 @@
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
-BUILDLINK_API_DEPENDS.zstd+=   zstd>=1.5.0
+BUILDLINK_API_DEPENDS.zstd+=   zstd>=1.5.1
 .include "../../archivers/zstd/buildlink3.mk"
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 1312fc8a8444 -r f82433f16810 archivers/py-zstandard/distinfo
--- a/archivers/py-zstandard/distinfo   Wed Jan 19 06:02:25 2022 +0000
+++ b/archivers/py-zstandard/distinfo   Wed Jan 19 06:04:35 2022 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.21 2021/12/02 11:24:50 adam Exp $
+$NetBSD: distinfo,v 1.22 2022/01/19 06:04:35 adam Exp $
 
-BLAKE2s (zstandard-0.16.0.tar.gz) = 88c934f4127cf2bf215266856fad41a2171075aeb0838427d94e979b33badac8
-SHA512 (zstandard-0.16.0.tar.gz) = f528cace58c1f1ec0fbea96e1646d92b05077ab6f5919eec07dc7b4fcfadf97dc848238928276fdb4333fb2cd035509af472ee352608661c3de681bc8dbed318
-Size (zstandard-0.16.0.tar.gz) = 563633 bytes
-SHA1 (patch-c-ext_backend__c.c) = 205801c19412c6d4b43fb3fac76db7990f97ee74
+BLAKE2s (zstandard-0.17.0.tar.gz) = 2de7fb51d6844b307bbff7e1f46369ad781b68cf454e73104f641a68cdcc6e82
+SHA512 (zstandard-0.17.0.tar.gz) = 312aa02c7309fac64cf70ca901942118d4b3f12f27d20cc18dcaba5ce155ad81ea8d7657501a33a5fb6cdc8bcca11f91141ea9d6c3fc09c28a84d698b9050391
+Size (zstandard-0.17.0.tar.gz) = 629456 bytes
+SHA1 (patch-c-ext_backend__c.c) = e66030166a04c355b941e0d524af59882ec70bb4
diff -r 1312fc8a8444 -r f82433f16810 archivers/py-zstandard/patches/patch-c-ext_backend__c.c
--- a/archivers/py-zstandard/patches/patch-c-ext_backend__c.c   Wed Jan 19 06:02:25 2022 +0000
+++ b/archivers/py-zstandard/patches/patch-c-ext_backend__c.c   Wed Jan 19 06:04:35 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-c-ext_backend__c.c,v 1.2 2021/12/02 11:24:50 adam Exp $
+$NetBSD: patch-c-ext_backend__c.c,v 1.3 2022/01/19 06:04:35 adam Exp $
 
 Do not use hardcoded version number.
 
@@ -8,7 +8,7 @@
      PyObject *features = NULL;
      PyObject *feature = NULL;
      unsigned zstd_ver_no = ZSTD_versionNumber();
--    unsigned our_hardcoded_version = 10500;
+-    unsigned our_hardcoded_version = 10501;
 -    if (ZSTD_VERSION_NUMBER != our_hardcoded_version ||
 -        zstd_ver_no != our_hardcoded_version) {
 +    if (ZSTD_VERSION_NUMBER != zstd_ver_no) {



Home | Main Index | Thread Index | Old Index