[packages/python3-backports.zstd] Up to 1.8.0

arekm arekm at pld-linux.org
Thu Nov 12 07:18:58 CET 2026


commit 34cb99e467030f1f14153749e5564b790e08d0df
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 12 01:43:55 2026 +0100

    Up to 1.8.0

 python3-backports.zstd.spec | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)
---
diff --git a/python3-backports.zstd.spec b/python3-backports.zstd.spec
index b514184..2e4534f 100644
--- a/python3-backports.zstd.spec
+++ b/python3-backports.zstd.spec
@@ -1,27 +1,27 @@
 #
 # Conditional build:
-%bcond_with	tests	# unit tests (some failures in tarball tests?)
+%bcond_with	tests	# unit tests
 
 Summary:	Backport of compression.zstd
 Summary(pl.UTF-8):	Backport modułu compression.zstd
 Name:		python3-backports.zstd
-Version:	1.2.0
-Release:	3
+Version:	1.8.0
+Release:	1
 License:	PSF v2, BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/backports-zstd/
 Source0:	https://files.pythonhosted.org/packages/source/b/backports-zstd/backports_zstd-%{version}.tar.gz
-# Source0-md5:	f78ff5bf615cf8198dadecee121b66ee
+# Source0-md5:	60eace816b5835142ace3d50bb6391c2
 Patch0:		backports_zstd-flags.patch
 URL:		https://pypi.org/project/backports.zstd/
-BuildRequires:	python3-devel >= 1:3.9
+BuildRequires:	python3-devel >= 1:3.10
 BuildRequires:	python3-devel < 1:3.14
 BuildRequires:	python3-setuptools >= 1:80
 BuildRequires:	zstd-devel
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 Requires:	python3-backports
-Requires:	python3-modules >= 1:3.9
+Requires:	python3-modules >= 1:3.10
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -39,8 +39,10 @@ Backport PEP-784 - dodania Zstandard do biblioteki standardowej.
 	--system-zstd
 
 %if %{with tests}
+# -S: an installed backports/__init__.py (python3-backports) would shadow the
+# namespace package in build-3 and the tests would run against the installed copy
 PYTHONPATH=$(readlink -f build-3/lib.*) \
-%{__python3} -m unittest discover -s tests
+%{__python3} -S -m unittest discover -s tests
 %endif
 
 %install
@@ -48,10 +50,6 @@ rm -rf $RPM_BUILD_ROOT
 
 %py3_install
 
-# packaged in python3-backports (python-backports.spec)
-%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/backports/__init__.py
-%{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/backports/__pycache__
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-backports.zstd.git/commitdiff/34cb99e467030f1f14153749e5564b790e08d0df



More information about the pld-cvs-commit mailing list