[packages/python3-WSGIProxy2] Up to 0.5.1

arekm arekm at pld-linux.org
Wed May 28 20:00:04 CEST 2025


commit a02d621102f8e9bd5dcf7bfbc4a955cc26f6647a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed May 28 19:44:17 2025 +0200

    Up to 0.5.1

 python-WSGIProxy2.spec => python3-WSGIProxy2.spec | 67 ++---------------------
 1 file changed, 5 insertions(+), 62 deletions(-)
---
diff --git a/python-WSGIProxy2.spec b/python3-WSGIProxy2.spec
similarity index 57%
rename from python-WSGIProxy2.spec
rename to python3-WSGIProxy2.spec
index 25e2aa3..0d07da8 100644
--- a/python-WSGIProxy2.spec
+++ b/python3-WSGIProxy2.spec
@@ -2,33 +2,18 @@
 # Conditional build:
 %bcond_without	doc	# Sphinx documentation
 %bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
 
 Summary:	WSGI Proxy with various HTTP client backends
 Summary(pl.UTF-8):	Proxy WSGI z różnymi backendami klienta HTTP
-Name:		python-WSGIProxy2
-# keep 0.4.x here for python2 support
-Version:	0.4.6
-Release:	3
+Name:		python3-WSGIProxy2
+Version:	0.5.1
+Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/wsgiproxy2/
 Source0:	https://files.pythonhosted.org/packages/source/W/WSGIProxy2/WSGIProxy2-%{version}.tar.gz
-# Source0-md5:	cf4f45bed6ab74ad644bee58bcad4e83
+# Source0-md5:	398ceb52cfd9add0c9a48e5ec7a7399b
 URL:		https://github.com/gawel/WSGIProxy2/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.6
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-WebOb
-BuildRequires:	python-requests
-BuildRequires:	python-six
-BuildRequires:	python-urllib3
-BuildRequires:	python-webtest
-%endif
-%endif
-%if %{with python3}
 BuildRequires:	python3-modules >= 1:3.2
 BuildRequires:	python3-setuptools
 %if %{with tests}
@@ -38,13 +23,12 @@ BuildRequires:	python3-six
 BuildRequires:	python3-urllib3
 BuildRequires:	python3-webtest
 %endif
-%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with doc}
 BuildRequires:	sphinx-pdg-2
 %endif
-Requires:	python-modules >= 1:2.6
+Requires:	python3-modules >= 1:3.2
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -54,18 +38,6 @@ WSGI Proxy with various HTTP client backends.
 %description -l pl.UTF-8
 Proxy WSGI z różnymi backendami klienta HTTP.
 
-%package -n python3-WSGIProxy2
-Summary:	WSGI Proxy with various HTTP client backends
-Summary(pl.UTF-8):	Proxy WSGI z różnymi backendami klienta HTTP
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.2
-
-%description -n python3-WSGIProxy2
-WSGI Proxy with various HTTP client backends.
-
-%description -n python3-WSGIProxy2 -l pl.UTF-8
-Proxy WSGI z różnymi backendami klienta HTTP.
-
 %package apidocs
 Summary:	API documentation for Python WSGIProxy2 module
 Summary(pl.UTF-8):	Dokumentacja API modułu Pythona WSGIProxy2
@@ -81,22 +53,11 @@ Dokumentacja API modułu Pythona WSGIProxy2.
 %setup -q -n WSGIProxy2-%{version}
 
 %build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-# test_quoted_utf8_url fails with InvalidURL
-nosetests-%{py_ver} wsgiproxy -e test_quoted_utf8_url
-%endif
-%endif
-
-%if %{with python3}
 %py3_build
 
 %if %{with tests}
 nosetests-%{py3_ver} wsgiproxy
 %endif
-%endif
 
 %if %{with doc}
 %{__make} -C docs html \
@@ -106,34 +67,16 @@ nosetests-%{py3_ver} wsgiproxy
 %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 CHANGES.rst COPYING README.rst
-%{py_sitescriptdir}/wsgiproxy
-%{py_sitescriptdir}/WSGIProxy2-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-WSGIProxy2
-%defattr(644,root,root,755)
-%doc CHANGES.rst COPYING README.rst
 %{py3_sitescriptdir}/wsgiproxy
 %{py3_sitescriptdir}/WSGIProxy2-%{version}-py*.egg-info
-%endif
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-WSGIProxy2.git/commitdiff/a02d621102f8e9bd5dcf7bfbc4a955cc26f6647a



More information about the pld-cvs-commit mailing list