Skip to content

Commit 03f2e57

Browse files
committed
Add Python 3.13 support
- Include Python 3.13 classifier in PyPI package - Build and publish PyPI package using Python 3.13 - Run tests with Python 3.13, in addition to 3.10-3.12 https://docs.python.org/3/whatsnew/3.13.html
1 parent 1a1cb4c commit 03f2e57

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: ["3.10", "3.11", "3.12"]
15+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1616
env:
1717
HATCH_ENV: "ci"
1818
HATCH_VERSION: "1.14.0"
@@ -55,7 +55,7 @@ jobs:
5555
*) echo "Incorrect Hatch virtualenv." && exit 1 ;;
5656
esac
5757
- name: Test that Git tag version and Python package version match
58-
if: github.ref_type == 'tag' && matrix.python-version == '3.12'
58+
if: github.ref_type == 'tag' && matrix.python-version == '3.13'
5959
run: |
6060
GIT_TAG_VERSION=$GITHUB_REF_NAME
6161
PACKAGE_VERSION=$(hatch version)
@@ -75,5 +75,5 @@ jobs:
7575
- name: Build Python package
7676
run: hatch build
7777
- name: Publish Python package to PyPI
78-
if: github.ref_type == 'tag' && matrix.python-version == '3.12'
78+
if: github.ref_type == 'tag' && matrix.python-version == '3.13'
7979
run: hatch publish -n -u __token__ -a ${{ secrets.PYPI_TOKEN }}

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ classifiers = [
1010
"Programming Language :: Python :: 3.10",
1111
"Programming Language :: Python :: 3.11",
1212
"Programming Language :: Python :: 3.12",
13+
"Programming Language :: Python :: 3.13",
1314
"Typing :: Typed",
1415
]
1516
dependencies = []

0 commit comments

Comments
 (0)