Skip to content

Commit 66658db

Browse files
committed
Merge main
Signed-off-by: Adam Li <adam2392@gmail.com>
2 parents a569233 + 8f620fd commit 66658db

File tree

162 files changed

+3486
-1396
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+3486
-1396
lines changed

.github/workflows/cuda-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v4
1717

1818
- name: Build wheels
19-
uses: pypa/cibuildwheel@v2.21.1
19+
uses: pypa/cibuildwheel@v2.21.3
2020
env:
2121
CIBW_BUILD: cp312-manylinux_x86_64
2222
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014

.github/workflows/publish_pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ jobs:
3939
run: |
4040
python build_tools/github/check_wheels.py
4141
- name: Publish package to TestPyPI
42-
uses: pypa/gh-action-pypi-publish@897895f1e160c830e369f9779632ebc134688e1b # v1.10.2
42+
uses: pypa/gh-action-pypi-publish@fb13cb306901256ace3dab689990e13a5550ffaa # v1.11.0
4343
with:
4444
repository-url: https://test.pypi.org/legacy/
4545
print-hash: true
4646
if: ${{ github.event.inputs.pypi_repo == 'testpypi' }}
4747
- name: Publish package to PyPI
48-
uses: pypa/gh-action-pypi-publish@897895f1e160c830e369f9779632ebc134688e1b # v1.10.2
48+
uses: pypa/gh-action-pypi-publish@fb13cb306901256ace3dab689990e13a5550ffaa # v1.11.0
4949
if: ${{ github.event.inputs.pypi_repo == 'pypi' }}
5050
with:
5151
print-hash: true

.github/workflows/wheels.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ jobs:
7373
- os: windows-latest
7474
python: 313
7575
platform_id: win_amd64
76-
# TODO: remove next line when Python 3.13 is released
77-
prerelease_pythons: True
7876

7977
# Linux 64 bit manylinux2014
8078
- os: ubuntu-latest

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ doc/developers/maintainer.rst
2525
doc/index.rst
2626
doc/min_dependency_table.rst
2727
doc/min_dependency_substitutions.rst
28+
# release notes generated by towncrier
29+
doc/whats_new/notes-towncrier.rst
30+
2831
*.pdf
2932
pip-log.txt
3033
scikit_learn.egg-info/

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ jobs:
253253
- template: build_tools/azure/posix.yml
254254
parameters:
255255
name: macOS
256-
vmImage: macOS-12
256+
vmImage: macOS-13
257257
dependsOn: [linting, git_commit, Ubuntu_Jammy_Jellyfish]
258258
# Runs when dependencies succeeded or skipped
259259
condition: |

build_tools/azure/debian_32bit_lock.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
#
55
# pip-compile --output-file=build_tools/azure/debian_32bit_lock.txt build_tools/azure/debian_32bit_requirements.txt
66
#
7-
coverage[toml]==7.6.3
7+
coverage[toml]==7.6.4
88
# via pytest-cov
99
cython==3.0.11
1010
# via -r build_tools/azure/debian_32bit_requirements.txt
1111
iniconfig==2.0.0
1212
# via pytest
1313
joblib==1.4.2
1414
# via -r build_tools/azure/debian_32bit_requirements.txt
15-
meson==1.5.2
15+
meson==1.6.0
1616
# via meson-python
17-
meson-python==0.16.0
17+
meson-python==0.17.1
1818
# via -r build_tools/azure/debian_32bit_requirements.txt
1919
ninja==1.11.1.1
2020
# via -r build_tools/azure/debian_32bit_requirements.txt
@@ -25,13 +25,13 @@ packaging==24.1
2525
# pytest
2626
pluggy==1.5.0
2727
# via pytest
28-
pyproject-metadata==0.8.1
28+
pyproject-metadata==0.9.0
2929
# via meson-python
3030
pytest==8.3.3
3131
# via
3232
# -r build_tools/azure/debian_32bit_requirements.txt
3333
# pytest-cov
34-
pytest-cov==5.0.0
34+
pytest-cov==6.0.0
3535
# via -r build_tools/azure/debian_32bit_requirements.txt
3636
threadpoolctl==3.5.0
3737
# via -r build_tools/azure/debian_32bit_requirements.txt

build_tools/azure/install.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,11 @@ scikit_learn_install() {
120120
# brings in openmp so that you end up having the omp.h include inside
121121
# the conda environment.
122122
find $CONDA_PREFIX -name omp.h -delete -print
123-
# meson 1.5 detects OpenMP installed with brew and OpenMP is installed
124-
# with brew in CI runner
125-
brew uninstall --ignore-dependencies libomp
123+
# meson >= 1.5 detects OpenMP installed with brew and OpenMP may be installed
124+
# with brew in CI runner. OpenMP was installed with brew in macOS-12 CI
125+
# runners which doesn't seem to be the case in macOS-13 runners anymore,
126+
# but we keep the next line just to be safe ...
127+
brew uninstall --ignore-dependencies --force libomp
126128
fi
127129

128130
if [[ "$UNAMESTR" == "Linux" ]]; then
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
set -e
4+
set -x
5+
6+
if [[ -z "${CONDA}" ]]; then
7+
# In some runners (macOS-13 and macOS-14 in October 2024) conda is not
8+
# installed so we install it ourselves
9+
MINIFORGE_URL="https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
10+
wget ${MINIFORGE_URL} -O miniforge.sh
11+
bash miniforge.sh -b -u -p $HOME/miniforge3
12+
CONDA="$HOME/miniforge3"
13+
else
14+
# In most runners (in October 2024) conda is installed,
15+
# but in a system folder and we want it user writable
16+
sudo chown -R $USER $CONDA
17+
fi
18+
19+
# Add conda to the PATH so that it can be used in further Azure CI steps.
20+
# Need set +x for ##vso Azure magic otherwise it may add a quote in the PATH.
21+
# For more details, see https://github.com/microsoft/azure-pipelines-tasks/issues/10331
22+
set +x
23+
echo "##vso[task.prependpath]$CONDA/bin"
24+
set -x

build_tools/azure/posix.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,8 @@ jobs:
3636
- bash: $(pyTools.pythonLocation)/bin/python build_tools/azure/get_selected_tests.py
3737
displayName: Check selected tests for all random seeds
3838
condition: eq(variables['Build.Reason'], 'PullRequest')
39-
- bash: echo "##vso[task.prependpath]$CONDA/bin"
40-
displayName: Add conda to PATH
41-
condition: startsWith(variables['DISTRIB'], 'conda')
42-
- bash: sudo chown -R $USER $CONDA
43-
displayName: Take ownership of conda installation
39+
- bash: build_tools/azure/install_setup_conda.sh
40+
displayName: Install conda if necessary and set it up
4441
condition: startsWith(variables['DISTRIB'], 'conda')
4542
- task: Cache@2
4643
inputs:

0 commit comments

Comments
 (0)