From 8b9f72268af675cd4972697c3939fd46d0474c54 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 24 Jul 2024 16:10:17 +0800 Subject: [PATCH] github,setup,tox: drop support for Python<3.9 the CI is failing because we are using typing annotation like `dict[str, Any]`. and per https://devguide.python.org/versions/, Python 3.8 will be EOL in 2024-10. So let's stop support all versions lower than Python 3.9. Signed-off-by: Kefu Chai --- .github/workflows/tests.yml | 2 +- setup.py | 6 ------ tox.ini | 3 +-- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 84e0db2..0f57493 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,7 +15,7 @@ jobs: - ubuntu-latest # ubuntu-18.04 # - macos-latest # macOS-10.14 casing trouble for requests-mock # - windows-latest # windows-2019 causing trouble for the test_xdist - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + python-version: ['3.9', '3.10', '3.11', '3.12'] steps: - uses: actions/checkout@v4 diff --git a/setup.py b/setup.py index 1ff63b6..f5e1faf 100644 --- a/setup.py +++ b/setup.py @@ -34,13 +34,7 @@ def read(fname): "Intended Audience :: Developers", "Topic :: Software Development :: Testing", "Programming Language :: Python", - "Programming Language :: Python :: 2", - "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: Implementation :: CPython", diff --git a/tox.ini b/tox.ini index 3b57709..b406534 100644 --- a/tox.ini +++ b/tox.ini @@ -4,11 +4,10 @@ isolated_build = true skip_missing_interpreters = true envlist = pre-commit - {py27,py36,py37,py38,py39,py310,py311,py312,pypy2,pypy3} + {py39,py310,py311,py312,pypy2,pypy3} [gh-actions] python = - 3.8: py38, pre-commit 3.9: py39, pre-commit 3.10: py310, pre-commit 3.11: py311, pre-commit