From f59343edbf709e737d0673b2641840b5b09f0ba6 Mon Sep 17 00:00:00 2001 From: Perchun Pak Date: Tue, 3 Oct 2023 22:21:26 +0000 Subject: [PATCH] Support Python 3.12 --- .github/workflows/publish.yml | 2 +- .github/workflows/tox-test.yml | 2 +- .github/workflows/validation.yml | 2 +- pyproject.toml | 1 + tox.ini | 7 ++++--- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6d4232b7..fdfc2c97 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 diff --git a/.github/workflows/tox-test.yml b/.github/workflows/tox-test.yml index a40025ee..52bca2cc 100644 --- a/.github/workflows/tox-test.yml +++ b/.github/workflows/tox-test.yml @@ -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 diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 8daa11a1..9600d945 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 01dfdd43..767a3031 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", diff --git a/tox.ini b/tox.ini index 9d53a939..150b8eb5 100644 --- a/tox.ini +++ b/tox.ini @@ -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 = @@ -18,7 +19,7 @@ commands = [testenv:coverage] depends = - py{38,39,310,311} + py{38,39,310,311,312} setenv = COVERAGE_FILE=.coverage commands =