15
0
forked from pool/python-WebOb

- Add patch support-python-313.patch:

* Add legacy-cgi to install_requires to support Python 3.13.
- Switch to autosetup macro.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WebOb?expand=0&rev=74
This commit is contained in:
2024-10-16 23:01:46 +00:00
committed by Git OBS Bridge
parent 49a4871a71
commit ab93c7df18
3 changed files with 37 additions and 1 deletions

View File

@@ -24,6 +24,9 @@ Summary: WSGI request and response object
License: MIT
URL: http://webob.org/
Source: https://files.pythonhosted.org/packages/source/w/webob/webob-%{version}.tar.gz
# PATCH-FIX-UPSTREAM gh#Pylons/webob#469
Patch0: support-python-313.patch
BuildRequires: %{python_module legacy-cgi if %python-base >= 3.13}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
@@ -32,6 +35,9 @@ BuildRequires: python-rpm-macros
# Documentation requirements:
BuildRequires: fdupes
BuildRequires: python3-Sphinx
%if %{python_version_nodots} >= 313
Requires: python-legacy-cgi
%endif
BuildArch: noarch
%python_subpackages
@@ -53,7 +59,7 @@ This package contains documentation files for %{name}.
%endif
%prep
%setup -q -n webob-%{version}
%autosetup -p1 -n webob-%{version}
%build
%pyproject_wheel