[packages/python-parameterized] - rel 9, python3 moved to separate package

baggins baggins at pld-linux.org
Sun Mar 23 18:55:15 CET 2025


commit 69c29e67e0946c1b2989b6e47480d08863c66f2b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Mar 23 19:32:58 2025 +0100

    - rel 9, python3 moved to separate package

 python-parameterized.spec | 42 +-----------------------------------------
 1 file changed, 1 insertion(+), 41 deletions(-)
---
diff --git a/python-parameterized.spec b/python-parameterized.spec
index ef5c306..d1455dc 100644
--- a/python-parameterized.spec
+++ b/python-parameterized.spec
@@ -1,14 +1,12 @@
 #
 # Conditional build:
 %bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
 
 Summary:	Parameterized testing with any Python test framework
 Summary(pl.UTF-8):	Parametryzowane testowanie w dowolnym szkielecie testów pythonowych
 Name:		python-parameterized
 Version:	0.8.1
-Release:	8
+Release:	9
 License:	BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/parameterized/
@@ -16,21 +14,12 @@ Source0:	https://files.pythonhosted.org/packages/source/p/parameterized/paramete
 # Source0-md5:	30e34da8db0b31bbc5c0ed86cfa9e7c1
 Patch0:		%{name}-mock.patch
 URL:		https://pypi.org/project/parameterized/
-%if %{with python2}
 BuildRequires:	python-modules >= 1:2.5
 BuildRequires:	python-setuptools
 %if %{with tests}
 BuildRequires:	python-mock
 BuildRequires:	python-nose
 %endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.2
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-nose
-%endif
-%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 Requires:	python-modules >= 1:2.5
@@ -64,54 +53,25 @@ Parametryzowane testowanie w dowolnym szkielecie testów pythonowych
 %patch -P 0 -p1
 
 %build
-%if %{with python2}
 %py_build
 
 %if %{with tests}
 nosetests-%{py_ver} parameterized/test.py
 %endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-nosetests-%{py3_ver} parameterized/test.py
-%endif
-%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %py_install
 
 %py_postclean
 %{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/parameterized/test.py*
-%endif
-
-%if %{with python3}
-%py3_install
-
-%{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/parameterized/test.py
-%{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/parameterized/__pycache__/test.*.py*
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc CHANGELOG.txt LICENSE.txt README.rst
 %{py_sitescriptdir}/parameterized
 %{py_sitescriptdir}/parameterized-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-parameterized
-%defattr(644,root,root,755)
-%doc CHANGELOG.txt LICENSE.txt README.rst
-%{py3_sitescriptdir}/parameterized
-%{py3_sitescriptdir}/parameterized-%{version}-py*.egg-info
-%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-parameterized.git/commitdiff/69c29e67e0946c1b2989b6e47480d08863c66f2b



More information about the pld-cvs-commit mailing list