Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b6811ba

Browse files
committed
CI: Ignore stubtest distutils errors on py311
1 parent 604acd4 commit b6811ba

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.spin/cmds.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,9 @@ def stubtest(*, concise: bool, build_dir: str) -> None:
561561
stubtest_dir = curdir.parent / 'tools' / 'stubtest'
562562
mypy_config = stubtest_dir / 'mypy.ini'
563563
allowlists = [stubtest_dir / 'allowlist.txt']
564-
if sys.version_info >= (3, 12):
564+
if sys.version_info < (3, 12):
565+
allowlists.append(stubtest_dir / 'allowlist_py311.txt')
566+
else:
565567
allowlists.append(stubtest_dir / 'allowlist_py312.txt')
566568

567569
cmd = [

tools/stubtest/allowlist_py311.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# python == 3.11.*
2+
3+
numpy\.distutils\..*

0 commit comments

Comments
 (0)