Skip to content

Commit 92b3a95

Browse files
Drop Python 3.7 (#1960)
1 parent c3c25bf commit 92b3a95

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Diff for: .github/workflows/test.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
17+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
1818

1919
steps:
2020
- uses: actions/checkout@v4
@@ -37,8 +37,7 @@ jobs:
3737
- name: Tests
3838
run: |
3939
coverage run -m pytest
40-
- if: "matrix.python-version != '3.7'"
41-
name: Mypy
40+
- name: Mypy
4241
# Check whether the imports were sorted correctly.
4342
# When this fails, please run ./tools/sort-imports.sh
4443
run: |

Diff for: setup.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,19 @@ def get_version(package):
3030
package_dir={"": "src"},
3131
package_data={"prompt_toolkit": ["py.typed"]},
3232
install_requires=["wcwidth"],
33-
# We require Python 3.7, because we need:
34-
# - Context variables - PEP 567
35-
# - `asyncio.run()`
36-
python_requires=">=3.7.0",
33+
python_requires=">=3.8.0",
3734
classifiers=[
3835
"Development Status :: 5 - Production/Stable",
3936
"Intended Audience :: Developers",
4037
"License :: OSI Approved :: BSD License",
4138
"Operating System :: OS Independent",
4239
"Programming Language :: Python :: 3",
43-
"Programming Language :: Python :: 3.7",
4440
"Programming Language :: Python :: 3.8",
4541
"Programming Language :: Python :: 3.9",
4642
"Programming Language :: Python :: 3.10",
4743
"Programming Language :: Python :: 3.11",
4844
"Programming Language :: Python :: 3.12",
45+
"Programming Language :: Python :: 3.13",
4946
"Programming Language :: Python :: 3 :: Only",
5047
"Programming Language :: Python",
5148
"Topic :: Software Development",

0 commit comments

Comments
 (0)