[packages/python-pytest-forked] - rel 6, python3 moved to its own package
baggins
baggins at pld-linux.org
Sat Mar 15 23:05:44 CET 2025
commit 7e61b06c9ea9d9c7842696b6f9bdb1cdb9f0c7df
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Mar 16 00:05:31 2025 +0100
- rel 6, python3 moved to its own package
python-pytest-forked.spec | 43 +------------------------------------------
1 file changed, 1 insertion(+), 42 deletions(-)
---
diff --git a/python-pytest-forked.spec b/python-pytest-forked.spec
index c00c4c4..3a12ad7 100644
--- a/python-pytest-forked.spec
+++ b/python-pytest-forked.spec
@@ -1,22 +1,18 @@
#
# Conditional build:
%bcond_without tests # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
Summary: Run each test in a forked subprocess
Summary(pl.UTF-8): Uruchamianie każdego testu w oddzielnym procesie
Name: python-pytest-forked
-# keep 1.3.x here for python2 support
Version: 1.3.0
-Release: 5
+Release: 6
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/pytest-forked/
Source0: https://files.pythonhosted.org/packages/source/p/pytest-forked/pytest-forked-%{version}.tar.gz
# Source0-md5: 7de04c46b48ca5c5a24e45bf1546355f
URL: https://github.com/pytest-dev/pytest-forked
-%if %{with python2}
BuildRequires: python-modules >= 1:2.7
BuildRequires: python-setuptools >= 1:41.4
BuildRequires: python-setuptools_scm >= 3.3
@@ -24,16 +20,6 @@ BuildRequires: python-setuptools_scm >= 3.3
BuildRequires: python-py
BuildRequires: python-pytest >= 3.10
%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.5
-BuildRequires: python3-setuptools >= 1:41.4
-BuildRequires: python3-setuptools_scm >= 3.3
-%if %{with tests}
-BuildRequires: python3-py
-BuildRequires: python3-pytest >= 3.10
-%endif
-%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
Requires: python-modules >= 1:2.7
@@ -62,7 +48,6 @@ Uruchamianie każdego testu w oddzielnym procesie.
%setup -q -n pytest-forked-%{version}
%build
-%if %{with python2}
%py_build
%if %{with tests}
@@ -71,45 +56,19 @@ Uruchamianie każdego testu w oddzielnym procesie.
PYTHONPATH=$(pwd)/src \
%{__python} -m pytest -p no:flaky testing
%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTHONPATH=$(pwd)/src \
-%{__python3} -m pytest -p no:flaky testing
-%endif
-%endif
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%py_install
%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%files
%defattr(644,root,root,755)
%doc CHANGELOG LICENSE README.rst example/boxed.txt
%{py_sitescriptdir}/pytest_forked
%{py_sitescriptdir}/pytest_forked-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-pytest-forked
-%defattr(644,root,root,755)
-%doc CHANGELOG LICENSE README.rst example/boxed.txt
-%{py3_sitescriptdir}/pytest_forked
-%{py3_sitescriptdir}/pytest_forked-%{version}-py*.egg-info
-%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pytest-forked.git/commitdiff/7e61b06c9ea9d9c7842696b6f9bdb1cdb9f0c7df
More information about the pld-cvs-commit
mailing list