From 79e6e8a2844848bd3932a64d2d1476f5a11f70ed Mon Sep 17 00:00:00 2001 From: tboy1337 Date: Thu, 30 Oct 2025 08:50:58 +0000 Subject: [PATCH 1/2] Update Python support in documentation and configuration files to reflect the dropping of support for Python 3.9 and the official support for Python 3.10 and above. --- .github/workflows/run-tests.yml | 2 +- HISTORY.md | 1 + README.md | 2 +- docs/index.rst | 2 +- setup.py | 5 ++--- tox.ini | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index b26c3d7ffa..fc60510e6b 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14-dev", "pypy-3.10", "pypy-3.11"] + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "pypy-3.10", "pypy-3.11"] os: [ubuntu-22.04, macOS-latest, windows-latest] # Pypy-3.11 can't install openssl-sys with rust # which prevents us from testing in GHA. diff --git a/HISTORY.md b/HISTORY.md index 3828073adf..8598e418fd 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -19,6 +19,7 @@ dev **Deprecations** - Added support for Python 3.14. - Dropped support for Python 3.8 following its end of support. +- Dropped support for Python 3.9 following its end of support. 2.32.4 (2025-06-10) ------------------- diff --git a/README.md b/README.md index 74adab80dd..66640ff080 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Requests is available on PyPI: $ python -m pip install requests ``` -Requests officially supports Python 3.9+. +Requests officially supports Python 3.10+. ## Supported Features & Best–Practices diff --git a/docs/index.rst b/docs/index.rst index aef47a8906..5f7be0b5c1 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -72,7 +72,7 @@ Requests is ready for today's web. - Chunked Requests - ``.netrc`` Support -Requests officially supports Python 3.9+, and runs great on PyPy. +Requests officially supports Python 3.10+, and runs great on PyPy. The User Guide diff --git a/setup.py b/setup.py index ff65d39102..fa9b579124 100755 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ from setuptools import setup CURRENT_PYTHON = sys.version_info[:2] -REQUIRED_PYTHON = (3, 9) +REQUIRED_PYTHON = (3, 10) if CURRENT_PYTHON < REQUIRED_PYTHON: sys.stderr.write( @@ -69,7 +69,7 @@ package_data={"": ["LICENSE", "NOTICE"]}, package_dir={"": "src"}, include_package_data=True, - python_requires=">=3.9", + python_requires=">=3.10", install_requires=requires, license=about["__license__"], zip_safe=False, @@ -82,7 +82,6 @@ "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", diff --git a/tox.ini b/tox.ini index 70c2855123..b316359aae 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{39,310,311,312,313,314}-{default, use_chardet_on_py3} +envlist = py{310,311,312,313,314}-{default, use_chardet_on_py3} [testenv] deps = -rrequirements-dev.txt From 066686caf96527614db80096492c0062a2ef2f72 Mon Sep 17 00:00:00 2001 From: tboy1337 Date: Sat, 8 Nov 2025 15:44:44 +0700 Subject: [PATCH 2/2] Changed HISTORY.md back to the original as it is an already released version. --- HISTORY.md | 1 - 1 file changed, 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index 8598e418fd..3828073adf 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -19,7 +19,6 @@ dev **Deprecations** - Added support for Python 3.14. - Dropped support for Python 3.8 following its end of support. -- Dropped support for Python 3.9 following its end of support. 2.32.4 (2025-06-10) -------------------