diff --git a/ci/test_wheel.sh b/ci/test_wheel.sh index 75a07c5afd..483fcd3e23 100755 --- a/ci/test_wheel.sh +++ b/ci/test_wheel.sh @@ -4,6 +4,13 @@ set -euo pipefail +# TODO(jameslamb): revert before merging +git clone --branch generate-pip-constraints \ + https://github.com/rapidsai/gha-tools.git \ + /tmp/gha-tools + +export PATH="/tmp/gha-tools/tools:${PATH}" + source rapids-init-pip RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen "${RAPIDS_CUDA_VERSION}")" @@ -14,13 +21,12 @@ mkdir -p "${RAPIDS_TESTS_DIR}" # generate constraints, the constraints will limit the version of the # dependencies that can be installed later on when installing the wheel -rapids-generate-pip-constraints test_python ./constraints.txt +rapids-generate-pip-constraints test_python "${PIP_CONSTRAINT}" # Install just minimal dependencies first rapids-pip-retry install \ "${LIBCUML_WHEELHOUSE}"/libcuml*.whl \ "${CUML_WHEELHOUSE}"/cuml*.whl \ - --constraint ./constraints.txt \ --constraint "${PIP_CONSTRAINT}" # Try to import cuml with just a minimal install" @@ -29,14 +35,13 @@ python -c "import cuml" # notes: # -# * echo to expand wildcard before adding `[test,experimental]` requires for pip -# * need to provide --constraint="${PIP_CONSTRAINT}" because that environment variable is -# ignored if any other --constraint are passed via the CLI +# * echo to expand wildcard before adding `[test]` requires for pip +# * just providing --constraint="${PIP_CONSTRAINT}" to be explicit, and because +# that environment variable is ignored if any other --constraint are passed via the CLI # rapids-pip-retry install \ "${LIBCUML_WHEELHOUSE}"/libcuml*.whl \ "$(echo "${CUML_WHEELHOUSE}"/cuml*.whl)[test]" \ - --constraint ./constraints.txt \ --constraint "${PIP_CONSTRAINT}" EXITCODE=0 diff --git a/ci/test_wheel_dask.sh b/ci/test_wheel_dask.sh index bbdded3d08..4bedb45724 100755 --- a/ci/test_wheel_dask.sh +++ b/ci/test_wheel_dask.sh @@ -4,6 +4,13 @@ set -euo pipefail +# TODO(jameslamb): revert before merging +git clone --branch generate-pip-constraints \ + https://github.com/rapidsai/gha-tools.git \ + /tmp/gha-tools + +export PATH="/tmp/gha-tools/tools:${PATH}" + source rapids-init-pip RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen "${RAPIDS_CUDA_VERSION}")" @@ -14,18 +21,17 @@ mkdir -p "${RAPIDS_TESTS_DIR}" # generate constraints, the constraints will limit the version of the # dependencies that can be installed later on when installing the wheel -rapids-generate-pip-constraints test_python ./constraints.txt +rapids-generate-pip-constraints test_python "${PIP_CONSTRAINT}" # notes: # -# * echo to expand wildcard before adding `[...]` extras for pip -# * need to provide --constraint="${PIP_CONSTRAINT}" because that environment variable is -# ignored if any other --constraint are passed via the CLI +# * echo to expand wildcard before adding `[...]` requires for pip +# * just providing --constraint="${PIP_CONSTRAINT}" to be explicit, and because +# that environment variable is ignored if any other --constraint are passed via the CLI # rapids-pip-retry install \ "${LIBCUML_WHEELHOUSE}"/libcuml*.whl \ "$(echo "${CUML_WHEELHOUSE}"/cuml*.whl)[dask,test,test-dask]" \ - --constraint ./constraints.txt \ --constraint "${PIP_CONSTRAINT}" EXITCODE=0