forked from pool/python-zstd
- Update to 1.5.7.2
* caching number of available cores from cpuinfo
by 60 seconds (VM may change settings)
- from version 1.5.7.1
* fixed function ZSTD_min_compression_level() - now
returns real number, not some shifted int value
* added some information functions about debug level
builded with
* module now building with -O3 level of optimization.
Probably will be about 20% faster
* module now building with binary stripping
(wheels for 3.13 and 3.14 will be smaller)
* module now building with disabled LTO
* added pypy builds
- from version 1.5.7.0
* Update bundled libzstd to 1.5.7
* Wheel for linux are here and pipy (built
on Ubuntu xenial, gcc-5, manylinux_2_14)
- from version 1.5.6.8
* Make decompression of zstd stream data possible
#228 and #100
* Wheel for python3.12 amd64 uploaded here
- from version 1.5.6.7
* support of multiple instances of interpreter
with own GIL by @domysh
- Set ZSTD_EXTERNAL=1 to use system-provided libzstd
- Switch build system from setuptools to pyproject.toml
* Add python-pip and python-wheel to BuildRequires
* Replace %python_build with %pyproject_wheel
* Replace %python_install with %pyproject_install
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zstd?expand=0&rev=38
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
||||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
||||||
202
python-zstd.changes
Normal file
202
python-zstd.changes
Normal file
@@ -0,0 +1,202 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 25 08:35:52 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
- Update to 1.5.7.2
|
||||||
|
* caching number of available cores from cpuinfo
|
||||||
|
by 60 seconds (VM may change settings)
|
||||||
|
- from version 1.5.7.1
|
||||||
|
* fixed function ZSTD_min_compression_level() - now
|
||||||
|
returns real number, not some shifted int value
|
||||||
|
* added some information functions about debug level
|
||||||
|
builded with
|
||||||
|
* module now building with -O3 level of optimization.
|
||||||
|
Probably will be about 20% faster
|
||||||
|
* module now building with binary stripping
|
||||||
|
(wheels for 3.13 and 3.14 will be smaller)
|
||||||
|
* module now building with disabled LTO
|
||||||
|
* added pypy builds
|
||||||
|
- from version 1.5.7.0
|
||||||
|
* Update bundled libzstd to 1.5.7
|
||||||
|
* Wheel for linux are here and pipy (built
|
||||||
|
on Ubuntu xenial, gcc-5, manylinux_2_14)
|
||||||
|
- from version 1.5.6.8
|
||||||
|
* Make decompression of zstd stream data possible
|
||||||
|
#228 and #100
|
||||||
|
* Wheel for python3.12 amd64 uploaded here
|
||||||
|
- from version 1.5.6.7
|
||||||
|
* support of multiple instances of interpreter
|
||||||
|
with own GIL by @domysh
|
||||||
|
- Set ZSTD_EXTERNAL=1 to use system-provided libzstd
|
||||||
|
- Switch build system from setuptools to pyproject.toml
|
||||||
|
* Add python-pip and python-wheel to BuildRequires
|
||||||
|
* Replace %python_build with %pyproject_wheel
|
||||||
|
* Replace %python_install with %pyproject_install
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Mar 30 08:06:34 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- 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 <yunus.acar@suse.com>
|
||||||
|
|
||||||
|
- 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 <dmueller@suse.com>
|
||||||
|
|
||||||
|
- 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 <dmueller@suse.com>
|
||||||
|
|
||||||
|
- add sle15_python_module_pythons (jsc#PED-68)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 13 22:46:10 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Make calling of %{sle15modernpython} optional.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 28 13:32:16 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Update to version 1.5.4.0:
|
||||||
|
- Update libzstd to 1.5.4
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 12 18:36:28 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||||
|
|
||||||
|
- 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 <dmueller@suse.com>
|
||||||
|
|
||||||
|
- 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 <dmueller@suse.com>
|
||||||
|
|
||||||
|
- 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 <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 1.5.0.4:
|
||||||
|
* python 3.9/3.10 support
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 19 06:45:33 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- 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 <dmueller@suse.com>
|
||||||
|
|
||||||
|
- 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 <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 1.4.5.1:
|
||||||
|
* Follows upstream 1.4.5 release
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 21 11:12:36 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
- update to 1.4.4.0
|
||||||
|
* Follow upstream 1.4.4
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 9 15:13:35 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Update to 1.4.3.2:
|
||||||
|
* Follow upstream 1.4.3
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 13 16:33:53 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Skip the version comparison tests, they are pretty useless
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 22 10:54:03 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- 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 <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Switch to pkgconfig style dependency
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 4 10:10:45 AM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
- 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.
|
||||||
70
python-zstd.spec
Normal file
70
python-zstd.spec
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
#
|
||||||
|
# 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.7.2
|
||||||
|
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 pip}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
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}"
|
||||||
|
export ZSTD_EXTERNAL=1
|
||||||
|
%pyproject_wheel
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_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
|
||||||
15
test-external.patch
Normal file
15
test-external.patch
Normal file
@@ -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:
|
||||||
3
zstd-1.5.5.1.tar.gz
Normal file
3
zstd-1.5.5.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:1ef980abf0e1e072b028d2d76ef95b476632651c96225cf30b619c6eef625672
|
||||||
|
size 1106585
|
||||||
3
zstd-1.5.6.1.tar.gz
Normal file
3
zstd-1.5.6.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:64a01e79d8d9592cd35f9de2ebc0376e0f94dc8150d6e3ae891a55f190d3490e
|
||||||
|
size 643831
|
||||||
3
zstd-1.5.6.6.tar.gz
Normal file
3
zstd-1.5.6.6.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:822c4b6575dcd30691ebde6545425b51c14ec1b2e519f684ef4b0d0616921088
|
||||||
|
size 649362
|
||||||
3
zstd-1.5.7.2.tar.gz
Normal file
3
zstd-1.5.7.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6d8684c69009be49e1b18ec251a5eb0d7e24f93624990a8a124a1da66a92fc8a
|
||||||
|
size 670481
|
||||||
Reference in New Issue
Block a user