[packages/python3-Paste] - python-Paste.spec updated to 3.7.1 for python 3.6+
qboosh
qboosh at pld-linux.org
Sat Oct 28 10:53:15 CEST 2023
commit 80ccc5926604dbc9ca96849847e53c251dc12ff6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Oct 28 10:55:19 2023 +0200
- python-Paste.spec updated to 3.7.1 for python 3.6+
python-Paste-py3.7.patch | 17 -------
python-Paste.spec => python3-Paste.spec | 90 +++++----------------------------
2 files changed, 13 insertions(+), 94 deletions(-)
---
diff --git a/python-Paste.spec b/python3-Paste.spec
similarity index 53%
rename from python-Paste.spec
rename to python3-Paste.spec
index 1a753f4..2ea70a3 100644
--- a/python-Paste.spec
+++ b/python3-Paste.spec
@@ -1,46 +1,31 @@
#
# 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
Summary: Tools for using a Web Server Gateway Interface stack
Summary(pl.UTF-8): Narzędzia do używania stosu Web Server Gateway Interface
-Name: python-Paste
-Version: 2.0.3
-Release: 6
+Name: python3-Paste
+Version: 3.7.1
+Release: 1
Group: Libraries/Python
License: MIT
#Source0Download: https://pypi.org/simple/paste/
Source0: https://files.pythonhosted.org/packages/source/P/Paste/Paste-%{version}.tar.gz
-# Source0-md5: 1231e14eae62fa7ed76e9130b04bc61e
-Patch0: %{name}-py3.7.patch
-# dead
-#URL: http://pythonpaste.org/
+# Source0-md5: 0e2eb782f92b59412f68808b5a38b7dc
URL: https://pypi.org/project/Paste/
-%if %{with python2}
-BuildRequires: python-devel >= 1:2.6
-BuildRequires: python-setuptools >= 0.6-0.a9.1
-%if %{with tests}
-BuildRequires: python-nose >= 0.11
-BuildRequires: python-six >= 1.4.0
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-devel >= 1:3.4
+BuildRequires: python3-devel >= 1:3.6
BuildRequires: python3-setuptools >= 0.6-0.a9.1
%if %{with tests}
BuildRequires: python3-nose >= 0.11
BuildRequires: python3-six >= 1.4.0
%endif
-%endif
%if %{with doc}
BuildRequires: sphinx-pdg
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python-modules >= 1:2.6
+Requires: python3-modules >= 1:3.6
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -56,24 +41,6 @@ które można osadzać w celu zbudowania aplikacji WWW. Każda część
warstwy pośredniej używa interfejsu WSGI (PEP 333) i powinna być
kompatybilna z inną warstwą pośrednią opartą na tych interfejsach.
-%package -n python3-Paste
-Summary: Tools for using a Web Server Gateway Interface stack
-Summary(pl.UTF-8): Narzędzia do używania stosu Web Server Gateway Interface
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.4
-
-%description -n python3-Paste
-Paste provides several pieces of "middleware" (or filters) that can be
-nested to build web applications. Each piece of middleware uses the
-WSGI (PEP 333) interface, and should be compatible with other
-middleware based on those interfaces.
-
-%description -n python3-Paste -l pl.UTF-8
-Pakiet Paste dostarcza kilka części warstwy pośredniej (lub filtrów),
-które można osadzać w celu zbudowania aplikacji WWW. Każda część
-warstwy pośredniej używa interfejsu WSGI (PEP 333) i powinna być
-kompatybilna z inną warstwą pośrednią opartą na tych interfejsach.
-
%package apidocs
Summary: API documentation for Python Paste module
Summary(pl.UTF-8): Dokumentacja API modułu Pythona Paste
@@ -87,65 +54,35 @@ Dokumentacja API modułu Pythona Paste.
%prep
%setup -q -n Paste-%{version}
-%patch0 -p1
-# junk in archive
-%{__rm} paste/*.py.orig paste/util/*.py.orig
# online test + requires outdated pythonpaste.org website content
%{__rm} tests/test_proxy.py
%build
-%if %{with python2}
-%py_build %{?with_tests:test}
-%endif
+%py3_build
-%if %{with python3}
-%py3_build %{?with_tests:test}
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd) \
+%{__python3} -m pytest tests
%endif
+# %{?with_tests:test}
%if %{with doc}
-# no Makefile docs
-cd docs
-sphinx-build -b html . _build/html
+sphinx-build-3 -b html docs docs/_build/html
%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 README.rst docs/{license,news}.txt
-# paste is also top dir for other python-Paste* packages
-%dir %{py_sitescriptdir}/paste
-%{py_sitescriptdir}/paste/auth
-%{py_sitescriptdir}/paste/cowbell
-%{py_sitescriptdir}/paste/debug
-%{py_sitescriptdir}/paste/evalexception
-%{py_sitescriptdir}/paste/exceptions
-%{py_sitescriptdir}/paste/util
-%{py_sitescriptdir}/paste/*.py[co]
-%{py_sitescriptdir}/Paste-%{version}-py*.egg-info
-%{py_sitescriptdir}/Paste-%{version}-py*-nspkg.pth
-%endif
-
-%if %{with python3}
-%files -n python3-Paste
-%defattr(644,root,root,755)
-%doc README.rst docs/{license,news}.txt
# paste is also top dir for other python3-Paste* packages
%dir %{py3_sitescriptdir}/paste
%{py3_sitescriptdir}/paste/auth
@@ -158,7 +95,6 @@ rm -rf $RPM_BUILD_ROOT
%{py3_sitescriptdir}/paste/__pycache__
%{py3_sitescriptdir}/Paste-%{version}-py*.egg-info
%{py3_sitescriptdir}/Paste-%{version}-py*-nspkg.pth
-%endif
%if %{with doc}
%files apidocs
diff --git a/python-Paste-py3.7.patch b/python-Paste-py3.7.patch
deleted file mode 100644
index ecc04af..0000000
--- a/python-Paste-py3.7.patch
+++ /dev/null
@@ -1,17 +0,0 @@
---- Paste-2.0.3/paste/auth/digest.py.orig 2015-04-23 22:48:37.000000000 +0200
-+++ Paste-2.0.3/paste/auth/digest.py 2018-07-21 16:59:34.093889555 +0200
-@@ -52,12 +52,12 @@
- prev = item
- continue
- else:
-- raise StopIteration
-+ return
- yield prev.strip()
- prev = item
-
- yield prev.strip()
-- raise StopIteration
-+ return
-
- def _auth_to_kv_pairs(auth_string):
- """ split a digest auth string into key, value pairs """
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-Paste.git/commitdiff/80ccc5926604dbc9ca96849847e53c251dc12ff6
More information about the pld-cvs-commit
mailing list