From 217cd04074f157665291d719fdd45ca93fcd0e48 Mon Sep 17 00:00:00 2001 From: Kesara Rathnayake Date: Sat, 4 Nov 2023 11:56:35 +0100 Subject: [PATCH] feat: Add support for Python 3.12 Fixes #1044 --- .github/workflows/checks.yml | 6 +++--- docker/dev.Dockerfile | 5 ++++- setup.cfg | 2 +- tox.ini | 1 + 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index a84f8053..4e21cc25 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -35,7 +35,7 @@ jobs: strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - name: Checkout repository @@ -109,7 +109,7 @@ jobs: strategy: matrix: - python-version: ['3.8', '3.9', '3.10', '3.11'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - name: Checkout repository @@ -173,7 +173,7 @@ jobs: # strategy: # matrix: -# python-version: ['3.8', '3.9', '3.10'] +# python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] # steps: # - name: Checkout repository diff --git a/docker/dev.Dockerfile b/docker/dev.Dockerfile index 70039396..dfe7271a 100644 --- a/docker/dev.Dockerfile +++ b/docker/dev.Dockerfile @@ -24,7 +24,10 @@ RUN apt-get update --fix-missing && \ libxslt-dev \ python3.11 \ python3.11-dev \ - python3.11-distutils && \ + python3.11-distutils \ + python3.12 \ + python3.12-dev \ + python3.12-distutils && \ rm -rf /var/lib/apt/lists/* /var/log/dpkg.log && \ apt-get autoremove -y && \ apt-get clean -y diff --git a/setup.cfg b/setup.cfg index 55b34f43..c385ee59 100644 --- a/setup.cfg +++ b/setup.cfg @@ -22,11 +22,11 @@ classifiers = Topic :: Text Processing Topic :: Text Processing :: Markup :: XML License :: OSI Approved :: BSD License - Programming Language :: Python :: 3 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 [options] packages = xml2rfc, xml2rfc/writers, xml2rfc/util, xml2rfc/uniscripts, xml2rfc/data, xml2rfc/templates diff --git a/tox.ini b/tox.ini index 1b54d2a3..1d62294a 100644 --- a/tox.ini +++ b/tox.ini @@ -13,6 +13,7 @@ python = 3.9: py39 3.10: py310 3.11: py311 + 3.12: py312 [gh-actions:env] PLATFORM =