Skip to content

Commit a64af18

Browse files
authored
Merge pull request #1058 from googlefonts/py3.13
Support py3.13
2 parents 96b8c5e + f42023b commit a64af18

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
strategy:
3737
fail-fast: false
3838
matrix:
39-
python-version: ["3.8", "3.9", "3.10", "3.11"]
39+
python-version: ["3.9", "3.10", "3.11", "3.13"]
4040
platform: [ubuntu-latest, windows-latest]
4141
steps:
4242
- uses: actions/checkout@v4

Lib/gftools/packager/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def traverse(
423423
tree = repo.get(tree_oid)
424424
try:
425425
entry = tree[subtree_name]
426-
existing_subtree = repo.get(entry.hex)
426+
existing_subtree = repo.get(entry.id)
427427
sub_treebuilder = repo.TreeBuilder(existing_subtree)
428428
except KeyError:
429429
sub_treebuilder = repo.TreeBuilder()

pyproject.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ dependencies = [
4444
'unidecode',
4545
'opentype-sanitizer',
4646
'vttlib',
47-
'pygit2<=1.14.1',
47+
# pygit2 1.16.0 only supports 3.10+
48+
'pygit2==1.15.0; python_version < "3.13"',
49+
'pygit2==1.16.0; python_version >= "3.13"',
4850
'strictyaml',
4951
'fontmake[json]>=3.3.0',
5052
'skia-pathops',

0 commit comments

Comments
 (0)