Skip to content

Commit 56b5ad8

Browse files
authored
Restore Python 3.10 and 3.11 support (#3425)
This change extends Python support back to 3.10 and 3.11, which are still actively maintained by the PSF: - Python 3.10: Security support until Oct 2026 - Python 3.11: Active support (latest feature release) - Python 3.12: Active support - Python 3.13: Latest stable release The previous change to support only 3.12+ was too restrictive as many users are still on Python 3.10 and 3.11 in production environments. Changes: - Updated pyproject.toml to set minimum Python to 3.10 - Added Python 3.10, 3.11, and PyPy 3.10 to CI matrix - Updated all documentation to reflect Python 3.10+ requirement - Maintained compatibility with latest pylint for Python 3.12+
1 parent 1dc4ce9 commit 56b5ad8

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

.github/workflows/tox.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,14 @@ jobs:
2121
- macos-13
2222
# Not testing Windows, because tests need Unix-only fcntl, grp, pwd, etc.
2323
python-version:
24-
# Supporting only N (3.13) and N-1 (3.12)
24+
# Supporting Python 3.10 through 3.13
25+
- "3.10"
26+
- "3.11"
2527
- "3.12"
2628
- "3.13"
29+
- "pypy-3.10"
2730
include:
28-
# Test on macos-latest (arm64) with both versions
31+
# Test on macos-latest (arm64) with recent versions
2932
- os: macos-latest
3033
python-version: "3.12"
3134
unsupported: false

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The documentation is hosted at https://docs.gunicorn.org.
3232
Installation
3333
------------
3434

35-
Gunicorn requires **Python 3.x >= 3.7**.
35+
Gunicorn requires **Python 3.x >= 3.10**.
3636

3737
Install from PyPI::
3838

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ Please target reports against :white_check_mark: or current master. Please under
2525

2626
## Python Versions
2727

28-
Gunicorn runs on Python 3.12+, supporting only the latest (N) and previous (N-1) Python versions.
28+
Gunicorn runs on Python 3.10+, supporting Python versions that are still maintained by the PSF.
2929
We *highly recommend* the latest release of a [supported series](https://devguide.python.org/versions/)
3030
and will not prioritize issues affecting EoL environments.

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Features
2323
* Simple Python configuration
2424
* Multiple worker configurations
2525
* Various server hooks for extensibility
26-
* Compatible with Python 3.x >= 3.7
26+
* Compatible with Python 3.x >= 3.10
2727

2828

2929
Contents

docs/source/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Installation
44

55
.. highlight:: bash
66

7-
:Requirements: **Python 3.x >= 3.12**
7+
:Requirements: **Python 3.x >= 3.10**
88

99
To install the latest released version of Gunicorn::
1010

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ classifiers = [
1818
"Operating System :: POSIX",
1919
"Programming Language :: Python",
2020
"Programming Language :: Python :: 3",
21+
"Programming Language :: Python :: 3.10",
22+
"Programming Language :: Python :: 3.11",
2123
"Programming Language :: Python :: 3.12",
2224
"Programming Language :: Python :: 3.13",
2325
"Programming Language :: Python :: 3 :: Only",
@@ -31,7 +33,7 @@ classifiers = [
3133
"Topic :: Internet :: WWW/HTTP :: WSGI :: Server",
3234
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
3335
]
34-
requires-python = ">=3.12"
36+
requires-python = ">=3.10"
3537
dependencies = [
3638
"packaging",
3739
]

0 commit comments

Comments
 (0)