From 0f1c778765d864cf4bf252a5f8decfc6f0eb70d2 Mon Sep 17 00:00:00 2001 From: Jonathan Slenders Date: Fri, 17 Jan 2025 20:35:46 +0000 Subject: [PATCH] Drop Python 3.7 --- .github/workflows/test.yaml | 5 ++--- setup.py | 7 ++----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index ea44f3dae..6b391bacf 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 @@ -37,8 +37,7 @@ jobs: - name: Tests run: | coverage run -m pytest - - if: "matrix.python-version != '3.7'" - name: Mypy + - name: Mypy # Check whether the imports were sorted correctly. # When this fails, please run ./tools/sort-imports.sh run: | diff --git a/setup.py b/setup.py index ca2170ce4..2febdf1de 100755 --- a/setup.py +++ b/setup.py @@ -30,22 +30,19 @@ def get_version(package): package_dir={"": "src"}, package_data={"prompt_toolkit": ["py.typed"]}, install_requires=["wcwidth"], - # We require Python 3.7, because we need: - # - Context variables - PEP 567 - # - `asyncio.run()` - python_requires=">=3.7.0", + python_requires=">=3.8.0", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "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", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python", "Topic :: Software Development",