From eda6fa5cfbdfaf1d54cf391ed9c86b72288882a2 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Fri, 15 Sep 2023 21:55:37 +0300 Subject: [PATCH] Add support for Python 3.12 --- .github/workflows/test.yml | 12 +++++++----- setup.py | 1 + tox.ini | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3b26889ac..0d9071767 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,20 +33,22 @@ jobs: runs-on: ${{ matrix.platform }} if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" strategy: + fail-fast: false matrix: - python-version: ["3.8", "3.10"] - platform: [ubuntu-latest, macos-latest, windows-latest] - exclude: # Only test on the latest supported stable Python on macOS and Windows. + python-version: ["3.8", "3.11", "3.12"] + platform: [ubuntu-latest] + include: # Only test on the latest supported stable Python on macOS and Windows. - platform: macos-latest - python-version: 3.8 + python-version: 3.11 - platform: windows-latest - python-version: 3.8 + python-version: 3.11 steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Install packages run: pip install tox coverage - name: Run Tox diff --git a/setup.py b/setup.py index 9d454e748..145506675 100755 --- a/setup.py +++ b/setup.py @@ -165,6 +165,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 :: 3", "Topic :: Text Processing :: Fonts", "Topic :: Multimedia :: Graphics", diff --git a/tox.ini b/tox.ini index ea46928cf..ae8b21677 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 3.0 -envlist = lint, py3{8,9,10,11}-cov, htmlcov +envlist = lint, py3{8,9,10,11,12}-cov, htmlcov skip_missing_interpreters=true [testenv]