forked from mne-tools/mne-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT: Restore 2 jobs on Windows (mne-tools#12520)
- Loading branch information
Showing
9 changed files
with
138 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
python-version: '3.12' | ||
- uses: pre-commit/[email protected] | ||
|
||
bandit: | ||
|
@@ -54,17 +54,16 @@ jobs: | |
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
python: '3.11' | ||
python: '3.12' | ||
kind: pip-pre | ||
- os: ubuntu-latest | ||
python: '3.12' | ||
kind: conda | ||
# 3.12 needs https://github.com/conda-forge/dipy-feedstock/pull/50 | ||
- os: macos-14 # arm64 | ||
python: '3.11' | ||
python: '3.12' | ||
kind: mamba | ||
- os: macos-latest # intel | ||
python: '3.11' | ||
python: '3.12' | ||
kind: mamba | ||
- os: windows-latest | ||
python: '3.10' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
#!/bin/bash | ||
|
||
set -eo pipefail | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
PLATFORM=$(python -c 'import platform; print(platform.system())') | ||
|
||
echo "Installing pip-pre dependencies on ${PLATFORM}" | ||
STD_ARGS="--progress-bar off --upgrade --pre" | ||
|
||
# Dependencies of scientific-python-nightly-wheels are installed here so that | ||
# we can use strict --index-url (instead of --extra-index-url) below | ||
python -m pip install $STD_ARGS pip setuptools packaging \ | ||
threadpoolctl cycler fonttools kiwisolver pyparsing pillow python-dateutil \ | ||
patsy pytz tzdata nibabel tqdm trx-python joblib | ||
echo "PyQt6" | ||
# Now broken in latest release and in the pre release: | ||
# pip install $STD_ARGS --only-binary ":all:" --default-timeout=60 --extra-index-url https://www.riverbankcomputing.com/pypi/simple "PyQt6!=6.6.1,!=6.6.2" "PyQt6-Qt6!=6.6.1,!=6.6.2" | ||
python -m pip install $STD_ARGS --only-binary ":all:" --default-timeout=60 "PyQt6!=6.6.1,!=6.6.2" "PyQt6-Qt6!=6.6.1,!=6.6.2" | ||
echo "NumPy/SciPy/pandas etc." | ||
python -m pip uninstall -yq numpy | ||
# No pyarrow yet https://github.com/apache/arrow/issues/40216 | ||
# No h5py (and thus dipy) yet until they improve/refactor thier wheel building infrastructure for Windows | ||
OTHERS="" | ||
if [[ "${PLATFORM}" == "Linux" ]]; then | ||
OTHERS="h5py dipy" | ||
fi | ||
python -m pip install $STD_ARGS --only-binary ":all:" --default-timeout=60 \ | ||
--index-url "https://pypi.anaconda.org/scientific-python-nightly-wheels/simple" \ | ||
"numpy>=2.1.0.dev0" "scipy>=1.14.0.dev0" "scikit-learn>=1.5.dev0" \ | ||
matplotlib statsmodels pandas \ | ||
$OTHERS | ||
|
||
# No python-picard (needs numexpr) until they update to NumPy 2.0 compat | ||
# No Numba because it forces an old NumPy version | ||
|
||
echo "OpenMEEG" | ||
python -m pip install $STD_ARGS --only-binary ":all:" --extra-index-url "https://test.pypi.org/simple" "openmeeg>=2.6.0.dev4" | ||
|
||
echo "nilearn" | ||
python -m pip install $STD_ARGS git+https://github.com/nilearn/nilearn | ||
|
||
echo "VTK" | ||
python -m pip install $STD_ARGS --only-binary ":all:" --extra-index-url "https://wheels.vtk.org" vtk | ||
python -c "import vtk" | ||
|
||
echo "PyVista" | ||
python -m pip install $STD_ARGS git+https://github.com/pyvista/pyvista | ||
|
||
echo "pyvistaqt" | ||
pip install $STD_ARGS git+https://github.com/pyvista/pyvistaqt | ||
|
||
echo "imageio-ffmpeg, xlrd, mffpy" | ||
pip install $STD_ARGS imageio-ffmpeg xlrd mffpy traitlets pybv eeglabio | ||
|
||
echo "mne-qt-browser" | ||
pip install $STD_ARGS git+https://github.com/mne-tools/mne-qt-browser | ||
|
||
echo "nibabel" | ||
pip install $STD_ARGS git+https://github.com/nipy/nibabel | ||
|
||
echo "joblib" | ||
pip install $STD_ARGS git+https://github.com/joblib/joblib | ||
|
||
echo "edfio" | ||
pip install $STD_ARGS git+https://github.com/the-siesta-group/edfio | ||
|
||
if [[ "${PLATFORM}" == "Linux" ]]; then | ||
echo "h5io" | ||
pip install $STD_ARGS git+https://github.com/h5io/h5io | ||
|
||
echo "pysnirf2" | ||
pip install $STD_ARGS git+https://github.com/BUNPC/pysnirf2 | ||
fi | ||
|
||
# Make sure we're on a NumPy 2.0 variant | ||
echo "Checking NumPy version" | ||
python -c "import numpy as np; assert np.__version__[0] == '2', np.__version__" | ||
|
||
# And that Qt works | ||
echo "Checking Qt" | ||
${SCRIPT_DIR}/check_qt_import.sh PyQt6 |