forked from pool/python-zstandard
		
	- Update to 0.23.0
* tests: suppress data_too_large health check * zstd: upgrade vendored zstd to 1.5.6 * setup: Python 3.13 support * rust: upgrade packages in Cargo.toml * build: fix building with modern setuptools backend OBS-URL: https://build.opensuse.org/package/show/Archiving/python-zstandard?expand=0&rev=20
This commit is contained in:
		| @@ -1,7 +1,7 @@ | ||||
| Index: zstandard-0.22.0/tests/test_compressor_compress.py | ||||
| Index: zstandard-0.23.0/tests/test_compressor_compress.py | ||||
| =================================================================== | ||||
| --- zstandard-0.22.0.orig/tests/test_compressor_compress.py | ||||
| +++ zstandard-0.22.0/tests/test_compressor_compress.py | ||||
| --- zstandard-0.23.0.orig/tests/test_compressor_compress.py | ||||
| +++ zstandard-0.23.0/tests/test_compressor_compress.py | ||||
| @@ -52,7 +52,7 @@ class TestCompressor_compress(unittest.T | ||||
|   | ||||
|          cctx = zstd.ZstdCompressor(level=3, write_content_size=False) | ||||
| @@ -11,10 +11,10 @@ Index: zstandard-0.22.0/tests/test_compressor_compress.py | ||||
|          self.assertEqual(result[0:4], b"\x28\xb5\x2f\xfd") | ||||
|   | ||||
|          # This matches the test for read_to_iter() below. | ||||
| Index: zstandard-0.22.0/tests/test_compressor_compressobj.py | ||||
| Index: zstandard-0.23.0/tests/test_compressor_compressobj.py | ||||
| =================================================================== | ||||
| --- zstandard-0.22.0.orig/tests/test_compressor_compressobj.py | ||||
| +++ zstandard-0.22.0/tests/test_compressor_compressobj.py | ||||
| --- zstandard-0.23.0.orig/tests/test_compressor_compressobj.py | ||||
| +++ zstandard-0.23.0/tests/test_compressor_compressobj.py | ||||
| @@ -39,7 +39,7 @@ class TestCompressor_compressobj(unittes | ||||
|          cobj = cctx.compressobj() | ||||
|   | ||||
| @@ -24,10 +24,10 @@ Index: zstandard-0.22.0/tests/test_compressor_compressobj.py | ||||
|          self.assertEqual(result[0:4], b"\x28\xb5\x2f\xfd") | ||||
|   | ||||
|          params = zstd.get_frame_parameters(result) | ||||
| Index: zstandard-0.22.0/tests/test_compressor_copy_stream.py | ||||
| Index: zstandard-0.23.0/tests/test_compressor_copy_stream.py | ||||
| =================================================================== | ||||
| --- zstandard-0.22.0.orig/tests/test_compressor_copy_stream.py | ||||
| +++ zstandard-0.22.0/tests/test_compressor_copy_stream.py | ||||
| --- zstandard-0.23.0.orig/tests/test_compressor_copy_stream.py | ||||
| +++ zstandard-0.23.0/tests/test_compressor_copy_stream.py | ||||
| @@ -50,7 +50,7 @@ class TestCompressor_copy_stream(unittes | ||||
|          r, w = cctx.copy_stream(source, dest) | ||||
|   | ||||
| @@ -37,10 +37,10 @@ Index: zstandard-0.22.0/tests/test_compressor_copy_stream.py | ||||
|   | ||||
|          params = zstd.get_frame_parameters(dest.getvalue()) | ||||
|          self.assertEqual(params.content_size, zstd.CONTENTSIZE_UNKNOWN) | ||||
| Index: zstandard-0.22.0/tests/test_compressor_stream_writer.py | ||||
| Index: zstandard-0.23.0/tests/test_compressor_stream_writer.py | ||||
| =================================================================== | ||||
| --- zstandard-0.22.0.orig/tests/test_compressor_stream_writer.py | ||||
| +++ zstandard-0.22.0/tests/test_compressor_stream_writer.py | ||||
| --- zstandard-0.23.0.orig/tests/test_compressor_stream_writer.py | ||||
| +++ zstandard-0.23.0/tests/test_compressor_stream_writer.py | ||||
| @@ -301,7 +301,7 @@ class TestCompressor_stream_writer(unitt | ||||
|          d = zstd.train_dictionary(8192, samples) | ||||
|   | ||||
| @@ -50,30 +50,29 @@ Index: zstandard-0.22.0/tests/test_compressor_stream_writer.py | ||||
|   | ||||
|          buffer = io.BytesIO() | ||||
|          cctx = zstd.ZstdCompressor(level=9, dict_data=d) | ||||
|  | ||||
| Index: zstandard-0.22.0/c-ext/backend_c.c | ||||
| Index: zstandard-0.23.0/c-ext/backend_c.c | ||||
| =================================================================== | ||||
| --- zstandard-0.22.0.orig/c-ext/backend_c.c | ||||
| +++ zstandard-0.22.0/c-ext/backend_c.c | ||||
| --- zstandard-0.23.0.orig/c-ext/backend_c.c | ||||
| +++ zstandard-0.23.0/c-ext/backend_c.c | ||||
| @@ -152,7 +152,7 @@ void zstd_module_init(PyObject *m) { | ||||
|      PyObject *features = NULL; | ||||
|      PyObject *feature = NULL; | ||||
|      unsigned zstd_ver_no = ZSTD_versionNumber(); | ||||
| -    unsigned our_hardcoded_version = 10505; | ||||
| -    unsigned our_hardcoded_version = 10506; | ||||
| +    unsigned our_hardcoded_version = 10507; | ||||
|      if (ZSTD_VERSION_NUMBER != our_hardcoded_version || | ||||
|          zstd_ver_no != our_hardcoded_version) { | ||||
|          PyErr_Format( | ||||
| Index: zstandard-0.22.0/tests/test_module_attributes.py | ||||
| Index: zstandard-0.23.0/tests/test_module_attributes.py | ||||
| =================================================================== | ||||
| --- zstandard-0.22.0.orig/tests/test_module_attributes.py | ||||
| +++ zstandard-0.22.0/tests/test_module_attributes.py | ||||
| --- zstandard-0.23.0.orig/tests/test_module_attributes.py | ||||
| +++ zstandard-0.23.0/tests/test_module_attributes.py | ||||
| @@ -5,7 +5,7 @@ import zstandard as zstd | ||||
|   | ||||
|  class TestModuleAttributes(unittest.TestCase): | ||||
|      def test_version(self): | ||||
| -        self.assertEqual(zstd.ZSTD_VERSION, (1, 5, 5)) | ||||
| -        self.assertEqual(zstd.ZSTD_VERSION, (1, 5, 6)) | ||||
| +        self.assertEqual(zstd.ZSTD_VERSION, (1, 5, 7)) | ||||
|   | ||||
|          self.assertEqual(zstd.__version__, "0.22.0") | ||||
|          self.assertEqual(zstd.__version__, "0.23.0") | ||||
|   | ||||
|   | ||||
| @@ -1,3 +1,13 @@ | ||||
| ------------------------------------------------------------------- | ||||
| Tue Jul 22 07:55:15 UTC 2025 - Markéta Machová <mmachova@suse.com> | ||||
|  | ||||
| - Update to 0.23.0 | ||||
|   * tests: suppress data_too_large health check | ||||
|   * zstd: upgrade vendored zstd to 1.5.6 | ||||
|   * setup: Python 3.13 support | ||||
|   * rust: upgrade packages in Cargo.toml | ||||
|   * build: fix building with modern setuptools backend | ||||
|  | ||||
| ------------------------------------------------------------------- | ||||
| Fri Feb 21 10:44:16 UTC 2025 - Bernhard Wiedemann <bwiedemann@suse.com> | ||||
|  | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| # | ||||
| # spec file for package python-zstandard | ||||
| # | ||||
| # Copyright (c) 2024 SUSE LLC | ||||
| # Copyright (c) 2025 SUSE LLC | ||||
| # | ||||
| # All modifications and additions to the file contributed by third parties | ||||
| # remain the property of their copyright owners, unless otherwise agreed | ||||
| @@ -18,7 +18,7 @@ | ||||
|  | ||||
| %{?sle15_python_module_pythons} | ||||
| Name:           python-zstandard | ||||
| Version:        0.22.0 | ||||
| Version:        0.23.0 | ||||
| Release:        0 | ||||
| Summary:        Zstandard bindings for Python | ||||
| License:        BSD-3-Clause | ||||
| @@ -28,7 +28,9 @@ Source:         https://files.pythonhosted.org/packages/source/z/zstandard/zstan | ||||
| Patch0:         feature-detection.patch | ||||
| Patch1:         fix-zstd-1.5.7.patch | ||||
| BuildRequires:  %{python_module devel} | ||||
| BuildRequires:  %{python_module pip} | ||||
| BuildRequires:  %{python_module setuptools} | ||||
| BuildRequires:  %{python_module wheel} | ||||
| BuildRequires:  fdupes | ||||
| BuildRequires:  libzstd-devel = 1.5.7 | ||||
| BuildRequires:  python-rpm-macros | ||||
|   | ||||
							
								
								
									
										
											BIN
										
									
								
								zstandard-0.22.0.tar.gz
									 (Stored with Git LFS)
									
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								zstandard-0.22.0.tar.gz
									 (Stored with Git LFS)
									
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										3
									
								
								zstandard-0.23.0.tar.gz
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								zstandard-0.23.0.tar.gz
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| version https://git-lfs.github.com/spec/v1 | ||||
| oid sha256:b2d8c62d08e7255f68f7a740bae85b3c9b8e5466baa9cbf7f57f1cde0ac6bc09 | ||||
| size 681701 | ||||
		Reference in New Issue
	
	Block a user