Skip to content

Commit 6709276

Browse files
authored
Merge pull request #200 from ymyzk/python-3.13
Add Python 3.13 support
2 parents d835370 + 0780a69 commit 6709276

File tree

3 files changed

+20
-11
lines changed

3 files changed

+20
-11
lines changed

.github/workflows/packaging.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: [3.12]
18+
python-version: [3.13]
1919

2020
steps:
2121
- uses: actions/checkout@v3
@@ -30,7 +30,7 @@ jobs:
3030
run: python -m build
3131
- name: Run twine check
3232
run: twine check dist/*
33-
- uses: actions/upload-artifact@v3
33+
- uses: actions/upload-artifact@v4
3434
with:
3535
name: tox-gh-actions-dist
3636
path: dist

.github/workflows/tests.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ jobs:
1313
matrix:
1414
# https://help.github.com/articles/virtual-environments-for-github-actions
1515
platform:
16-
- ubuntu-latest # ubuntu-22.04
16+
- ubuntu-latest # ubuntu-24.04
1717
- macos-13 # macos-13 (Intel)
1818
- macos-latest # macos-14 (M1)
1919
- windows-latest # windows-2022
20-
python-version: [3.7, 3.8, 3.9, '3.10', 3.11, 3.12, pypy-3.7, pypy-3.8, pypy-3.9, pypy-3.10]
20+
python-version: [3.7, 3.8, 3.9, '3.10', 3.11, 3.12, 3.13, pypy-3.7, pypy-3.8, pypy-3.9, pypy-3.10]
21+
include:
22+
- platform: ubuntu-22.04
23+
python-version: 3.7
2124
exclude:
2225
# Exclude the following configuration to avoid an error.
2326
# Error: The version '...' with architecture 'arm64' was not found for macOS 14.4.1.
@@ -26,6 +29,10 @@ jobs:
2629
python-version: 3.7
2730
- platform: macos-latest
2831
python-version: pypy-3.7
32+
- platform: ubuntu-latest
33+
python-version: 3.7
34+
- platform: windows-latest
35+
python-version: pypy-3.9
2936

3037
steps:
3138
- uses: actions/checkout@v3
@@ -49,12 +56,12 @@ jobs:
4956
- name: Test with tox
5057
run: tox
5158
- name: Upload coverage.xml
52-
if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.12' }}
53-
uses: actions/upload-artifact@v3
59+
if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.13' }}
60+
uses: actions/upload-artifact@v4
5461
with:
5562
name: tox-gh-actions-coverage
5663
path: coverage.xml
5764
if-no-files-found: error
5865
- name: Upload coverage.xml to codecov
59-
if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.12' }}
66+
if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.13' }}
6067
uses: codecov/codecov-action@v2

setup.cfg

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ classifiers =
2929
Programming Language :: Python :: 3.10
3030
Programming Language :: Python :: 3.11
3131
Programming Language :: Python :: 3.12
32+
Programming Language :: Python :: 3.13
3233
Programming Language :: Python :: Implementation :: CPython
3334
Programming Language :: Python :: Implementation :: PyPy
3435
Topic :: Software Development :: Testing
@@ -61,9 +62,9 @@ testing =
6162
# but flake8 5.x requires an older version of it.
6263
flake8 >=6, <7; python_version>='3.8'
6364
mypy; platform_python_implementation=='CPython'
64-
pytest >=7, <8
65-
pytest-cov >=3, <4
66-
pytest-mock >=3, <4
65+
pytest >=7
66+
pytest-cov >=4
67+
pytest-mock >=3
6768
pytest-randomly >=3
6869

6970
[options.package_data]
@@ -81,7 +82,7 @@ envlist =
8182
black
8283
flake8
8384
mypy
84-
{py37,py38,py39,py310,py311,pypy3}-toxlatest
85+
{py37,py38,py39,py310,py311,py312,py313,pypy3}-toxlatest
8586

8687
[gh-actions]
8788
python =
@@ -91,6 +92,7 @@ python =
9192
3.10: py310
9293
3.11: py311, black, flake8, mypy
9394
3.12: py312
95+
3.13: py313
9496
pypy-3: pypy3
9597

9698
[testenv]

0 commit comments

Comments
 (0)