Skip to content

Commit

Permalink
Add support for Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Sep 4, 2023
1 parent d35d78e commit e5803da
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- {VERSION: "3.9", TOXENV: "py39"}
- {VERSION: "3.10", TOXENV: "py310"}
- {VERSION: "3.11", TOXENV: "py311"}
- {VERSION: "3.12", TOXENV: "py312"}
- {VERSION: "3.11", TOXENV: "py311", NOTE: "system", SODIUM_INSTALL: "system"}
- {VERSION: "3.11", TOXENV: "py311", NOTE: "minimal", SODIUM_INSTALL_MINIMAL: "1"}
name: "Linux ${{ matrix.PYTHON.TOXENV }} ${{ matrix.PYTHON.NOTE }}"
Expand All @@ -33,6 +34,7 @@ jobs:
uses: actions/setup-python@v4
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 @@ -76,6 +78,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.PYTHON.VERSION }}
allow-prereleases: true
- name: Install tox and coverage
run: pip install tox coverage
- name: Run tests
Expand All @@ -101,13 +104,15 @@ jobs:
- {VERSION: "3.9", TOXENV: "py39", SODIUM_MSVC_VERSION: "v142"}
- {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"}
name: "Python ${{ matrix.PYTHON.VERSION }} on Windows ${{ matrix.WINDOWS.ARCH }}"
steps:
- uses: actions/checkout@v3.6.0
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.PYTHON.VERSION }}
allow-prereleases: true
architecture: ${{ matrix.WINDOWS.ARCH }}
- name: 'Extract libsodium libraries'
run: |
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,5 +231,6 @@ def run(self):
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
)
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{py,36,37,38,39,310,311},docs,meta,mypy
envlist = py{py,36,37,38,39,310,311,312},docs,meta,mypy
isolated_build = True

[testenv]
Expand Down

0 comments on commit e5803da

Please sign in to comment.