[packages/python3-Paste] - patch to fix tests with setuptools 80
qboosh
qboosh at pld-linux.org
Tue Nov 4 21:39:27 CET 2025
commit 003bc099db31d279731cd20cbd3872399fcdc8af
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Nov 4 21:39:29 2025 +0100
- patch to fix tests with setuptools 80
paste-pkg_resources.patch | 11 +++++++++++
python3-Paste.spec | 7 ++++---
2 files changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/python3-Paste.spec b/python3-Paste.spec
index fb60d71..911df64 100644
--- a/python3-Paste.spec
+++ b/python3-Paste.spec
@@ -13,15 +13,15 @@ License: MIT
#Source0Download: https://pypi.org/simple/paste/
Source0: https://files.pythonhosted.org/packages/source/P/Paste/paste-%{version}.tar.gz
# Source0-md5: 7d59952c9e108d8d381944b40e90e47a
+Patch0: paste-pkg_resources.patch
URL: https://pypi.org/project/Paste/
BuildRequires: python3-devel >= 1:3.6
BuildRequires: python3-setuptools >= 0.6-0.a9.1
%if %{with tests}
BuildRequires: python3-pytest
-BuildRequires: python3-six >= 1.4.0
%endif
%if %{with doc}
-BuildRequires: sphinx-pdg
+BuildRequires: sphinx-pdg-3
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
@@ -54,6 +54,7 @@ Dokumentacja API modułu Pythona Paste.
%prep
%setup -q -n paste-%{version}
+%patch -P0 -p1
# online test + requires outdated pythonpaste.org website content
%{__rm} tests/test_proxy.py
@@ -81,7 +82,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README.rst docs/{license,news}.txt
+%doc LICENSE README.rst docs/news.txt
# paste is also top dir for other python3-Paste* packages
%dir %{py3_sitescriptdir}/paste
%{py3_sitescriptdir}/paste/auth
diff --git a/paste-pkg_resources.patch b/paste-pkg_resources.patch
new file mode 100644
index 0000000..f8f8aa5
--- /dev/null
+++ b/paste-pkg_resources.patch
@@ -0,0 +1,11 @@
+setuptools 80 promoted pkg_resources warning to UserWarning
+--- paste-3.10.1/tests/cgiapp_data/form.cgi.orig 2024-05-01 13:31:26.000000000 +0200
++++ paste-3.10.1/tests/cgiapp_data/form.cgi 2025-11-04 21:30:32.956406183 +0100
+@@ -12,6 +12,7 @@ sys.path.insert(0, base_dir)
+
+ with warnings.catch_warnings():
+ warnings.simplefilter("ignore", category=DeprecationWarning)
++ warnings.simplefilter("ignore", category=UserWarning)
+ try:
+ import pkg_resources
+ except ImportError:
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-Paste.git/commitdiff/003bc099db31d279731cd20cbd3872399fcdc8af
More information about the pld-cvs-commit
mailing list