File support-python-313.patch of Package python-WebOb
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,