Skip to content

Commit bc968b8

Browse files
priya-sundaram-devcclauss
authored andcommitted
ci: try Python 3.15 release candidate (DRAFT)
Point the repo's .python-version at 3.15 so every workflow that reads python-version-file runs on the 3.15 release candidate (allow-prereleases is already enabled across all workflows). Add the 3.15 trove classifier and bump scipy>=1.18.1, which is the first scipy with cp315 manylinux wheels, so uv installs it as a wheel rather than building from source. Rebuilt on current master: the earlier version of this PR edited the per-workflow `python-version: 3.14` lines, but master has since moved the interpreter to a single `.python-version` file, so the change is now a one-line switch there. Purpose is to document which dependencies/tests are not yet 3.15-ready. Must stay DRAFT until Python 3.15 GA (early October). Requested in #15081.
1 parent 2853adf commit bc968b8

4 files changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ jobs:
2020
with:
2121
python-version-file: .python-version
2222
allow-prereleases: true
23+
# keras needs hdf5 on pre-prelease Python.
24+
- run: |
25+
if [ "$(python -c 'import sys; print(sys.version_info.releaselevel)')" != "final" ]; then
26+
sudo apt-get update -qq
27+
sudo apt-get install --yes libhdf5-dev
28+
fi
2329
- run: uv sync --group=test
2430
- name: Run tests
2531
# opencv-python is gated out on 3.14t (no cp314t wheel yet), so skip the

.github/workflows/sphinx.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ jobs:
3333
with:
3434
python-version-file: .python-version
3535
allow-prereleases: true
36+
# keras needs hdf5 on pre-prelease Python.
37+
- run: |
38+
if [ "$(python -c 'import sys; print(sys.version_info.releaselevel)')" != "final" ]; then
39+
sudo apt-get update -qq
40+
sudo apt-get install --yes libhdf5-dev
41+
fi
3642
- run: uv sync --group=docs
3743
- uses: actions/configure-pages@v6
3844
- run: uv run sphinx-build -c docs . docs/_build/html

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.14t
1+
3.15t

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ requires-python = ">=3.14"
77
classifiers = [
88
"Programming Language :: Python :: 3 :: Only",
99
"Programming Language :: Python :: 3.14",
10-
"Programming Language :: Python :: 3.15",
1110
"Programming Language :: Python :: Free Threading :: 2 - Beta",
1211
]
1312
dependencies = [
@@ -23,7 +22,7 @@ dependencies = [
2322
"pandas>=2.3.3",
2423
"pillow>=11.3",
2524
"rich>=13.9.4",
26-
"scikit-learn>=1.9",
25+
"scikit-learn>=1.9.1",
2726
"scipy>=1.18.1",
2827
"statsmodels>=0.14.4",
2928
"sympy>=1.13.3",

0 commit comments

Comments
 (0)