Drop support for Python 3.9 (#7196)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Nate Prewitt · committed by GitHub · parent 32e26af · Browse files · 5 files·+11 added−13 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
5 files+11 added−13 removed
- other:+11 added−13 removed
Provenance
- Commit
0c2bbe7- Tree
aa568fa- Author
Nate Prewitt <nate.prewitt@gmail.com>- Committer
GitHub <noreply@github.com>- Parent
32e26af
5 files changed+11 added−13 removed
modified:.github/workflows/run-tests.yml+5 added-5 removed
11 unmodified lines1213141516161718192023 unmodified lines44454647484849505151525354558 unmodified lines64656667686869707171727374753 unmodified lines11 unmodified lines timeout-minutes: 10 strategy: fail-fast: false matrix: python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.15-dev", "pypy-3.11"] python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15-dev", "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:23 unmodified lines fail-fast: true
steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd - name: 'Set up Python 3.9' - name: 'Set up Python 3.10' uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 with: python-version: '3.9' python-version: '3.10' - name: Install dependencies run: | make python -m pip uninstall -y "charset_normalizer" "chardet"8 unmodified lines fail-fast: true
steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd - name: 'Set up Python 3.9' - name: 'Set up Python 3.10' uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 with: python-version: '3.9' python-version: '3.10' - name: Install dependencies run: | make python -m pip install "urllib3<2"3 unmodified linesmodified:pyproject.toml+2 added-4 removed
12 unmodified lines131415161717181920219 unmodified lines31323334353536373844 unmodified lines838485868889878889909111 unmodified lines12 unmodified linesmaintainers = [ {name = "Ian Stapleton Cordasco", email="graffatcolmingov@gmail.com"}, {name = "Nate Prewitt", email="nate.prewitt@gmail.com"}]requires-python = ">=3.9"requires-python = ">=3.10"dependencies = [ "charset_normalizer>=2,<4", "idna>=2.5,<4", "urllib3>=1.21.1,<3",9 unmodified lines "Natural Language :: English", "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", "Programming Language :: Python :: 3.13",44 unmodified lines "I", # isort "UP", # pyupgrade "T10", # flake8-debugger (replaces debug-statements hook)]# UP036: Remove once Python 3.10 is the minimum supported versionignore = ["E203", "E501", "UP038", "UP031", "UP036"]ignore = ["E203", "E501", "UP038", "UP031"]per-file-ignores = {"src/requests/__init__.py" = ["E402", "F401"], "src/requests/compat.py" = ["E402", "F401"], "tests/compat.py" = ["F401"]}
[tool.ruff.lint.isort]known-first-party = ["requests"]11 unmodified linesmodified:README.md+1 added-1 removed
31 unmodified lines32 ```console33 $ python -m pip install requests34 ```35 36-Requests officially supports Python 3.9+.36+Requests officially supports Python 3.10+.37 38 ## Supported Features & Best–Practices39 40 Requests is ready for the demands of building robust and reliable HTTP–speaking applications, for the needs of today.38 unmodified linesmodified:setup.py+2 added-2 removed
1 import sys2 3-if sys.version_info < (3, 9):4- sys.stderr.write("Requests requires Python 3.9 or later.\n")3+if sys.version_info < (3, 10): # noqa: UP0364+ sys.stderr.write("Requests requires Python 3.10 or later.\n")5 sys.exit(1)6 7 from setuptools import setup8 1 unmodified linemodified:tox.ini+1 added-1 removed
1 [tox]2-envlist = py{39,310,311,312,313,314}-{default, use_chardet_on_py3}2+envlist = py{310,311,312,313,314}-{default, use_chardet_on_py3}3 4 [testenv]5 deps = -rrequirements-dev.txt6 extras =12 unmodified lines