Skip to content

Commit 58cea7a

Browse files
committedFeb 20, 2024
Drop support for CPython 3.7
1 parent 9439fad commit 58cea7a

File tree

7 files changed

+8
-10
lines changed

7 files changed

+8
-10
lines changed
 

‎.github/workflows/run-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev", "pypy-3.9", "pypy-3.10"]
15+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.9", "pypy-3.10"]
1616
os: [ubuntu-22.04, macOS-latest, windows-latest]
1717

1818
steps:

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Requests is available on PyPI:
3333
$ python -m pip install requests
3434
```
3535

36-
Requests officially supports Python 3.7+.
36+
Requests officially supports Python 3.8+.
3737

3838
## Supported Features & Best–Practices
3939

‎docs/community/faq.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Chris Adams gave an excellent summary on
5555
Python 3 Support?
5656
-----------------
5757

58-
Yes! Requests officially supports Python 3.7+ and PyPy.
58+
Yes! Requests officially supports Python 3.8+ and PyPy.
5959

6060
Python 2 Support?
6161
-----------------

‎docs/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Requests is ready for today's web.
7272
- Chunked Requests
7373
- ``.netrc`` Support
7474

75-
Requests officially supports Python 3.7+, and runs great on PyPy.
75+
Requests officially supports Python 3.8+, and runs great on PyPy.
7676

7777

7878
The User Guide

‎requirements-dev.txt

-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ pytest-httpbin==2.0.0
55
httpbin~=0.10.0
66
trustme
77
wheel
8-
cryptography<40.0.0; python_version <= '3.7' and platform_python_implementation == 'PyPy'

‎setup.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from setuptools.command.test import test as TestCommand
88

99
CURRENT_PYTHON = sys.version_info[:2]
10-
REQUIRED_PYTHON = (3, 7)
10+
REQUIRED_PYTHON = (3, 8)
1111

1212
if CURRENT_PYTHON < REQUIRED_PYTHON:
1313
sys.stderr.write(
@@ -20,7 +20,7 @@
2020
consider upgrading to a supported Python version.
2121
2222
If you can't upgrade your Python version, you'll need to
23-
pin to an older version of Requests (<2.28).
23+
pin to an older version of Requests (<2.32.0).
2424
""".format(
2525
*(REQUIRED_PYTHON + CURRENT_PYTHON)
2626
)
@@ -94,7 +94,7 @@ def run_tests(self):
9494
package_data={"": ["LICENSE", "NOTICE"]},
9595
package_dir={"": "src"},
9696
include_package_data=True,
97-
python_requires=">=3.7",
97+
python_requires=">=3.8",
9898
install_requires=requires,
9999
license=about["__license__"],
100100
zip_safe=False,
@@ -107,7 +107,6 @@ def run_tests(self):
107107
"Operating System :: OS Independent",
108108
"Programming Language :: Python",
109109
"Programming Language :: Python :: 3",
110-
"Programming Language :: Python :: 3.7",
111110
"Programming Language :: Python :: 3.8",
112111
"Programming Language :: Python :: 3.9",
113112
"Programming Language :: Python :: 3.10",

‎tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{37,38,39,310,311,312}-{default, use_chardet_on_py3}
2+
envlist = py{38,39,310,311,312}-{default, use_chardet_on_py3}
33

44
[testenv]
55
deps = -rrequirements-dev.txt

0 commit comments

Comments
 (0)
Please sign in to comment.