Unverified Commit fe838d88 authored by shiyu1994's avatar shiyu1994 Committed by GitHub
Browse files

[ci] enforce dask version to be >=2023.5.0 in some builds (fixes #6030) (#6032)



* enforce dask version to be >=2023.5.0

* fix Python 3.7 builds

---------
Co-authored-by: default avatarJames Lamb <jaylamb20@gmail.com>
parent 20975bad
......@@ -119,15 +119,21 @@ if [[ $TASK == "check-docs" ]] || [[ $TASK == "check-links" ]]; then
exit 0
fi
# older versions of Dask are incompatible with pandas>=2.0, but not all conda packages' metadata accurately reflects that
#
# ref: https://github.com/microsoft/LightGBM/issues/6030
CONSTRAINED_DEPENDENCIES="'dask-core>=2023.5.0' 'distributed>=2023.5.0' 'pandas>=2.0'"
if [[ $PYTHON_VERSION == "3.7" ]]; then
CONSTRAINED_DEPENDENCIES="'dask-core' 'distributed 'pandas<2.0'"
fi
# including python=version[build=*cpython] to ensure that conda doesn't fall back to pypy
conda create -q -y -n $CONDA_ENV \
${CONSTRAINED_DEPENDENCIES} \
cloudpickle \
dask-core \
distributed \
joblib \
matplotlib \
numpy \
pandas \
psutil \
pytest \
${CONDA_PYTHON_REQUIREMENT} \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment