Skip to content

Commit 414e6d2

Browse files
authored
[CI] Run stubtest with Python 3.13 (#13638)
1 parent 882e8fd commit 414e6d2

File tree

10 files changed

+32
-3
lines changed

10 files changed

+32
-3
lines changed

.github/workflows/daily.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- uses: actions/checkout@v4
6767
- uses: actions/setup-python@v5
6868
with:
69-
python-version: "3.12"
69+
python-version: "3.13"
7070
cache: pip
7171
cache-dependency-path: |
7272
requirements-tests.txt

.github/workflows/stubtest_third_party.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
fetch-depth: 0
4242
- uses: actions/setup-python@v5
4343
with:
44-
python-version: "3.12"
44+
python-version: "3.13"
4545
cache: pip
4646
cache-dependency-path: |
4747
requirements-tests.txt

stubs/corus/METADATA.toml

+4
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
version = "0.10.*"
22
upstream_repository = "https://github.com/natasha/corus"
3+
4+
[tool.stubtest]
5+
# As of version 0.10.0, corus doesn't support Python 3.13.
6+
skip = true

stubs/humanfriendly/METADATA.toml

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ upstream_repository = "https://github.com/xolox/python-humanfriendly"
33

44
[tool.stubtest]
55
stubtest_requirements = ["docutils", "mock"]
6+
# Package is unsupported and doesn't support Python 3.13 as of 2025-03-17.
7+
skip = true

stubs/passlib/@tests/stubtest_allowlist.txt

+5
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,8 @@ passlib.utils.compat.*
9090

9191
# Tests are not included:
9292
passlib.tests.*
93+
94+
# This is only available when the crypt module is available. This module
95+
# was dropped from the standard library of Python 3.13, but is still available
96+
# in some environments.
97+
(passlib.hosts.host_context)?

stubs/pygit2/METADATA.toml

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ obsolete_since = "1.16.0" # Released on 2024-10-11
55

66
[tool.stubtest]
77
platforms = ["darwin", "linux", "win32"]
8+
# Does not build on any platform on Python 3.13 as of 2025-03-17.
9+
skip = true

stubs/tensorflow/METADATA.toml

+3
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ partial_stub = true
1010
ignore_missing_stub = true
1111
# TODO: Support/update to keras 3.7
1212
stubtest_requirements = ["keras==3.6.*"]
13+
# tensorflow 2.19 doesn't support Python 3.13:
14+
# https://github.com/tensorflow/tensorflow/issues/78774
15+
skip = true

stubs/tqdm/@tests/stubtest_allowlist.txt

+4
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ tqdm._tqdm_notebook.__all__
66

77
# Cannot import in stubtest
88
tqdm.__main__
9+
10+
# TODO: Reenable when tensorflow supports Python 3.13 and is added to the
11+
# stubtest dependencies in METADATA.toml.
12+
tqdm.keras

stubs/tqdm/METADATA.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ requires = ["types-requests"]
44

55
[tool.stubtest]
66
extras = ["slack", "telegram"]
7-
stubtest_requirements = ["dask", "pandas", "rich", "tensorflow"]
7+
# Add `"tensorflow"` to this list when there's a tensorflow release supporting
8+
# Python 3.13: https://github.com/tensorflow/tensorflow/issues/78774.
9+
# Also remove tqdm.keras from @tests/stubtest_allowlist.txt.
10+
stubtest_requirements = ["dask", "pandas", "rich"]
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
version = "1.10.*"
22
upstream_repository = "https://github.com/grantjenks/py-tree-sitter-languages"
33
requires = ["tree-sitter>=0.20.3"]
4+
5+
[tool.stubtest]
6+
# This package is unmaintained and doesn't support Python 3.13.
7+
# See https://github.com/grantjenks/py-tree-sitter-languages/issues/75 and
8+
# https://github.com/grantjenks/py-tree-sitter-languages/blob/main/README.rst#status
9+
skip = true

0 commit comments

Comments
 (0)