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 ...@@ -119,15 +119,21 @@ if [[ $TASK == "check-docs" ]] || [[ $TASK == "check-links" ]]; then
exit 0 exit 0
fi 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 # including python=version[build=*cpython] to ensure that conda doesn't fall back to pypy
conda create -q -y -n $CONDA_ENV \ conda create -q -y -n $CONDA_ENV \
${CONSTRAINED_DEPENDENCIES} \
cloudpickle \ cloudpickle \
dask-core \
distributed \
joblib \ joblib \
matplotlib \ matplotlib \
numpy \ numpy \
pandas \
psutil \ psutil \
pytest \ pytest \
${CONDA_PYTHON_REQUIREMENT} \ ${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