[packages/python3-pytest-subtests] - up to 0.14.1, tests are broken on pytest 8
baggins
baggins at pld-linux.org
Sun Mar 16 01:58:41 CET 2025
commit 672494be3ccf6d97030c2a65ab72771c44b41764
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Mar 16 01:03:51 2025 +0100
- up to 0.14.1, tests are broken on pytest 8
python3-pytest-subtests.spec | 27 ++++++++++++++-------------
1 file changed, 14 insertions(+), 13 deletions(-)
---
diff --git a/python3-pytest-subtests.spec b/python3-pytest-subtests.spec
index 8f322ac..4dcf0bd 100644
--- a/python3-pytest-subtests.spec
+++ b/python3-pytest-subtests.spec
@@ -1,24 +1,25 @@
#
# Conditional build:
-%bcond_without tests # unit tests
+%bcond_with tests # unit tests
Summary: unittest subTest() support and subtests fixture
Summary(pl.UTF-8): Obsługa subTest() i wyposażenie subtests dla szkieletu unittest
Name: python3-pytest-subtests
# note: 0.7+ require pytest 7
-Version: 0.6.0
-Release: 3
+Version: 0.14.1
+Release: 1
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/pytest-subtests/
-Source0: https://files.pythonhosted.org/packages/source/p/pytest-subtests/pytest-subtests-%{version}.tar.gz
-# Source0-md5: 5feacd1c1316a03968a358940a114e04
+Source0: https://files.pythonhosted.org/packages/source/p/pytest-subtests/pytest_subtests-%{version}.tar.gz
+# Source0-md5: f4dadd94661e81b47fdad3ddedc51038
URL: https://pypi.org/project/pytest-subtests/
BuildRequires: python3-modules >= 1:3.6
-BuildRequires: python3-setuptools >= 1:40.0
-BuildRequires: python3-setuptools_scm
+BuildRequires: python3-build
+BuildRequires: python3-installer
%if %{with tests}
BuildRequires: python3-pytest >= 6.0
+BuildRequires: python3-pytest-xdist
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
@@ -33,21 +34,22 @@ unittest subTest() support and subtests fixture.
Obsługa subTest() i wyposażenie subtests dla szkieletu unittest.
%prep
-%setup -q -n pytest-subtests-%{version}
+%setup -q -n pytest_subtests-%{version}
%build
-%py3_build
+%py3_build_pyproject
%if %{with tests}
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
PYTEST_PLUGINS=pytest_subtests \
+PYTHONPATH=$(pwd)/src \
%{__python3} -m pytest tests
%endif
%install
rm -rf $RPM_BUILD_ROOT
-%py3_install
+%py3_install_pyproject
%clean
rm -rf $RPM_BUILD_ROOT
@@ -55,6 +57,5 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc CHANGELOG.rst LICENSE README.rst
-%{py3_sitescriptdir}/pytest_subtests.py
-%{py3_sitescriptdir}/__pycache__/pytest_subtests.cpython-*.py[co]
-%{py3_sitescriptdir}/pytest_subtests-%{version}-py*.egg-info
+%{py3_sitescriptdir}/pytest_subtests
+%{py3_sitescriptdir}/pytest_subtests-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-subtests.git/commitdiff/672494be3ccf6d97030c2a65ab72771c44b41764
More information about the pld-cvs-commit
mailing list