Skip to content

Commit c06b5dc

Browse files
committed
hack
1 parent d0f9b6e commit c06b5dc

4 files changed

Lines changed: 16 additions & 2 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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ dependencies = [
2323
"pandas>=2.3.3",
2424
"pillow>=11.3",
2525
"rich>=13.9.4",
26-
"scikit-learn>=1.9",
26+
# https://github.com/scikit-learn/scikit-learn/issues/34898
27+
"scikit-learn @ https://github.com/scikit-learn/scikit-learn.git ; python_version>='3.15'",
28+
"scikit-learn>=1.9; python_version<'3.15'",
2729
"scipy>=1.18.1",
2830
"statsmodels>=0.14.4",
2931
"sympy>=1.13.3",

0 commit comments

Comments
 (0)