Skip to content

Commit

Permalink
Support Python 3.12 (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
PerchunPak authored Oct 3, 2023
1 parent d7bf03b commit db15ce7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
id: poetry_setup
uses: ItsDrike/setup-poetry@v1
with:
python-version: 3.11
python-version: 3.12
install-args: "--with release"

- name: Prepare pyproject.toml with dynamic version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tox-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.11"]
python-version: ["3.8", "3.12"]

steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
id: poetry_setup
uses: ItsDrike/setup-poetry@v1
with:
python-version: 3.11
python-version: 3.12

- name: Pre-commit Environment Caching
uses: actions/cache@v3
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Games/Entertainment",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Monitoring",
Expand Down
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[tox]
isolated_build = True
envlist =
format-check,lint,py{38,39,310,311},coverage
format-check,lint,py{38,39,310,311,312},coverage

[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311, coverage
3.11: py311
3.12: py312, coverage

[testenv]
setenv =
Expand All @@ -18,7 +19,7 @@ commands =

[testenv:coverage]
depends =
py{38,39,310,311}
py{38,39,310,311,312}
setenv =
COVERAGE_FILE=.coverage
commands =
Expand Down

0 comments on commit db15ce7

Please sign in to comment.