[packages/python3-testfixtures] Up to 11.0.0

arekm arekm at pld-linux.org
Thu Nov 12 12:31:37 CET 2026


commit 1ed1a59bfaed1243e2dfa4ba64eafa6c19a33c0a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 12 12:18:34 2026 +0100

    Up to 11.0.0

 python3-testfixtures.spec | 40 ++++++++++++++++++++++++----------------
 1 file changed, 24 insertions(+), 16 deletions(-)
---
diff --git a/python3-testfixtures.spec b/python3-testfixtures.spec
index f86efc8..7a2f405 100644
--- a/python3-testfixtures.spec
+++ b/python3-testfixtures.spec
@@ -7,29 +7,32 @@
 Summary:	Collection of helpers and mock objects for unit tests and doc tests
 Summary(pl.UTF-8):	Zbiór funkcji pomocniczych i obiektów atrap do testów jednostkowych i dokumentacji
 Name:		python3-testfixtures
-Version:	10.0.0
+Version:	11.0.0
 Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/testfixtures/
 Source0:	https://files.pythonhosted.org/packages/source/t/testfixtures/testfixtures-%{version}.tar.gz
-# Source0-md5:	47d7c2f5026e0b7212d152cb487e6f40
+# Source0-md5:	b1fccdb2f76814804c6982d5a8aaa1b9
 URL:		https://pypi.org/project/testfixtures/
+BuildRequires:	python3-build
+BuildRequires:	python3-hatchling
+BuildRequires:	python3-installer
 BuildRequires:	python3-modules >= 1:3.11
-BuildRequires:	python3-setuptools
-BuildRequires:	python3-setuptools_git
 %if %{with tests}
-%{?with_django:BuildRequires:	python3-django}
-BuildRequires:	python3-pytest >= 7.1
-BuildRequires:	python3-pytest-cov
-%{?with_django:BuildRequires:	python3-pytest-django}
-BuildRequires:	python3-sybil >= 6
-BuildRequires:	python3-twisted
+%{?with_django:BuildRequires:	python3-django >= 5.1.3}
+BuildRequires:	python3-pytest >= 8.0
+%{?with_django:BuildRequires:	python3-pytest-django >= 4}
+BuildRequires:	python3-sybil >= 6.0.3
+BuildRequires:	python3-twisted >= 22.1
 BuildRequires:	python3-zope.component
 BuildRequires:	python3-zope.interface
 %endif
 BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	rpmbuild(macros) >= 2.044
+%if %{with tests} || %{with doc}
+BuildRequires:	unzip
+%endif
 %if %{with doc}
 BuildRequires:	python3-furo
 BuildRequires:	sphinx-pdg-3
@@ -61,16 +64,21 @@ Dokumentacja API modułu Pythona testfixtures.
 %setup -q -n testfixtures-%{version}
 
 %build
-%py3_build
+%py3_build_pyproject
+
+%if %{with tests} || %{with doc}
+%{__unzip} -qo build-3/*.whl -d build-3/build-path
+%endif
 
 %if %{with tests}
 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 PYTEST_PLUGINS=%{?with_django:pytest_django.plugin} \
-%{__python3} -m pytest testfixtures/tests %{!?with_django:--ignore testfixtures/tests/test_django}
+PYTHONPATH=$(pwd)/build-3/build-path \
+%{__python3} -m pytest tests %{!?with_django:--ignore tests/test_django}
 %endif
 
 %if %{with doc}
-PYTHONPATH=$(pwd) \
+PYTHONPATH=$(pwd)/build-3/build-path \
 %{__make} -C docs html \
 	SPHINXBUILD=sphinx-build-3
 %endif
@@ -78,7 +86,7 @@ PYTHONPATH=$(pwd) \
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%py3_install
+%py3_install_pyproject
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -87,7 +95,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc CHANGELOG.rst LICENSE.txt README.rst
 %{py3_sitescriptdir}/testfixtures
-%{py3_sitescriptdir}/testfixtures-%{version}-py*.egg-info
+%{py3_sitescriptdir}/testfixtures-%{version}.dist-info
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-testfixtures.git/commitdiff/1ed1a59bfaed1243e2dfa4ba64eafa6c19a33c0a



More information about the pld-cvs-commit mailing list