Skip to content

Commit 4615054

Browse files
authored
Require Python 3.9 or later
Drop support for EOL Python versions, and add testing for Python 3.11 and 3.12.
1 parent c127150 commit 4615054

File tree

4 files changed

+11
-18
lines changed

4 files changed

+11
-18
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,15 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
15-
os: [ubuntu-latest, macos-latest, windows-latest]
16-
exclude:
17-
# TODO Fix these versions on Windows
18-
- {os: windows-latest, python-version: "3.7"}
19-
- {os: windows-latest, python-version: "3.8"}
20-
- {os: windows-latest, python-version: "3.9"}
21-
- {os: windows-latest, python-version: "3.10"}
22-
- {os: windows-latest, python-version: "3.11"}
14+
# Python >= 3.13 will fail with `ModuleNotFoundError: No module named 'lib2to3'`
15+
python-version: ["3.9", "3.10", "3.11", "3.12"]
16+
os: [ubuntu-latest, macos-latest] # , windows-latest] # Windows tests will fail.
2317

2418
steps:
25-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2620

2721
- name: Set up Python ${{ matrix.python-version }}
28-
uses: actions/setup-python@v4
22+
uses: actions/setup-python@v5
2923
with:
3024
python-version: ${{ matrix.python-version }}
3125

@@ -35,7 +29,7 @@ jobs:
3529
echo "::set-output name=dir::$(pip cache dir)"
3630
3731
- name: Cache
38-
uses: actions/cache@v3
32+
uses: actions/cache@v4
3933
with:
4034
path: ${{ steps.pip-cache.outputs.dir }}
4135
key:

CHANGES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Changelog
44
0.5 (unreleased)
55
----------------
66

7-
- Nothing changed yet.
7+
- Python >=3.9 is now required.
88

99

1010
0.4 (2019-06-30)

setup.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,13 @@ def read(filename):
6565
"Programming Language :: Python",
6666
"Programming Language :: Python :: 3",
6767
"Programming Language :: Python :: 3 :: Only",
68-
"Programming Language :: Python :: 3.6",
69-
"Programming Language :: Python :: 3.7",
70-
"Programming Language :: Python :: 3.8",
7168
"Programming Language :: Python :: 3.9",
7269
"Programming Language :: Python :: 3.10",
70+
"Programming Language :: Python :: 3.11",
71+
"Programming Language :: Python :: 3.12",
7372
"Topic :: Software Development",
7473
"Topic :: Utilities",
7574
],
76-
python_requires=">=3.6",
75+
python_requires=">=3.9",
7776
zip_safe=False
7877
)

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py36, py37, py38, py39, py310, py311
7+
envlist = py39, py310, py311, py312
88

99
[testenv]
1010
deps =

0 commit comments

Comments
 (0)