Skip to content

Commit

Permalink
Test Python 3.13
Browse files Browse the repository at this point in the history
Python 3.13 will be released in a few days
(its third and final release candidate was published a few days ago).

This PR adds Python 3.13 to the tox test suite and to CI.
  • Loading branch information
kurtmckee committed Oct 4, 2024
1 parent 0f335b3 commit 878c408
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
- "3.10"
- "3.11"
- "3.12"
- "3.13"

include:
# Augment the matrix with additional values.
Expand Down Expand Up @@ -58,6 +59,7 @@ jobs:
with:
python-version: "${{ matrix.cpython }}"
architecture: "${{ matrix.architecture }}"
allow-prereleases: true

- name: "Install build prerequisites (Linux)"
if: matrix.name == 'Linux'
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ def run(self):
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Security",
],
}
Expand Down
12 changes: 6 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The following list of Python versions appears in several places in this file.
#
# {3.9, 3.10, 3.11, 3.12}
# {3.9, 3.10, 3.11, 3.12, 3.13}
#
# This affects parallel test suite execution and wheels that get built,
# so use search-and-replace to update this list in all locations.
Expand All @@ -10,12 +10,12 @@
envlist =
pylint
coverage_erase
py{3.9, 3.10, 3.11, 3.12}
py{3.9, 3.10, 3.11, 3.12, 3.13}
coverage_report
docs
skip_missing_interpreters = True
labels =
build=build-py{3.9, 3.10, 3.11, 3.12}
build=build-py{3.9, 3.10, 3.11, 3.12, 3.13}

[testenv:coverage_erase]
description = Erase existing coverage reports
Expand All @@ -27,14 +27,14 @@ commands =

[testenv]
depends =
py{3.9, 3.10, 3.11, 3.12}: coverage_erase
py{3.9, 3.10, 3.11, 3.12, 3.13}: coverage_erase
deps =
-r{toxinidir}/dev-requirements.txt
commands =
coverage run -m pytest

[testenv:coverage_report{,-ci}]
depends = py{3.9, 3.10, 3.11, 3.12}
depends = py{3.9, 3.10, 3.11, 3.12, 3.13}
description =
!ci: Generate HTML and console reports
ci: Generate an XML report
Expand All @@ -50,7 +50,7 @@ commands =
# In CI, simply generate an XML report
ci: - coverage xml

[testenv:build,build-py{3.9, 3.10, 3.11, 3.12}]
[testenv:build,build-py{3.9, 3.10, 3.11, 3.12, 3.13}]
description = Build sdist and wheel files
skip_install = True
deps =
Expand Down

0 comments on commit 878c408

Please sign in to comment.