Skip to content

Commit 287bde7

Browse files
authored
Merge pull request #601 from numpy/fix-ci-py314
2 parents 6dbcdba + 3dbb9c6 commit 287bde7

File tree

10 files changed

+148
-16
lines changed

10 files changed

+148
-16
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,21 @@ jobs:
5555
- name: format-ignores
5656
run: uv run tool/format_ignores.py --check
5757

58+
# NOTE: Static typing only differs between `python<3.12` and otherwise,
59+
# so there's no need to run the type-checkers on all Python versions.
60+
5861
basedpyright:
5962
runs-on: ubuntu-latest
6063
timeout-minutes: 5
6164
strategy:
6265
fail-fast: false
6366
matrix:
64-
py: ["3.11", "3.12", "3.13", "3.14"]
67+
py: ["3.11", "3.13"]
6568
steps:
6669
- uses: actions/[email protected]
6770

6871
- uses: astral-sh/[email protected]
6972
with:
70-
enable-cache: true
7173
python-version: ${{ matrix.py }}
7274

7375
- name: basedpyright
@@ -79,7 +81,7 @@ jobs:
7981
strategy:
8082
fail-fast: false
8183
matrix:
82-
py: ["3.11", "3.12", "3.13", "3.14"]
84+
py: ["3.11", "3.13"]
8385
steps:
8486
- uses: actions/[email protected]
8587

@@ -90,6 +92,8 @@ jobs:
9092
- name: mypy
9193
run: uv run --no-editable mypy --no-incremental --cache-dir=/dev/null .
9294

95+
# NOTE: Stubtest does runtime inspections, so we consider all Python versions.
96+
9397
stubtest:
9498
runs-on: ${{ matrix.os }}
9599
timeout-minutes: 5

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ typecheck = [
7575
]
7676
docs = [
7777
"mkdocs-material>=9.6.16",
78+
"pydantic>=2.12.0a1; python_version >= '3.14'", # needed for mkdocs-awesome-nav
7879
"mkdocs-awesome-nav>=3.1.2",
7980
"markdown-callouts>=0.4.0",
8081
"mkdocs-include-markdown-plugin>=7.1.6",

tool/allowlists/lt-py312.txt renamed to tool/allowlists/py311.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# python < 3.12
1+
# python 3.11.*
22

33
# distutils is deprecated and does not exist on python>=3.12
44
numpy\.distutils\.command\.\w+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# python >= 3.12
1+
# python 3.12.*
22

33
numpy\.distutils
44
numpy\.f2py\._backends\._distutils

tool/allowlists/py313.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# python 3.13.*
2+
3+
numpy\.distutils
4+
numpy\.f2py\._backends\._distutils

tool/allowlists/py314.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# python 3.14.*
2+
3+
numpy\.distutils
4+
numpy\.f2py\._backends\._distutils
5+
numpy\._core\._type_aliases\.__conditional_annotations__

tool/stubtest.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@
4444
__root_site = None
4545
ROOT_SITE_DIR = __root_site
4646

47-
ALLOWLISTS = [
48-
"common.txt",
49-
("ge" if sys.version_info >= (3, 12) else "lt") + "-py312.txt",
50-
]
47+
ALLOWLISTS = ["common.txt", f"py3{sys.version_info.minor}.txt"]
5148

5249

5350
def __check_simd() -> None:

tool/stubtest.py.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tool/ufunc.py.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

uv.lock

Lines changed: 124 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)