diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 24981a3b58..3275080233 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.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev", "pypy-3.9", "pypy-3.10"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.9", "pypy-3.10"] os: [ubuntu-22.04, macOS-latest, windows-latest] steps: diff --git a/README.md b/README.md index c4b170e70f..79cf54d1e1 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.7+. +Requests officially supports Python 3.8+. ## Supported Features & Best–Practices diff --git a/docs/community/faq.rst b/docs/community/faq.rst index 33fb7e84f3..b6ea654e60 100644 --- a/docs/community/faq.rst +++ b/docs/community/faq.rst @@ -55,7 +55,7 @@ Chris Adams gave an excellent summary on Python 3 Support? ----------------- -Yes! Requests officially supports Python 3.7+ and PyPy. +Yes! Requests officially supports Python 3.8+ and PyPy. Python 2 Support? ----------------- diff --git a/docs/index.rst b/docs/index.rst index 50b0adc3d2..289250c2a4 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.7+, and runs great on PyPy. +Requests officially supports Python 3.8+, and runs great on PyPy. The User Guide diff --git a/requirements-dev.txt b/requirements-dev.txt index a663015cda..13173f3ae5 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -5,4 +5,3 @@ pytest-httpbin==2.0.0 httpbin~=0.10.0 trustme wheel -cryptography<40.0.0; python_version <= '3.7' and platform_python_implementation == 'PyPy' diff --git a/setup.py b/setup.py index dc8043a695..1b0eb377b4 100755 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ from setuptools.command.test import test as TestCommand CURRENT_PYTHON = sys.version_info[:2] -REQUIRED_PYTHON = (3, 7) +REQUIRED_PYTHON = (3, 8) if CURRENT_PYTHON < REQUIRED_PYTHON: sys.stderr.write( @@ -20,7 +20,7 @@ consider upgrading to a supported Python version. If you can't upgrade your Python version, you'll need to -pin to an older version of Requests (<2.28). +pin to an older version of Requests (<2.32.0). """.format( *(REQUIRED_PYTHON + CURRENT_PYTHON) ) @@ -94,7 +94,7 @@ def run_tests(self): package_data={"": ["LICENSE", "NOTICE"]}, package_dir={"": "src"}, include_package_data=True, - python_requires=">=3.7", + python_requires=">=3.8", install_requires=requires, license=about["__license__"], zip_safe=False, @@ -107,7 +107,6 @@ def run_tests(self): "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", diff --git a/tox.ini b/tox.ini index 92ab6d1a24..d2b529e2b9 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{37,38,39,310,311,312}-{default, use_chardet_on_py3} +envlist = py{38,39,310,311,312}-{default, use_chardet_on_py3} [testenv] deps = -rrequirements-dev.txt