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+
This commit is contained in:
Benoit Chesneau 2025-10-05 22:45:21 +02:00 committed by GitHub
parent 1dc4ce9d59
commit 56b5ad87f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 12 additions and 7 deletions

View File

@ -21,11 +21,14 @@ jobs:
- macos-13
# Not testing Windows, because tests need Unix-only fcntl, grp, pwd, etc.
python-version:
# Supporting only N (3.13) and N-1 (3.12)
# Supporting Python 3.10 through 3.13
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "pypy-3.10"
include:
# Test on macos-latest (arm64) with both versions
# Test on macos-latest (arm64) with recent versions
- os: macos-latest
python-version: "3.12"
unsupported: false

View File

@ -32,7 +32,7 @@ The documentation is hosted at https://docs.gunicorn.org.
Installation
------------
Gunicorn requires **Python 3.x >= 3.7**.
Gunicorn requires **Python 3.x >= 3.10**.
Install from PyPI::

View File

@ -25,6 +25,6 @@ Please target reports against :white_check_mark: or current master. Please under
## Python Versions
Gunicorn runs on Python 3.12+, supporting only the latest (N) and previous (N-1) Python versions.
Gunicorn runs on Python 3.10+, supporting Python versions that are still maintained by the PSF.
We *highly recommend* the latest release of a [supported series](https://devguide.python.org/versions/)
and will not prioritize issues affecting EoL environments.

View File

@ -23,7 +23,7 @@ Features
* Simple Python configuration
* Multiple worker configurations
* Various server hooks for extensibility
* Compatible with Python 3.x >= 3.7
* Compatible with Python 3.x >= 3.10
Contents

View File

@ -4,7 +4,7 @@ Installation
.. highlight:: bash
:Requirements: **Python 3.x >= 3.12**
:Requirements: **Python 3.x >= 3.10**
To install the latest released version of Gunicorn::

View File

@ -18,6 +18,8 @@ classifiers = [
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
@ -31,7 +33,7 @@ classifiers = [
"Topic :: Internet :: WWW/HTTP :: WSGI :: Server",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
]
requires-python = ">=3.12"
requires-python = ">=3.10"
dependencies = [
"packaging",
]