Add support for Python 3.12

This commit is contained in:
Hugo van Kemenade 2023-09-15 21:55:37 +03:00
parent 0e033b0e5c
commit eda6fa5cfb
3 changed files with 9 additions and 6 deletions

View File

@ -33,20 +33,22 @@ jobs:
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
strategy: strategy:
fail-fast: false
matrix: matrix:
python-version: ["3.8", "3.10"] python-version: ["3.8", "3.11", "3.12"]
platform: [ubuntu-latest, macos-latest, windows-latest] platform: [ubuntu-latest]
exclude: # Only test on the latest supported stable Python on macOS and Windows. include: # Only test on the latest supported stable Python on macOS and Windows.
- platform: macos-latest - platform: macos-latest
python-version: 3.8 python-version: 3.11
- platform: windows-latest - platform: windows-latest
python-version: 3.8 python-version: 3.11
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install packages - name: Install packages
run: pip install tox coverage run: pip install tox coverage
- name: Run Tox - name: Run Tox

View File

@ -165,6 +165,7 @@ classifiers = {
"Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
"Topic :: Text Processing :: Fonts", "Topic :: Text Processing :: Fonts",
"Topic :: Multimedia :: Graphics", "Topic :: Multimedia :: Graphics",

View File

@ -1,6 +1,6 @@
[tox] [tox]
minversion = 3.0 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 skip_missing_interpreters=true
[testenv] [testenv]