[CI] Run stubtest with Python 3.13 (#13638)

This commit is contained in:
Sebastian Rittau
2025-03-18 13:36:15 +01:00
committed by GitHub
parent 882e8fd2b3
commit 414e6d2150
10 changed files with 32 additions and 3 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
cache: pip
cache-dependency-path: |
requirements-tests.txt
+1 -1
View File
@@ -41,7 +41,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
cache: pip
cache-dependency-path: |
requirements-tests.txt
+4
View File
@@ -1,2 +1,6 @@
version = "0.10.*"
upstream_repository = "https://github.com/natasha/corus"
[tool.stubtest]
# As of version 0.10.0, corus doesn't support Python 3.13.
skip = true
+2
View File
@@ -3,3 +3,5 @@ upstream_repository = "https://github.com/xolox/python-humanfriendly"
[tool.stubtest]
stubtest_requirements = ["docutils", "mock"]
# Package is unsupported and doesn't support Python 3.13 as of 2025-03-17.
skip = true
@@ -90,3 +90,8 @@ passlib.utils.compat.*
# Tests are not included:
passlib.tests.*
# This is only available when the crypt module is available. This module
# was dropped from the standard library of Python 3.13, but is still available
# in some environments.
(passlib.hosts.host_context)?
+2
View File
@@ -5,3 +5,5 @@ obsolete_since = "1.16.0" # Released on 2024-10-11
[tool.stubtest]
platforms = ["darwin", "linux", "win32"]
# Does not build on any platform on Python 3.13 as of 2025-03-17.
skip = true
+3
View File
@@ -10,3 +10,6 @@ partial_stub = true
ignore_missing_stub = true
# TODO: Support/update to keras 3.7
stubtest_requirements = ["keras==3.6.*"]
# tensorflow 2.19 doesn't support Python 3.13:
# https://github.com/tensorflow/tensorflow/issues/78774
skip = true
+4
View File
@@ -6,3 +6,7 @@ tqdm._tqdm_notebook.__all__
# Cannot import in stubtest
tqdm.__main__
# TODO: Reenable when tensorflow supports Python 3.13 and is added to the
# stubtest dependencies in METADATA.toml.
tqdm.keras
+4 -1
View File
@@ -4,4 +4,7 @@ requires = ["types-requests"]
[tool.stubtest]
extras = ["slack", "telegram"]
stubtest_requirements = ["dask", "pandas", "rich", "tensorflow"]
# Add `"tensorflow"` to this list when there's a tensorflow release supporting
# Python 3.13: https://github.com/tensorflow/tensorflow/issues/78774.
# Also remove tqdm.keras from @tests/stubtest_allowlist.txt.
stubtest_requirements = ["dask", "pandas", "rich"]
@@ -1,3 +1,9 @@
version = "1.10.*"
upstream_repository = "https://github.com/grantjenks/py-tree-sitter-languages"
requires = ["tree-sitter>=0.20.3"]
[tool.stubtest]
# This package is unmaintained and doesn't support Python 3.13.
# See https://github.com/grantjenks/py-tree-sitter-languages/issues/75 and
# https://github.com/grantjenks/py-tree-sitter-languages/blob/main/README.rst#status
skip = true