From e0a3bfc749d857b106acb2d0a040da0bb51b3db8 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Tue, 19 Dec 2023 11:44:34 +0200 Subject: [PATCH] Add support for Python 3.12 --- .github/workflows/tests.yml | 12 ++++++------ pyproject.toml | 1 + tox.ini | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cc6abf5a..c0806d40 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python 3.8 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.8" - uses: pre-commit/action@v3.0.0 @@ -25,7 +25,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] sphinx: [">=7,<8"] os: [ubuntu-latest] include: @@ -41,7 +41,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -76,7 +76,7 @@ jobs: - name: Checkout source uses: actions/checkout@v4 - name: Set up Python 3.8 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.8" - name: Install setup @@ -131,7 +131,7 @@ jobs: - name: Checkout source uses: actions/checkout@v4 - name: Set up Python 3.8 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.8" - name: install flit @@ -154,7 +154,7 @@ jobs: - name: Checkout source uses: actions/checkout@v4 - name: Set up Python 3.8 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.8" - name: install flit and tomlkit diff --git a/pyproject.toml b/pyproject.toml index b57ad5b6..2993b24f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,6 +19,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", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Python Modules", diff --git a/tox.ini b/tox.ini index 55cd32fd..b2ebcee3 100644 --- a/tox.ini +++ b/tox.ini @@ -16,7 +16,7 @@ envlist = py38-sphinx7 [testenv] usedevelop = true -[testenv:py{37,38,39,310,311}-sphinx{6,7}] +[testenv:py{38,39,310,311,312}-sphinx{6,7}] deps = sphinx6: sphinx>=6,<7 sphinx7: sphinx>=7,<8