Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-zstd for openSUSE:Factory 
checked in at 2022-10-14 15:41:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-zstd (Old)
 and      /work/SRC/openSUSE:Factory/.python-zstd.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-zstd"

Fri Oct 14 15:41:17 2022 rev:14 rq:1010360 version:1.5.2.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-zstd/python-zstd.changes  2022-06-04 
23:27:27.268781200 +0200
+++ /work/SRC/openSUSE:Factory/.python-zstd.new.2275/python-zstd.changes        
2022-10-14 15:41:59.107862877 +0200
@@ -1,0 +2,16 @@
+Wed Oct 12 18:36:28 UTC 2022 - Yogalakshmi Arunachalam <[email protected]>
+
+- Update to version 1.5.2.6 
+  * Fix a nasty bug - corrupted compression of empty string, and decompression 
too.
+  * Wheels
+    Generic automated builds are pushed to PyPi.
+    x86 and x64 builded under Ubuntu 16.04. And with sse+sse2 optimizations 
enabled via compiler.
+    armhf and arm64 builded under Ubuntu 18.04.
+    armhf builded on Raspberry PI 2B and optimized for it.
+    arm64 builded on Raspberry PI 4B and optimized for it.
+    There is no Python-3.10 for armhf yeat.
+    PyPy builds on arm64 missing 2.7 and 3.7 as they are broken.
+    MacOsX builds done inside 11.6 hackintosh
+    There is no builds for Windows.
+
+-------------------------------------------------------------------

Old:
----
  zstd-1.5.2.5.tar.gz

New:
----
  zstd-1.5.2.6.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-zstd.spec ++++++
--- /var/tmp/diff_new_pack.SfwmwA/_old  2022-10-14 15:41:59.599863698 +0200
+++ /var/tmp/diff_new_pack.SfwmwA/_new  2022-10-14 15:41:59.607863712 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-zstd
-Version:        1.5.2.5
+Version:        1.5.2.6
 Release:        0
 Summary:        ZSTD Bindings for Python
 License:        BSD-2-Clause

++++++ zstd-1.5.2.5.tar.gz -> zstd-1.5.2.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zstd-1.5.2.5/PKG-INFO new/zstd-1.5.2.6/PKG-INFO
--- old/zstd-1.5.2.5/PKG-INFO   2022-05-02 21:52:38.539810200 +0200
+++ new/zstd-1.5.2.6/PKG-INFO   2022-09-07 12:44:51.434485700 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: zstd
-Version: 1.5.2.5
+Version: 1.5.2.6
 Summary: ZSTD Bindings for Python
 Home-page: https://github.com/sergey-dryabzhinsky/python-zstd
 Author: Sergey Dryabzhinsky, Anton Stuk
@@ -9,7 +9,6 @@
 Maintainer-email: [email protected]
 License: BSD
 Keywords: zstd,zstandard,compression
-Platform: UNKNOWN
 Classifier: License :: OSI Approved :: BSD License
 Classifier: Intended Audience :: Developers
 Classifier: Development Status :: 5 - Production/Stable
@@ -31,7 +30,7 @@
 python-zstd
 =============
 
-.. |releaseW| image:: 
https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/build-wheels.yml/badge.svg?branch=v1.5.2.5
+.. |releaseW| image:: 
https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/build-wheels.yml/badge.svg?branch=v1.5.2.6
     :target: 
https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/build-wheels.yml
 
 .. |masterW| image:: 
https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/build-wheels.yml/badge.svg
@@ -260,5 +259,3 @@
    True
    >>> data == zstd.decompress(cdata_mt)
    True
-
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zstd-1.5.2.5/README.rst new/zstd-1.5.2.6/README.rst
--- old/zstd-1.5.2.5/README.rst 2022-05-02 21:51:56.000000000 +0200
+++ new/zstd-1.5.2.6/README.rst 2022-09-07 12:44:36.000000000 +0200
@@ -2,7 +2,7 @@
 python-zstd
 =============
 
-.. |releaseW| image:: 
https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/build-wheels.yml/badge.svg?branch=v1.5.2.5
+.. |releaseW| image:: 
https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/build-wheels.yml/badge.svg?branch=v1.5.2.6
     :target: 
https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/build-wheels.yml
 
 .. |masterW| image:: 
https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/build-wheels.yml/badge.svg
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zstd-1.5.2.5/setup.py new/zstd-1.5.2.6/setup.py
--- old/zstd-1.5.2.5/setup.py   2022-05-02 21:51:56.000000000 +0200
+++ new/zstd-1.5.2.6/setup.py   2022-09-07 12:44:36.000000000 +0200
@@ -14,7 +14,7 @@
 # Package version
 PKG_VERSION = VERSION
 # Minor versions
-PKG_VERSION += ("5",)
+PKG_VERSION += ("6",)
 PKG_VERSION_STR = ".".join([str(x) for x in PKG_VERSION])
 
 ###
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zstd-1.5.2.5/src/python-zstd.c 
new/zstd-1.5.2.6/src/python-zstd.c
--- old/zstd-1.5.2.5/src/python-zstd.c  2022-05-02 21:51:56.000000000 +0200
+++ new/zstd-1.5.2.6/src/python-zstd.c  2022-09-07 12:44:36.000000000 +0200
@@ -103,7 +103,7 @@
         return NULL;
     }
 
-    if (source_size > 0) {
+    if (source_size >= 0) {
         dest = PyBytes_AS_STRING(result);
 
         cctx = ZSTD_createCCtx();
@@ -150,8 +150,8 @@
         return NULL;
 #endif
 
-    dest_size = (uint64_t) ZSTD_getDecompressedSize(source, source_size);
-    if (dest_size == 0) {
+    dest_size = (uint64_t) ZSTD_getFrameContentSize(source, source_size);
+    if (dest_size == ZSTD_CONTENTSIZE_UNKNOWN || dest_size == 
ZSTD_CONTENTSIZE_ERROR) {
         PyErr_Format(ZstdError, "Input data invalid or missing content size in 
frame header.");
         return NULL;
     }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zstd-1.5.2.5/src/zstd.egg-info/PKG-INFO 
new/zstd-1.5.2.6/src/zstd.egg-info/PKG-INFO
--- old/zstd-1.5.2.5/src/zstd.egg-info/PKG-INFO 2022-05-02 21:52:38.000000000 
+0200
+++ new/zstd-1.5.2.6/src/zstd.egg-info/PKG-INFO 2022-09-07 12:44:51.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: zstd
-Version: 1.5.2.5
+Version: 1.5.2.6
 Summary: ZSTD Bindings for Python
 Home-page: https://github.com/sergey-dryabzhinsky/python-zstd
 Author: Sergey Dryabzhinsky, Anton Stuk
@@ -9,7 +9,6 @@
 Maintainer-email: [email protected]
 License: BSD
 Keywords: zstd,zstandard,compression
-Platform: UNKNOWN
 Classifier: License :: OSI Approved :: BSD License
 Classifier: Intended Audience :: Developers
 Classifier: Development Status :: 5 - Production/Stable
@@ -31,7 +30,7 @@
 python-zstd
 =============
 
-.. |releaseW| image:: 
https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/build-wheels.yml/badge.svg?branch=v1.5.2.5
+.. |releaseW| image:: 
https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/build-wheels.yml/badge.svg?branch=v1.5.2.6
     :target: 
https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/build-wheels.yml
 
 .. |masterW| image:: 
https://github.com/sergey-dryabzhinsky/python-zstd/actions/workflows/build-wheels.yml/badge.svg
@@ -260,5 +259,3 @@
    True
    >>> data == zstd.decompress(cdata_mt)
    True
-
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zstd-1.5.2.5/tests/base.py 
new/zstd-1.5.2.6/tests/base.py
--- old/zstd-1.5.2.5/tests/base.py      2022-05-02 21:51:56.000000000 +0200
+++ new/zstd-1.5.2.6/tests/base.py      2022-09-07 12:44:36.000000000 +0200
@@ -43,7 +43,7 @@
     VERSION = "1.5.2"
     VERSION_INT = 10502
     VERSION_INT_MIN = 1 * 100*100 + 0 * 1*100 + 0
-    PKG_VERSION = "1.5.2.5"
+    PKG_VERSION = "1.5.2.6"
 
     def helper_version(self):
         self.assertEqual(self.PKG_VERSION, zstd.version())
@@ -122,3 +122,12 @@
         else:
             DATA = b"This is must be very very long string to be compressed by 
zstd. AAAAAAAAAAAAARGGHHH!!! Just hope its enough length." + " ?? 
?????????????? ??????????????.".encode()
         self.assertEqual(DATA, zstd.decompress(zstd.compress(DATA, 20)))
+
+    def helper_compression_empty_string(self):
+        # https://github.com/sergey-dryabzhinsky/python-zstd/issues/80
+        # An empty string should be able to be compressed and decompressed
+        # All levels 1-20 are tested, just to be safe.
+        data = b""
+
+        for level in range(0, 20):
+            self.assertEqual(data, zstd.decompress(zstd.compress(data, level + 
1)))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zstd-1.5.2.5/tests/test_compress.py 
new/zstd-1.5.2.6/tests/test_compress.py
--- old/zstd-1.5.2.5/tests/test_compress.py     2022-05-02 21:51:56.000000000 
+0200
+++ new/zstd-1.5.2.6/tests/test_compress.py     2022-09-07 12:44:36.000000000 
+0200
@@ -39,6 +39,9 @@
 
     def test_compression_level20(self):
         BaseTestZSTD.helper_compression_level20(self)
+    
+    def test_compression_empty_string(self):
+        BaseTestZSTD.helper_compression_empty_string(self)
 
 if __name__ == '__main__':
     unittest.main()

Reply via email to