Skip to content

Commit 689e2be

Browse files
committed
build: remove python 3.8-3.10, add 3.12-3.13
1 parent 970d9b2 commit 689e2be

4 files changed

Lines changed: 14 additions & 18 deletions

File tree

.github/workflows/python.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,38 +7,35 @@ on:
77
- $default-branch
88

99
jobs:
10-
test:
10+
build:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:
1414
os: [ubuntu-latest, macos-latest, windows-latest]
15-
python-version: ['3.8', '3.9', '3.10', '3.11']
16-
15+
python-version: ['3.11', '3.12', '3.13']
1716
steps:
18-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1918
with:
2019
fetch-depth: 0
21-
- uses: actions/setup-python@v4
20+
- uses: actions/setup-python@v5
2221
with:
2322
python-version: ${{ matrix.python-version }}
24-
architecture: x64
2523
- run: pip install -r requirements_ci.txt
2624
- run: python -m coverage run --branch --source . -m unittest -v
2725
- run: python -m coverage report --show-missing
28-
- run: codecov
26+
- run: python -m codecov --token ${{ secrets.CODECOV_TOKEN }}
2927
publish:
3028
if: startsWith(github.ref, 'refs/tags/v')
31-
needs: test
29+
needs: build
3230
runs-on: ubuntu-latest
3331
steps:
34-
- uses: actions/checkout@v3
32+
- uses: actions/checkout@v4
3533
with:
3634
fetch-depth: 0
37-
- uses: actions/setup-python@v4
35+
- uses: actions/setup-python@v5
3836
with:
39-
python-version: '3.11'
40-
architecture: x64
41-
- run: pip install build
37+
python-version: '3.13'
38+
- run: pip install build~=1.2
4239
- run: python -m build
4340
- uses: pypa/gh-action-pypi-publish@release/v1
4441
with:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PYTHON_VERSION="3.10"
1+
ARG PYTHON_VERSION="3.13"
22

33
FROM python:${PYTHON_VERSION}
44

requirements_ci.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-r requirements_test.txt
22
codecov ~= 2.1
33
coverage ~= 7.2
4-
flake518 ~= 1.6; python_version >= '3.9'
4+
flake518 ~= 1.6
55
mypy ~= 1.5
66
pydocstyle ~= 6.3
77
pylint ~= 2.17

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ class Package(boilerplates.setup.Package):
1818
'Operating System :: MacOS',
1919
'Operating System :: Microsoft :: Windows',
2020
'Operating System :: POSIX :: Linux',
21-
'Programming Language :: Python :: 3.8',
22-
'Programming Language :: Python :: 3.9',
23-
'Programming Language :: Python :: 3.10',
2421
'Programming Language :: Python :: 3.11',
22+
'Programming Language :: Python :: 3.12',
23+
'Programming Language :: Python :: 3.13',
2524
'Programming Language :: Python :: 3 :: Only',
2625
'Topic :: Scientific/Engineering',
2726
'Topic :: Utilities',

0 commit comments

Comments
 (0)