Skip to content

Commit

Permalink
Add support for Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Oct 7, 2024
1 parent dbbb989 commit f0e1553
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
14 changes: 10 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,15 +26,17 @@ 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", TOXENV: "py313"}
- {VERSION: "3.13", TOXENV: "py313", NOTE: "system", SODIUM_INSTALL: "system"}
- {VERSION: "3.13", TOXENV: "py313", NOTE: "minimal", SODIUM_INSTALL_MINIMAL: "1"}
name: "Linux ${{ matrix.PYTHON.TOXENV }} ${{ matrix.PYTHON.NOTE }}"
steps:
- uses: actions/[email protected]
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.PYTHON.VERSION }}
allow-prereleases: true
- name: Install tox and coverage
run: pip install tox coverage
- name: Install libsodium (system install only)
Expand Down Expand Up @@ -71,8 +74,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", TOXENV: "py313"}
- {VERSION: "3.13", TOXENV: "py313", NOTE: " (minimal build)", SODIUM_INSTALL_MINIMAL: "1"}
exclude:
- PYTHON: {VERSION: "3.7", TOXENV: "py37"}
RUNNER: macos-latest
Expand All @@ -83,6 +86,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.PYTHON.VERSION }}
allow-prereleases: true
- name: Install tox and coverage
run: pip install tox coverage
- name: Run tests
Expand All @@ -108,6 +112,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", TOXENV: "py313", SODIUM_MSVC_VERSION: "v142"}
name: "Python ${{ matrix.PYTHON.VERSION }} on Windows ${{ matrix.WINDOWS.ARCH }}"
steps:
- uses: actions/[email protected]
Expand All @@ -116,6 +121,7 @@ jobs:
with:
python-version: ${{ matrix.PYTHON.VERSION }}
architecture: ${{ matrix.WINDOWS.ARCH }}
allow-prereleases: true
- name: 'Extract libsodium libraries'
run: |
Expand-Archive src/libsodium-1.0.20-stable-msvc.zip -DestinationPath c:\
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 f0e1553

Please sign in to comment.