commit 3e686413a4c5b1d9f8fdbf435c09295239a23a736718003c14ea506960b30d92 Author: Dirk Mueller Date: Sun Mar 30 08:07:29 2025 +0000 - update to 1.5.6.6: * fix module version string form then building with external system library #203 - update to 1.5.6.5: * find pkg-config in paths defined in PATH environment variable, as suggested by @parona-source * add new options for development `--all-warnings` and `--all- warnings-errors` * fix action setup for building wheels - update to 1.5.6.4: * fixed `check()` function * fixed various compiller warnings * added some developer/debug options for compilation OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zstd?expand=0&rev=36 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-zstd.changes b/python-zstd.changes new file mode 100644 index 0000000..1d67a28 --- /dev/null +++ b/python-zstd.changes @@ -0,0 +1,168 @@ +------------------------------------------------------------------- +Sun Mar 30 08:06:34 UTC 2025 - Dirk Müller + +- update to 1.5.6.6: + * fix module version string form then building with external + system library #203 +- update to 1.5.6.5: + * find pkg-config in paths defined in PATH environment + variable, as suggested by @parona-source + * add new options for development `--all-warnings` and `--all- + warnings-errors` + * fix action setup for building wheels +- update to 1.5.6.4: + * fixed `check()` function + * fixed various compiller warnings + * added some developer/debug options for compilation + +------------------------------------------------------------------- +Wed Jan 8 11:17:44 UTC 2025 - Yunus Acar + +- update to 1.5.6.1: + * Update libzstd to v1.5.6 + * Update action to genegate wheels + +------------------------------------------------------------------- +Wed May 3 09:23:08 UTC 2023 - Dirk Müller + +- update to 1.5.5.1: + * Update bindled libzstd to 1.5.5 + * Fix decompression of multiple concatenated frames in one + input string + * 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. + * PyPy builds on `arm64` missing `2.7` as it are broken. + * MacOsX builds done inside 11.7 hackintosh + * Don't fail with exception if defined number of threads to + compress is bigger than libzstd can take. + * Silently drop it value down to max threads. + +------------------------------------------------------------------- +Fri Apr 21 12:39:26 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:46:10 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Tue Feb 28 13:32:16 UTC 2023 - Matej Cepl + +- Update to version 1.5.4.0: + - Update libzstd to 1.5.4 + +------------------------------------------------------------------- +Wed Oct 12 18:36:28 UTC 2022 - Yogalakshmi Arunachalam + +- 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. + +------------------------------------------------------------------- +Sat Jun 4 13:44:26 UTC 2022 - Dirk Müller + +- update to 1.5.2.5: + * Update bundled libzstd to 1.5.2 + * Add support of setting build options via envvars + * Fixed config for github actions to build wheels + * Force disable all ASM for AMD code + +------------------------------------------------------------------- +Mon Jan 10 11:50:03 UTC 2022 - Dirk Müller + +- update to 1.5.1.0: + * update libzstd to 1.5.1 - follow upstream + * fix passing VERSION string to compiler + +------------------------------------------------------------------- +Mon Dec 6 20:32:28 UTC 2021 - Dirk Müller + +- update to 1.5.0.4: + * python 3.9/3.10 support + +------------------------------------------------------------------- +Mon Jul 19 06:45:33 UTC 2021 - Dirk Müller + +- update to 1.5.0.2: + * simplify tests + * add new function for them: ZSTD_external(): 0/1 + * fix build - missing new file: zstd_errors.h + * Removed old function which generated custom block header + * Updated zstd to new upstream version 1.5.0 +- drop test-once.patch: not needed + +------------------------------------------------------------------- +Mon Feb 1 22:30:19 UTC 2021 - Dirk Müller + +- update to 1.4.8.1: + * Allow ultra-fast levels from -100 to -1 + * Update bundled zstd library to 1.4.8 release + +------------------------------------------------------------------- +Wed Jan 13 10:28:07 UTC 2021 - pgajdos@suse.com + +- use %pytest_arch macro + +------------------------------------------------------------------- +Fri Jul 17 07:56:00 UTC 2020 - Dirk Mueller + +- update to 1.4.5.1: + * Follows upstream 1.4.5 release + +------------------------------------------------------------------- +Tue Jan 21 11:12:36 UTC 2020 - Ondřej Súkup + +- update to 1.4.4.0 + * Follow upstream 1.4.4 + +------------------------------------------------------------------- +Mon Sep 9 15:13:35 UTC 2019 - Tomáš Chvátal + +- Update to 1.4.3.2: + * Follow upstream 1.4.3 + +------------------------------------------------------------------- +Tue Aug 13 16:33:53 UTC 2019 - Tomáš Chvátal + +- Skip the version comparison tests, they are pretty useless + +------------------------------------------------------------------- +Mon Jul 22 10:54:03 UTC 2019 - Tomáš Chvátal + +- Update to 1.4.1.0: + * Follow upstream 1.4.1 + +------------------------------------------------------------------- +Mon May 6 10:46:18 UTC 2019 - pgajdos@suse.com + +- version update to 1.4.0.0 + * Add LICENSE to MANIFEST.in + * Fix version tests - don't sort, just reverse + * Remove debug logging + +------------------------------------------------------------------- +Mon Mar 4 13:22:52 UTC 2019 - Tomáš Chvátal + +- Switch to pkgconfig style dependency + +------------------------------------------------------------------- +Mon Mar 4 10:10:45 AM UTC 2019 - John Vandenberg + +- Initial spec for v1.3.8.1, adding test-external.patch to allow + tests to run with an external library, and test-once.patch to avoid + custom hack to run tests which actually runs them twice. diff --git a/python-zstd.spec b/python-zstd.spec new file mode 100644 index 0000000..92f2343 --- /dev/null +++ b/python-zstd.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-zstd +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-zstd +Version: 1.5.6.6 +Release: 0 +Summary: ZSTD Bindings for Python +License: BSD-2-Clause +Group: Development/Languages/Python +URL: https://github.com/sergey-dryabzhinsky/python-zstd +Source: https://files.pythonhosted.org/packages/source/z/zstd/zstd-%{version}.tar.gz +Patch0: test-external.patch +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: pkgconfig +BuildRequires: python-rpm-macros +BuildRequires: pkgconfig(libzstd) >= 1.4.4 +%python_subpackages + +%description +ZSTD Bindings for Python. + +%prep +%autosetup -p1 -n zstd-%{version} + +rm -rf zstd/ +# do not test the version matching, we don't really need exact version of +# zstd here +rm tests/test_version.py +sed -i -e '/test_version/d' tests/__init__.py + +%build +export CFLAGS="%{optflags}" +%python_build --legacy --external + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +%pytest_arch + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitearch}/zstd*.so +%{python_sitearch}/zstd-%{version}*-info + +%changelog diff --git a/test-external.patch b/test-external.patch new file mode 100644 index 0000000..c4777dd --- /dev/null +++ b/test-external.patch @@ -0,0 +1,15 @@ +--- + setup.py | 2 ++ + 1 file changed, 2 insertions(+) + +--- a/setup.py ++++ b/setup.py +@@ -119,6 +119,8 @@ else: + class ZstdBuildExt( build_ext ): + + def build_extensions(self): ++ if 'test' in sys.argv: return ++ + c = self.compiler.compiler_type + if c in COPT: + for e in self.extensions: diff --git a/zstd-1.5.5.1.tar.gz b/zstd-1.5.5.1.tar.gz new file mode 100644 index 0000000..650b77c --- /dev/null +++ b/zstd-1.5.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1ef980abf0e1e072b028d2d76ef95b476632651c96225cf30b619c6eef625672 +size 1106585 diff --git a/zstd-1.5.6.1.tar.gz b/zstd-1.5.6.1.tar.gz new file mode 100644 index 0000000..afb6ed8 --- /dev/null +++ b/zstd-1.5.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:64a01e79d8d9592cd35f9de2ebc0376e0f94dc8150d6e3ae891a55f190d3490e +size 643831 diff --git a/zstd-1.5.6.6.tar.gz b/zstd-1.5.6.6.tar.gz new file mode 100644 index 0000000..e6b3ab3 --- /dev/null +++ b/zstd-1.5.6.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:822c4b6575dcd30691ebde6545425b51c14ec1b2e519f684ef4b0d0616921088 +size 649362