[packages/python-webtest] Rel 4; python3 dropped here (see python3-webtest.spec)

arekm arekm at pld-linux.org
Wed May 28 19:55:43 CEST 2025


commit 143cb50f3697cac1360addf05ad3558adcc60c11
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed May 28 19:39:30 2025 +0200

    Rel 4; python3 dropped here (see python3-webtest.spec)

 python-webtest.spec | 63 +----------------------------------------------------
 1 file changed, 1 insertion(+), 62 deletions(-)
---
diff --git a/python-webtest.spec b/python-webtest.spec
index 4d6d97f..d5dafe3 100644
--- a/python-webtest.spec
+++ b/python-webtest.spec
@@ -1,7 +1,5 @@
 #
 # Conditional build:
-%bcond_without	python2	# CPython 2.x module
-%bcond_without	python3	# CPython 3.x module
 %bcond_without	doc	# Sphinx documentation
 %bcond_without	tests	# unit tests
 
@@ -11,7 +9,7 @@ Summary(pl.UTF-8):	Moduł pomocniczy do testowania aplikacji WSGI
 Name:		python-%{module}
 # keep 2.x here for python2 support
 Version:	2.0.35
-Release:	3
+Release:	4
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/webtest/
@@ -19,7 +17,6 @@ Source0:	https://files.pythonhosted.org/packages/source/W/WebTest/WebTest-%{vers
 # Source0-md5:	a5d027ffa0991fdf20e305c62bd37791
 Patch0:		%{name}-deps.patch
 URL:		http://webtest.pythonpaste.org/
-%if %{with python2}
 BuildRequires:	python-modules >= 1:2.7
 BuildRequires:	python-setuptools
 %if %{with tests}
@@ -35,22 +32,6 @@ BuildRequires:	python-pyquery
 BuildRequires:	python-six
 BuildRequires:	python-waitress >= 0.8.5
 %endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.5
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-PasteDeploy
-BuildRequires:	python3-WSGIProxy2
-BuildRequires:	python3-WebOb >= 1.2
-BuildRequires:	python3-bs4
-BuildRequires:	python3-dtopt
-BuildRequires:	python3-nose >= 1.3.1
-BuildRequires:	python3-pyquery
-BuildRequires:	python3-six
-BuildRequires:	python3-waitress >= 0.8.5
-%endif
-%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with doc}
@@ -77,26 +58,6 @@ testowych żądań bez uruchamiania serwera HTTP.
 Daje to wygodne, oparte o pełny stos testowanie aplikacji napisanych
 przy użyciu dowolnego szkieletu zgodnego z WSGI.
 
-%package -n python3-webtest
-Summary:	Helper to test WSGI applications
-Summary(pl.UTF-8):	Moduł pomocniczy do testowania aplikacji WSGI
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.5
-
-%description -n python3-webtest
-WebTest wraps any WSGI application and makes it easy to send test
-requests to that application, without starting up an HTTP server.
-
-This provides convenient full-stack testing of applications written
-with any WSGI-compatible framework.
-
-%description -n python3-webtest -l pl.UTF-8
-WebTest obudowuje dowolną aplikację WSGI i ułatwia wysyłanie do niej
-testowych żądań bez uruchamiania serwera HTTP.
-
-Daje to wygodne, oparte o pełny stos testowanie aplikacji napisanych
-przy użyciu dowolnego szkieletu zgodnego z WSGI.
-
 %package apidocs
 Summary:	API documentation for Python WebTest module
 Summary(pl.UTF-8):	Dokumentacja API modułu Pythona WebTest
@@ -116,13 +77,7 @@ Dokumentacja API modułu Pythona WebTest.
 %{__rm} -r *.egg-info
 
 %build
-%if %{with python2}
 %py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
-%py3_build %{?with_tests:test}
-%endif
 
 %if %{with doc}
 PYTHONPATH=$(pwd) \
@@ -133,34 +88,18 @@ PYTHONPATH=$(pwd) \
 %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.rst README.rst license.rst
 %{py_sitescriptdir}/webtest
 %{py_sitescriptdir}/WebTest-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-webtest
-%defattr(644,root,root,755)
-%doc CHANGELOG.rst README.rst license.rst
-%{py3_sitescriptdir}/webtest
-%{py3_sitescriptdir}/WebTest-%{version}-py*.egg-info
-%endif
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-webtest.git/commitdiff/143cb50f3697cac1360addf05ad3558adcc60c11



More information about the pld-cvs-commit mailing list