Accepting request 1106211 from devel:languages:python

- Update to 3.5.3:
  * Use importlib instead of imp with Python 3.
- Drop patch support-python-311.patch, something similar now included
  upstream.
- Switch to pyproject macros.
- Stop using greedy globs in %files.

OBS-URL: https://build.opensuse.org/request/show/1106211
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Paste?expand=0&rev=37
This commit is contained in:
Ana Guerrero 2023-08-30 08:19:13 +00:00 committed by Git OBS Bridge
commit 220ed439d1
5 changed files with 22 additions and 24 deletions

BIN
Paste-3.5.2.tar.gz (Stored with Git LFS)

Binary file not shown.

3
Paste-3.5.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fa093f46a4d1ea3898a849c8ce1d2a425c2bed5fc06b36384fe3ffaa652c081b
size 638791

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Aug 28 04:41:38 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 3.5.3:
* Use importlib instead of imp with Python 3.
- Drop patch support-python-311.patch, something similar now included
upstream.
- Switch to pyproject macros.
- Stop using greedy globs in %files.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue May 9 13:53:17 UTC 2023 - Johannes Kastl <kastl@b1-systems.de> Tue May 9 13:53:17 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>

View File

@ -18,19 +18,21 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-Paste Name: python-Paste
Version: 3.5.2 Version: 3.5.3
Release: 0 Release: 0
Summary: Tools for using a Web Server Gateway Interface stack Summary: Tools for using a Web Server Gateway Interface stack
License: MIT License: MIT
URL: https://github.com/cdent/paste URL: https://github.com/cdent/paste
Source: https://files.pythonhosted.org/packages/source/P/Paste/Paste-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/P/Paste/Paste-%{version}.tar.gz
Patch0: test_modified-fixup.patch Patch0: test_modified-fixup.patch
Patch1: support-python-311.patch BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six > 1.4.0} BuildRequires: %{python_module six > 1.4.0}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-setuptools
Requires: python-six > 1.4.0 Requires: python-six > 1.4.0
Suggests: python-flup Suggests: python-flup
Suggests: python-python3-openid Suggests: python-python3-openid
@ -50,10 +52,10 @@ sed -i '/pytest-runner/d' setup.py
rm tests/test_proxy.py rm tests/test_proxy.py
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@ -62,6 +64,8 @@ rm tests/test_proxy.py
%files %{python_files} %files %{python_files}
%license docs/license.txt %license docs/license.txt
%doc README.rst %doc README.rst
%{python_sitelib}/* %{python_sitelib}/paste
%{python_sitelib}/Paste-%{version}.dist-info
%{python_sitelib}/Paste-%{version}-py*-nspkg.pth
%changelog %changelog

View File

@ -1,16 +0,0 @@
Index: Paste-3.5.2/tests/cgiapp_data/form.cgi
===================================================================
--- Paste-3.5.2.orig/tests/cgiapp_data/form.cgi
+++ Paste-3.5.2/tests/cgiapp_data/form.cgi
@@ -2,6 +2,11 @@
from __future__ import print_function
+import warnings
+# Since the Paste machinery expects these scripts to return no stderr,
+# filter all DeprecationWarnings
+warnings.simplefilter("ignore", category=DeprecationWarning)
+
import cgi
import six