Skip to content

Commit

Permalink
Add support for Python 3.13 (#842)
Browse files Browse the repository at this point in the history
* Add support for Python 3.13

* Prefer 3.13-dev over allow-prereleases
  • Loading branch information
hugovk authored Oct 7, 2024
1 parent 38f84cc commit beb5f3c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
linux:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
PYTHON:
- {VERSION: "3.12", TOXENV: "docs", COVERAGE: "false"}
Expand All @@ -25,8 +26,9 @@ jobs:
- {VERSION: "3.10", TOXENV: "py310"}
- {VERSION: "3.11", TOXENV: "py311"}
- {VERSION: "3.12", TOXENV: "py312"}
- {VERSION: "3.12", TOXENV: "py312", NOTE: "system", SODIUM_INSTALL: "system"}
- {VERSION: "3.12", TOXENV: "py312", NOTE: "minimal", SODIUM_INSTALL_MINIMAL: "1"}
- {VERSION: "3.13-dev", TOXENV: "py313"}
- {VERSION: "3.13-dev", TOXENV: "py313", NOTE: "system", SODIUM_INSTALL: "system"}
- {VERSION: "3.13-dev", TOXENV: "py313", NOTE: "minimal", SODIUM_INSTALL_MINIMAL: "1"}
name: "Linux ${{ matrix.PYTHON.TOXENV }} ${{ matrix.PYTHON.NOTE }}"
steps:
- uses: actions/[email protected]
Expand Down Expand Up @@ -71,8 +73,8 @@ jobs:
- 'macos-latest'
PYTHON:
- {VERSION: "3.7", TOXENV: "py37"}
- {VERSION: "3.12", TOXENV: "py312"}
- {VERSION: "3.12", TOXENV: "py312", NOTE: " (minimal build)", SODIUM_INSTALL_MINIMAL: "1"}
- {VERSION: "3.13-dev", TOXENV: "py313"}
- {VERSION: "3.13-dev", TOXENV: "py313", NOTE: " (minimal build)", SODIUM_INSTALL_MINIMAL: "1"}
exclude:
- PYTHON: {VERSION: "3.7", TOXENV: "py37"}
RUNNER: macos-latest
Expand Down Expand Up @@ -108,6 +110,7 @@ jobs:
- {VERSION: "3.10", TOXENV: "py310", SODIUM_MSVC_VERSION: "v142"}
- {VERSION: "3.11", TOXENV: "py311", SODIUM_MSVC_VERSION: "v142"}
- {VERSION: "3.12", TOXENV: "py312", SODIUM_MSVC_VERSION: "v142"}
- {VERSION: "3.13-dev", TOXENV: "py313", SODIUM_MSVC_VERSION: "v142"}
name: "Python ${{ matrix.PYTHON.VERSION }} on Windows ${{ matrix.WINDOWS.ARCH }}"
steps:
- uses: actions/[email protected]
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.7"
dependencies = [
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{py3,36,37,38,39,310,311,312},docs,meta,mypy
envlist = py{py3,36,37,38,39,310,311,312,313},docs,meta,mypy
isolated_build = True

[testenv]
Expand Down

0 comments on commit beb5f3c

Please sign in to comment.