Add support for Python 3.14 and drop support for Python 3.8 (#6993)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
* Add testing for Python 3.14 preview build * Add trove classifier for Python 3.14 * Remove support for Python 3.8
authored by Nate Prewitt · committed by GitHub · parent fec96cd · Browse files · 7 files·+19 added−14 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
7 files+19 added−14 removed
- other:+19 added−14 removed
Provenance
- Commit
2edca11- Tree
46375bd- Author
Nate Prewitt <nate.prewitt@gmail.com>- Committer
GitHub <noreply@github.com>- Parent
fec96cd
7 files changed+19 added−14 removed
modified:.github/workflows/run-tests.yml+5 added-5 removed
10 unmodified lines1112131415151617181921 unmodified lines41424344454546474848495051528 unmodified lines61626364656566676868697071723 unmodified lines10 unmodified lines timeout-minutes: 10 strategy: fail-fast: false matrix: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy-3.10", "pypy-3.11"] python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14-dev", "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. exclude:21 unmodified lines fail-fast: true
steps: - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - name: 'Set up Python 3.8' - name: 'Set up Python 3.9' uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 with: python-version: '3.8' python-version: '3.9' - name: Install dependencies run: | make python -m pip uninstall -y "charset_normalizer" "chardet"8 unmodified lines fail-fast: true
steps: - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - name: 'Set up Python 3.8' - name: 'Set up Python 3.9' uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 with: python-version: '3.8' python-version: '3.9' - name: Install dependencies run: | make python -m pip install "urllib3<2"3 unmodified linesmodified:docs/community/faq.rst+4 added-3 removed
53 unmodified lines54 55 Python 3 Support?56 -----------------57 58-Yes! Requests officially supports Python 3.8+ and PyPy.58+Yes! Requests supports all `officially supported versions of Python <https://devguide.python.org/versions/>`_59+and recent releases of PyPy.60 61 Python 2 Support?62 -----------------63 64 No! As of Requests 2.28.0, Requests no longer supports Python 2.7. Users who65 have been unable to migrate should pin to `requests<2.28`. Full information66 can be found in `psf/requests#6023 <https://github.com/psf/requests/issues/6023>`_.67 67-It is *highly* recommended users migrate to Python 3.8+ now since Python68-2.7 is no longer receiving bug fixes or security updates as of January 1, 2020.68+It is *highly* recommended users migrate to a supported Python 3.x version now since69+Python 2.7 is no longer receiving bug fixes or security updates as of January 1, 2020.70 71 What are "hostname doesn't match" errors?72 -----------------------------------------73 17 unmodified linesmodified:docs/index.rst+1 added-1 removed
70 unmodified lines71 - Connection Timeouts72 - Chunked Requests73 - ``.netrc`` Support74 75-Requests officially supports Python 3.8+, and runs great on PyPy.75+Requests officially supports Python 3.9+, and runs great on PyPy.76 77 78 The User Guide79 --------------61 unmodified linesmodified:HISTORY.md+4 added
4 unmodified lines5 ---6 7 - \[Short description of non-trivial change.\]8 9+**Deprecations**10+- Added support for Python 3.14.11+- Dropped support for Python 3.8 following its end of support.12+13 2.32.4 (2025-06-10)14 -------------------15 16 **Security**1986 unmodified linesmodified:README.md+1 added-1 removed
31 unmodified lines3233343536363738394038 unmodified lines31 unmodified lines```console$ python -m pip install requests```
Requests officially supports Python 3.8+.Requests officially supports Python 3.9+.
## Supported Features & Best–Practices
Requests is ready for the demands of building robust and reliable HTTP–speaking applications, for the needs of today.38 unmodified linesmodified:setup.py+3 added-3 removed
4 unmodified lines5 6 from setuptools import setup7 8 CURRENT_PYTHON = sys.version_info[:2]9-REQUIRED_PYTHON = (3, 8)9+REQUIRED_PYTHON = (3, 9)10 11 if CURRENT_PYTHON < REQUIRED_PYTHON:12 sys.stderr.write(13 """54 unmodified lines68 packages=["requests"],69 package_data={"": ["LICENSE", "NOTICE"]},70 package_dir={"": "src"},71 include_package_data=True,72- python_requires=">=3.8",72+ python_requires=">=3.9",73 install_requires=requires,74 license=about["__license__"],75 zip_safe=False,76 classifiers=[4 unmodified lines81 "Natural Language :: English",82 "Operating System :: OS Independent",83 "Programming Language :: Python",84 "Programming Language :: Python :: 3",85- "Programming Language :: Python :: 3.8",85 "Programming Language :: Python :: 3.9",86 "Programming Language :: Python :: 3.10",87 "Programming Language :: Python :: 3.11",88 "Programming Language :: Python :: 3.12",89 "Programming Language :: Python :: 3.13",90+ "Programming Language :: Python :: 3.14",91 "Programming Language :: Python :: 3 :: Only",92 "Programming Language :: Python :: Implementation :: CPython",93 "Programming Language :: Python :: Implementation :: PyPy",94 "Topic :: Internet :: WWW/HTTP",13 unmodified linesmodified:tox.ini+1 added-1 removed
1 [tox]2-envlist = py{38,39,310,311,312,313}-{default, use_chardet_on_py3}2+envlist = py{39,310,311,312,313,314}-{default, use_chardet_on_py3}3 4 [testenv]5 deps = -rrequirements-dev.txt6 extras =12 unmodified lines