From ee1a18505d4f15ed254dd45bddd406b5b283eef8 Mon Sep 17 00:00:00 2001 From: Riccardo Coccioli Date: Thu, 23 Nov 2023 22:38:53 +0100 Subject: [PATCH] setup.py: add official support for Python 3.12 --- .github/workflows/run-tox.yaml | 2 +- setup.py | 1 + tox.ini | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tox.yaml b/.github/workflows/run-tox.yaml index 3aae4f1..a93c96f 100644 --- a/.github/workflows/run-tox.yaml +++ b/.github/workflows/run-tox.yaml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: ["3.9", "3.10", "3.11"] + python: ["3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v3 diff --git a/setup.py b/setup.py index 8e04ebe..e954365 100644 --- a/setup.py +++ b/setup.py @@ -49,6 +49,7 @@ 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: 3 :: Only', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Text Processing', diff --git a/tox.ini b/tox.ini index 40b19e7..0d31453 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 3.10.0 -envlist = py{39,310,311}-{ruff,unit,mypy,prospector,sphinx} +envlist = py{39,310,311,312}-{ruff,unit,mypy,prospector,sphinx} skip_missing_interpreters = True @@ -18,6 +18,7 @@ description = py39: (Python 3.9) py310: (Python 3.10) py311: (Python 3.11) + py312: (Python 3.12) commands = unit: py.test --strict-markers --cov-report=term-missing --cov=gjson tests/unit {posargs} mypy: mypy --show-error-codes gjson/