- Add patch support-python-311.patch:
* Filter Deprecationwarning for one test script. - Remove Python 2 gubbins. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Paste?expand=0&rev=60
This commit is contained in:
parent
4705ea1c90
commit
6aa6e7a548
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 9 05:47:04 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- 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 <yarunachalam@suse.com>
|
||||
|
||||
|
@ -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
|
||||
|
16
support-python-311.patch
Normal file
16
support-python-311.patch
Normal file
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user