From 49cebb91dee03ceed516fc79c892ff82e7e5092a Mon Sep 17 00:00:00 2001 From: Lars Holmberg Date: Tue, 3 Oct 2023 15:52:36 +0200 Subject: [PATCH] Test and explicitly support Python 3.12. --- .github/workflows/tests.yml | 1 + pyproject.toml | 1 + tox.ini | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8e266521e5..fe1aabdf79 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,6 +20,7 @@ jobs: - { name: "flake8", python: "3.10", os: ubuntu-latest, tox: "flake8" } - { name: "black", python: "3.10", os: ubuntu-latest, tox: "black" } - { name: "mypy", python: "3.10", os: ubuntu-latest, tox: "mypy" } + - { name: "3.12", python: "3.12", os: ubuntu-latest, tox: py312 } - { name: "3.11", python: "3.11", os: ubuntu-latest, tox: py311 } - { name: "3.10", python: "3.10", os: ubuntu-latest, tox: py310 } - { name: "3.9", python: "3.9", os: ubuntu-latest, tox: py39 } diff --git a/pyproject.toml b/pyproject.toml index af5f2e0e6e..f23a64fecb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,6 +36,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "Topic :: Software Development :: Testing", diff --git a/tox.ini b/tox.ini index b85cc8a201..6266e923c8 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ envlist = flake8 black mypy - py{37,38,39,310,311} + py{37,38,39,310,311,312} [flake8] extend-exclude = build,examples/issue_*.py,src/readthedocs-sphinx-search/