Skip to content

Commit 5bb1027

Browse files
ci: prep for 3.15t — install libhdf5-dev on pre-release Python; pin scikit-learn>=1.9.1 (#15283)
Land the non-3.15t-gated pieces of #15105 ahead of GA: - build.yml/sphinx.yml: install libhdf5-dev only when running a pre-release interpreter (keras needs hdf5 there); guarded so it is a no-op on final builds. - pyproject.toml: pin scikit-learn>=1.9.1, the first release with cp315t free-threaded wheels, so uv resolves a wheel instead of building from source. The .python-version bump to 3.15t stays in #15105 as a draft until 3.15 GA.
1 parent 2853adf commit 5bb1027

3 files changed

Lines changed: 13 additions & 1 deletion

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-release 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-release 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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies = [
2323
"pandas>=2.3.3",
2424
"pillow>=11.3",
2525
"rich>=13.9.4",
26-
"scikit-learn>=1.9",
26+
"scikit-learn>=1.9.1",
2727
"scipy>=1.18.1",
2828
"statsmodels>=0.14.4",
2929
"sympy>=1.13.3",

0 commit comments

Comments
 (0)