From 0844b4e10e5ac37e792986d9e8bc74774df6181d Mon Sep 17 00:00:00 2001 From: David Tucker Date: Thu, 1 Feb 2024 22:15:36 -0800 Subject: [PATCH] Add support for Python 3.12 --- .github/workflows/validation.yml | 2 +- pyproject.toml | 1 + tox.ini | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 3edcdb3..b9fe779 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -5,7 +5,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 diff --git a/pyproject.toml b/pyproject.toml index 7af330c..19d1e41 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Testing", ] diff --git a/tox.ini b/tox.ini index 4817b10..7d7f905 100644 --- a/tox.ini +++ b/tox.ini @@ -8,6 +8,7 @@ envlist = py39-pytest{4.6, 5.0, 5.x, 6.0, 6.x, 7.0, 7.x}-mypy{0.78, 0.x, 1.0, 1.x} py310-pytest{6.2, 6.x, 7.0, 7.x}-mypy{0.78, 0.x, 1.0, 1.x} py311-pytest{6.2, 6.x, 7.0, 7.x}-mypy{0.90, 0.x, 1.0, 1.x} + py312-pytest{6.2, 6.x, 7.0, 7.x}-mypy{0.90, 0.x, 1.0, 1.x} publish static @@ -18,6 +19,7 @@ python = 3.9: py39-pytest{4.6, 5.0, 5.x, 6.0, 6.x, 7.0, 7.x}-mypy{0.78, 0.x, 1.0, 1.x} 3.10: py310-pytest{6.2, 6.x, 7.0, 7.x}-mypy{0.78, 0.x, 1.0, 1.x} 3.11: py311-pytest{6.2, 6.x, 7.0, 7.x}-mypy{0.90, 0.x, 1.0, 1.x} + 3.12: py312-pytest{6.2, 6.x, 7.0, 7.x}-mypy{0.90, 0.x, 1.0, 1.x} [testenv] deps = @@ -25,6 +27,7 @@ deps = pytest5.0: pytest ~= 5.0.0 pytest5.x: pytest ~= 5.0 pytest6.0: pytest ~= 6.0.0 + pytest6.2: pytest ~= 6.2.0 pytest6.x: pytest ~= 6.0 pytest7.0: pytest ~= 7.0.0 pytest7.x: pytest ~= 7.0