From 0ab3c38e62b9371ee3524711ba2f4cff82280604 Mon Sep 17 00:00:00 2001 From: Theron Luhn Date: Thu, 10 Oct 2024 10:47:31 -0700 Subject: [PATCH 1/2] Add Python 3.13 support using `legacy-cgi` --- .github/workflows/ci-tests.yml | 1 + setup.py | 3 +++ tox.ini | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index f779e1c9..3d8748de 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -21,6 +21,7 @@ jobs: - "3.10" - "3.11" - "3.12" + - "3.13" - "pypy-3.9" - "pypy-3.10" os: diff --git a/setup.py b/setup.py index cb7a988f..ea62658a 100644 --- a/setup.py +++ b/setup.py @@ -53,6 +53,9 @@ packages=find_packages("src", exclude=["tests"]), package_dir={"": "src"}, python_requires=">=3.8", + install_requires=[ + "legacy-cgi~=2.6; python_version >= '3.13'", + ], zip_safe=True, extras_require={"testing": testing_extras, "docs": docs_extras}, ) diff --git a/tox.ini b/tox.ini index d27c853e..fcfc2c43 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] envlist = lint, - py38,py39,py310,py311,py312,pypy39,pypy310, + py38,py39,py310,py311,py312,py313,pypy39,pypy310, coverage, docs, isolated_build = True From afdbbcc0de841a314e10b725c9ade6860de055d5 Mon Sep 17 00:00:00 2001 From: Theron Luhn Date: Thu, 10 Oct 2024 12:19:45 -0700 Subject: [PATCH 2/2] Loosen version constraints. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ea62658a..c302cdca 100644 --- a/setup.py +++ b/setup.py @@ -54,7 +54,7 @@ package_dir={"": "src"}, python_requires=">=3.8", install_requires=[ - "legacy-cgi~=2.6; python_version >= '3.13'", + "legacy-cgi>=2.6; python_version>='3.13'", ], zip_safe=True, extras_require={"testing": testing_extras, "docs": docs_extras},