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

23
support-python-313.patch Normal file
View File

@@ -0,0 +1,23 @@
From 8b2fc22103ac1b8082752717a3a8a632eb1f4326 Mon Sep 17 00:00:00 2001
From: Theron Luhn <theron@luhn.com>
Date: Thu, 10 Oct 2024 14:23:32 -0700
Subject: [PATCH] Add `legacy-cgi` dependency for Python 3.13+
---
setup.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/setup.py b/setup.py
index 7e8695a7..dbb00157 100644
--- a/setup.py
+++ b/setup.py
@@ -52,6 +52,9 @@
packages=find_packages('src', exclude=['tests']),
package_dir={'': 'src'},
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*',
+ install_requires=[
+ "legacy-cgi>=2.6; python_version>='3.13'",
+ ],
zip_safe=True,
extras_require={
'testing': testing_extras,