Skip to content

Commit 2d9796c

Browse files
committed
Update out-of-date tool versions
This drops official support for Pythons 3.7 and 3.8 which are long since end-of-life. The various versions of GitHub Actions used in the CI pipelines are brought (mostly) up-to-date.
1 parent b79d477 commit 2d9796c

File tree

6 files changed

+25
-31
lines changed

6 files changed

+25
-31
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ jobs:
1010
name: Publish package
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
1616

17-
- uses: actions/setup-python@v3
17+
- uses: actions/setup-python@v5
1818

1919
- name: Install build dependencies
2020
run: pip install -U twine build
2121

2222
- name: Build
2323
run: python -mbuild --wheel --sdist .
2424

25-
- uses: actions/upload-artifact@v2
25+
- uses: actions/upload-artifact@v4
2626
with:
2727
path: |
2828
./dist/*.whl
@@ -35,7 +35,7 @@ jobs:
3535
run: twine upload dist/*.whl dist/*.tar.gz
3636

3737
- name: Publish to GitHub
38-
uses: softprops/action-gh-release@v1
38+
uses: softprops/action-gh-release@v2
3939
with:
4040
draft: false
4141
prerelease: false
@@ -49,11 +49,11 @@ jobs:
4949
name: Publish documentation
5050
runs-on: ubuntu-latest
5151
steps:
52-
- uses: actions/checkout@v3
52+
- uses: actions/checkout@v4
5353

54-
- uses: actions/setup-python@v3
54+
- uses: actions/setup-python@v5
5555
with:
56-
python-version: '3.9'
56+
python-version: '3.13'
5757

5858
- name: Install dependencies
5959
run: python -m pip install --upgrade pip tox

.github/workflows/tests.yml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,11 @@ jobs:
1111
name: Tests
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

16-
# Set up all supported Python versions for tox.
17-
- uses: actions/setup-python@v3
16+
- uses: actions/setup-python@v5
1817
with:
19-
python-version: '3.7'
20-
- uses: actions/setup-python@v3
21-
with:
22-
python-version: '3.8'
23-
- uses: actions/setup-python@v3
24-
with:
25-
python-version: '3.9'
26-
- uses: actions/setup-python@v3
27-
with:
28-
python-version: '3.10'
18+
python-version: '>=3.9'
2919

3020
- name: Update pip
3121
run: python -mpip install --upgrade pip
@@ -38,10 +28,10 @@ jobs:
3828
name: Lint
3929
runs-on: ubuntu-latest
4030
steps:
41-
- uses: actions/checkout@v3
42-
- uses: actions/setup-python@v3
31+
- uses: actions/checkout@v4
32+
- uses: actions/setup-python@v5
4333
with:
44-
python-version: '3.9'
34+
python-version: '3.13'
4535
- name: Update pip
4636
run: python -mpip install --upgrade pip
4737
- name: Install tox
@@ -53,10 +43,10 @@ jobs:
5343
name: Docs
5444
runs-on: ubuntu-latest
5545
steps:
56-
- uses: actions/checkout@v3
57-
- uses: actions/setup-python@v3
46+
- uses: actions/checkout@v4
47+
- uses: actions/setup-python@v5
5848
with:
59-
python-version: '3.9'
49+
python-version: '3.13'
6050
- name: Update pip
6151
run: python -mpip install --upgrade pip
6252
- name: Install tox

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[build-system]
2-
requires = ["setuptools", "wheel"]
2+
requires = ["setuptools"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.black]
66
line-length = 100
7-
target-version = ["py37", "py38", "py39", "py310"]
7+
target-version = ["py39", "py310", "py311", "py312", "py313"]
88

99
[tool.pylint.main]
1010
# Minimum supported Python version.
11-
py-version = "3.7"
11+
py-version = "3.9"
1212
[tool.pylint.basic]
1313
# Naming convention for objects that do not require docstrings.
1414
no-docstring-rgx = "^_"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
upgrade:
3+
- |
4+
The officially supported Python versions are now 3.9 onwards. Any remaining support for the
5+
end-of-life Pythons 3.7 and 3.8 is coincidental and may break without warning.

setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package_dir =
1919
= src
2020
install_requires =
2121
Pygments ~= 2.0
22-
importlib_metadata; python_version < "3.8"
2322

2423
[options.packages.find]
2524
where = src/

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py37, py38, py39, py310
2+
envlist = py39, py310, py311, py312, py313
33
isolated_build = true
44

55
[testenv]

0 commit comments

Comments
 (0)