From a845be943d64243c17b7ff4b999e87c5006bce89 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Thu, 31 Aug 2023 00:08:52 +0300 Subject: [PATCH] Add support for Python 3.12 --- .github/workflows/build.yml | 6 +++++- hatch_build.py | 1 + tox.ini | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 023add0..93c784d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,7 @@ jobs: max-parallel: 4 matrix: platform: [ubuntu-latest, windows-latest] - tox-env: [py37, py38, py39, py310, py311, nolxml, nohtml5lib] + tox-env: [py37, py38, py39, py310, py311, py312, nolxml, nohtml5lib] include: - tox-env: py37 python-version: 3.7 @@ -34,6 +34,9 @@ jobs: - tox-env: py311 python-version: '3.11' continue-on-error: false + - tox-env: py312 + python-version: '3.12' + continue-on-error: false - tox-env: nolxml python-version: '3.11' continue-on-error: false @@ -56,6 +59,7 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Set up development Python ${{ matrix.python-version }} if: endsWith(matrix.python-version, '-dev') uses: deadsnakes/action@v2.1.1 diff --git a/hatch_build.py b/hatch_build.py index c0cf85a..e418077 100644 --- a/hatch_build.py +++ b/hatch_build.py @@ -46,6 +46,7 @@ def update(self, metadata): 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Topic :: Software Development :: Libraries :: Python Modules', 'Typing :: Typed' diff --git a/tox.ini b/tox.ini index 3354bbb..42213c3 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] isolated_build = true envlist = - py{37,38,39,310,311}, + py{37,38,39,310,311,312}, lint, nolxml, nohtml5lib [testenv]