Skip to content

Commit

Permalink
Merge pull request #3283 from hugovk/main
Browse files Browse the repository at this point in the history
Add support for Python 3.12
  • Loading branch information
anthrotype committed Sep 29, 2023
2 parents 0e033b0 + 4470c44 commit 7aea49e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 18 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
25 changes: 13 additions & 12 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
# we use the official Brotli module on CPython and the CFFI-based
# extension 'brotlipy' on PyPy
brotli==1.0.9; platform_python_implementation != "PyPy"
brotlicffi==1.0.9.2; platform_python_implementation == "PyPy"
brotli==1.1.0; platform_python_implementation != "PyPy"
brotlicffi==1.1.0.0; platform_python_implementation == "PyPy"
unicodedata2==15.0.0; python_version <= '3.11'
scipy==1.10.0; platform_python_implementation != "PyPy"
scipy==1.10.0; platform_python_implementation != "PyPy" and python_version <= '3.8'
scipy==1.11.3; platform_python_implementation != "PyPy" and python_version >= '3.9'
munkres==1.1.4; platform_python_implementation == "PyPy"
zopfli==0.2.1
zopfli==0.2.3
fs==2.4.16
skia-pathops==0.7.3; platform_python_implementation != "PyPy"
skia-pathops==0.8.0.post1; platform_python_implementation != "PyPy"
# this is only required to run Tests/cu2qu/{ufo,cli}_test.py
ufoLib2==0.14.0
ufo2ft==2.31.0
pyobjc==9.0; sys_platform == "darwin"
freetype-py==2.3.0
uharfbuzz==0.32.0
glyphsLib==6.2.1 # this is only required to run Tests/varLib/interpolatable_test.py
lxml==4.9.2
ufoLib2==0.16.0
ufo2ft==2.33.4
pyobjc==10.0; sys_platform == "darwin"
freetype-py==2.4.0
uharfbuzz==0.37.3
glyphsLib==6.4.0 # this is only required to run Tests/varLib/interpolatable_test.py
lxml==4.9.3
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def doraise_py_compile(file, cfile=None, dfile=None, doraise=False):
"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",
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -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]
Expand Down

0 comments on commit 7aea49e

Please sign in to comment.