pkgsrc-Changes archive

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

CVS commit: pkgsrc/archivers/py-zstandard



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Jan 19 06:04:35 UTC 2022

Modified Files:
        pkgsrc/archivers/py-zstandard: Makefile distinfo
        pkgsrc/archivers/py-zstandard/patches: patch-c-ext_backend__c.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 pkgsrc/archivers/py-zstandard/Makefile \
    pkgsrc/archivers/py-zstandard/distinfo
cvs rdiff -u -r1.2 -r1.3 \
    pkgsrc/archivers/py-zstandard/patches/patch-c-ext_backend__c.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/archivers/py-zstandard/Makefile
diff -u pkgsrc/archivers/py-zstandard/Makefile:1.21 pkgsrc/archivers/py-zstandard/Makefile:1.22
--- pkgsrc/archivers/py-zstandard/Makefile:1.21 Tue Jan  4 20:52:32 2022
+++ pkgsrc/archivers/py-zstandard/Makefile      Wed Jan 19 06:04:35 2022
@@ -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 @@ PYSETUPBUILDARGS+=    --system-zstd
 
 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"
Index: pkgsrc/archivers/py-zstandard/distinfo
diff -u pkgsrc/archivers/py-zstandard/distinfo:1.21 pkgsrc/archivers/py-zstandard/distinfo:1.22
--- pkgsrc/archivers/py-zstandard/distinfo:1.21 Thu Dec  2 11:24:50 2021
+++ pkgsrc/archivers/py-zstandard/distinfo      Wed Jan 19 06:04:35 2022
@@ -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

Index: pkgsrc/archivers/py-zstandard/patches/patch-c-ext_backend__c.c
diff -u pkgsrc/archivers/py-zstandard/patches/patch-c-ext_backend__c.c:1.2 pkgsrc/archivers/py-zstandard/patches/patch-c-ext_backend__c.c:1.3
--- pkgsrc/archivers/py-zstandard/patches/patch-c-ext_backend__c.c:1.2  Thu Dec  2 11:24:50 2021
+++ pkgsrc/archivers/py-zstandard/patches/patch-c-ext_backend__c.c      Wed Jan 19 06:04:35 2022
@@ -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 @@ Do not use hardcoded version number.
      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