diff --git a/python-Paste.changes b/python-Paste.changes index ccc27ef..8a29fb9 100644 --- a/python-Paste.changes +++ b/python-Paste.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Jan 9 05:47:04 UTC 2023 - Steve Kowalik + +- Add patch support-python-311.patch: + * Filter Deprecationwarning for one test script. +- Remove Python 2 gubbins. + ------------------------------------------------------------------- Fri Sep 9 11:24:27 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-Paste.spec b/python-Paste.spec index 4c3e9b6..b45336e 100644 --- a/python-Paste.spec +++ b/python-Paste.spec @@ -1,7 +1,7 @@ # # spec file for package python-Paste # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define oldpython python Name: python-Paste Version: 3.5.2 Release: 0 @@ -26,6 +24,7 @@ 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 pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six > 1.4.0} @@ -33,15 +32,8 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-six > 1.4.0 Suggests: python-flup -BuildArch: noarch -%ifpython2 -Suggests: python-python-openid -Provides: %{oldpython}-paste = %{version} -Obsoletes: %{oldpython}-paste < %{version} -%endif -%if %{python_version_nodots} >= 30 Suggests: python-python3-openid -%endif +BuildArch: noarch %python_subpackages %description @@ -51,8 +43,7 @@ interface, and should be compatible with other middleware based on those interfaces. %prep -%setup -q -n Paste-%{version} -%patch0 -p1 +%autosetup -p1 -n Paste-%{version} sed -i '/pytest-runner/d' setup.py # remove test requiring internet access rm tests/test_proxy.py diff --git a/support-python-311.patch b/support-python-311.patch new file mode 100644 index 0000000..7a75dc0 --- /dev/null +++ b/support-python-311.patch @@ -0,0 +1,16 @@ +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 +