From ebf591c24b61237e95ba57c2b1610ad3585cf4360afd993932917196c7ce9324 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 28 Aug 2023 04:43:09 +0000 Subject: [PATCH] - 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/package/show/devel:languages:python/python-Paste?expand=0&rev=64 --- Paste-3.5.2.tar.gz | 3 --- Paste-3.5.3.tar.gz | 3 +++ python-Paste.changes | 10 ++++++++++ python-Paste.spec | 14 +++++++++----- support-python-311.patch | 16 ---------------- 5 files changed, 22 insertions(+), 24 deletions(-) delete mode 100644 Paste-3.5.2.tar.gz create mode 100644 Paste-3.5.3.tar.gz delete mode 100644 support-python-311.patch diff --git a/Paste-3.5.2.tar.gz b/Paste-3.5.2.tar.gz deleted file mode 100644 index f00ef4a..0000000 --- a/Paste-3.5.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d5a7340c30bcdf3023dd0106c8a5c430dd8fe84aeb8113bc7b93f8dd729f4af6 -size 638207 diff --git a/Paste-3.5.3.tar.gz b/Paste-3.5.3.tar.gz new file mode 100644 index 0000000..147940d --- /dev/null +++ b/Paste-3.5.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fa093f46a4d1ea3898a849c8ce1d2a425c2bed5fc06b36384fe3ffaa652c081b +size 638791 diff --git a/python-Paste.changes b/python-Paste.changes index 4c99788..71d1d88 100644 --- a/python-Paste.changes +++ b/python-Paste.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon Aug 28 04:41:38 UTC 2023 - Steve Kowalik + +- 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 diff --git a/python-Paste.spec b/python-Paste.spec index 41c36a5..7d7d446 100644 --- a/python-Paste.spec +++ b/python-Paste.spec @@ -18,19 +18,21 @@ %{?sle15_python_module_pythons} Name: python-Paste -Version: 3.5.2 +Version: 3.5.3 Release: 0 Summary: Tools for using a Web Server Gateway Interface stack License: MIT URL: https://github.com/cdent/paste Source: https://files.pythonhosted.org/packages/source/P/Paste/Paste-%{version}.tar.gz Patch0: test_modified-fixup.patch -Patch1: support-python-311.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six > 1.4.0} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-setuptools Requires: python-six > 1.4.0 Suggests: python-flup Suggests: python-python3-openid @@ -50,10 +52,10 @@ sed -i '/pytest-runner/d' setup.py rm tests/test_proxy.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -62,6 +64,8 @@ rm tests/test_proxy.py %files %{python_files} %license docs/license.txt %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/paste +%{python_sitelib}/Paste-%{version}.dist-info +%{python_sitelib}/Paste-%{version}-py*-nspkg.pth %changelog diff --git a/support-python-311.patch b/support-python-311.patch deleted file mode 100644 index 7a75dc0..0000000 --- a/support-python-311.patch +++ /dev/null @@ -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 -