From 611fea8aab929d7493aac13a19835250ba7269c8 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Thu, 26 Feb 2026 12:09:00 -0600 Subject: [PATCH 1/3] rapids-generate-pip-constraints: stop special-casing 'latest' --- .pre-commit-config.yaml | 2 +- tools/rapids-generate-pip-constraints | 16 +++++----------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 942533c..c8e2588 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ ci: autoupdate_schedule: 'monthly' repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.0 + rev: v0.15.3 hooks: - id: ruff-format args: ["--config", "pyproject.toml"] diff --git a/tools/rapids-generate-pip-constraints b/tools/rapids-generate-pip-constraints index 255fb4c..adde34b 100755 --- a/tools/rapids-generate-pip-constraints +++ b/tools/rapids-generate-pip-constraints @@ -23,14 +23,8 @@ export RAPIDS_SCRIPT_NAME="rapids-generate-pip-constraints" file_key="${1}" out_file="${2}" -# 'latest' should be a no-op and not constrain dependencies at all -# (pip will prefer the latest versions of dependencies by default) -if [[ "${RAPIDS_DEPENDENCIES}" == "latest" ]]; then - echo "" > "${out_file}" -else - rapids-dependency-file-generator \ - --output requirements \ - --file-key "${file_key}" \ - --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION};dependencies=${RAPIDS_DEPENDENCIES}" \ - | tee "${out_file}" -fi +rapids-dependency-file-generator \ + --output requirements \ + --file-key "${file_key}" \ + --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION};dependencies=${RAPIDS_DEPENDENCIES}" \ +| tee "${out_file}" From 25bc5df523f42318d6d5ddb4e77c3f9712b5b79f Mon Sep 17 00:00:00 2001 From: James Lamb Date: Thu, 26 Feb 2026 14:21:45 -0600 Subject: [PATCH 2/3] append --- tools/rapids-generate-pip-constraints | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/rapids-generate-pip-constraints b/tools/rapids-generate-pip-constraints index adde34b..8da258c 100755 --- a/tools/rapids-generate-pip-constraints +++ b/tools/rapids-generate-pip-constraints @@ -9,7 +9,7 @@ # Positional arguments: # # 1) file key to be passed to `rapids-dependency-file-generator --file-key` -# 2) filepath to write the constraint data to +# 2) filepath to append the constraint data to (creates it if it doesn't exist) # # [usage] # @@ -27,4 +27,4 @@ rapids-dependency-file-generator \ --output requirements \ --file-key "${file_key}" \ --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION};dependencies=${RAPIDS_DEPENDENCIES}" \ -| tee "${out_file}" +| tee -a "${out_file}" From a8d0fcbecaa0198267e4596e0b8d33b923461425 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Tue, 3 Mar 2026 12:57:32 -0600 Subject: [PATCH 3/3] always pass use_cuda_wheels=true --- tools/rapids-generate-pip-constraints | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/rapids-generate-pip-constraints b/tools/rapids-generate-pip-constraints index 8da258c..4062ec6 100755 --- a/tools/rapids-generate-pip-constraints +++ b/tools/rapids-generate-pip-constraints @@ -26,5 +26,5 @@ out_file="${2}" rapids-dependency-file-generator \ --output requirements \ --file-key "${file_key}" \ - --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION};dependencies=${RAPIDS_DEPENDENCIES}" \ + --matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION};dependencies=${RAPIDS_DEPENDENCIES};use_cuda_wheels=true" \ | tee -a "${out_file}"