Skip to content
Myr

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

7 files+19 added−14 removed

modified:.github/workflows/run-tests.yml+5 added-5 removed
modified:docs/community/faq.rst+4 added-3 removed
53 unmodified lines
5455Python 3 Support?56-----------------5758Yes! Requests officially supports Python 3.8+ and PyPy.58Yes! Requests supports all `officially supported versions of Python <https://devguide.python.org/versions/>`_59and recent releases of PyPy.6061Python 2 Support?62-----------------6364No! As of Requests 2.28.0, Requests no longer supports Python 2.7. Users who65have been unable to migrate should pin to `requests<2.28`. Full information66can be found in `psf/requests#6023 <https://github.com/psf/requests/issues/6023>`_.6767It is *highly* recommended users migrate to Python 3.8+ now since Python682.7 is no longer receiving bug fixes or security updates as of January 1, 2020.68It is *highly* recommended users migrate to a supported Python 3.x version now since69Python 2.7 is no longer receiving bug fixes or security updates as of January 1, 2020.7071What are "hostname doesn't match" errors?72-----------------------------------------73
17 unmodified lines
modified:docs/index.rst+1 added-1 removed
70 unmodified lines
71- Connection Timeouts72- Chunked Requests73- ``.netrc`` Support7475Requests officially supports Python 3.8+, and runs great on PyPy.75Requests officially supports Python 3.9+, and runs great on PyPy.767778The User Guide79--------------
61 unmodified lines
modified:HISTORY.md+4 added
4 unmodified lines
5---67- \[Short description of non-trivial change.\]89**Deprecations**10- Added support for Python 3.14.11- Dropped support for Python 3.8 following its end of support.12132.32.4 (2025-06-10)14-------------------1516**Security**
1986 unmodified lines
modified:README.md+1 added-1 removed
modified:setup.py+3 added-3 removed
4 unmodified lines
56from setuptools import setup78CURRENT_PYTHON = sys.version_info[:2]9REQUIRED_PYTHON = (3, 8)9REQUIRED_PYTHON = (3, 9)1011if CURRENT_PYTHON < REQUIRED_PYTHON:12 sys.stderr.write(13 """
54 unmodified lines
68 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 lines
81 "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 lines
modified:tox.ini+1 added-1 removed
1[tox]2envlist = py{38,39,310,311,312,313}-{default, use_chardet_on_py3}2envlist = py{39,310,311,312,313,314}-{default, use_chardet_on_py3}34[testenv]5deps = -rrequirements-dev.txt6extras =
12 unmodified lines