From a8a4b67a5ab825aff92cc8f6457bd972972ef45b Mon Sep 17 00:00:00 2001 From: Peter Andreas Entschev Date: Tue, 24 Sep 2024 08:45:30 +0200 Subject: [PATCH] Fix dependencies and release script (#1073) This should allow builds to succeed. Authors: - Peter Andreas Entschev (https://github.com/pentschev) Approvers: - Ray Douglass (https://github.com/raydouglass) URL: https://github.com/rapidsai/ucx-py/pull/1073 --- ci/release/update-version.sh | 8 ++++---- dependencies.yaml | 6 +++--- pyproject.toml | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ci/release/update-version.sh b/ci/release/update-version.sh index 7eaf0161..b6fa1a34 100755 --- a/ci/release/update-version.sh +++ b/ci/release/update-version.sh @@ -27,8 +27,8 @@ NEXT_SHORT_TAG=${NEXT_MAJOR}.${NEXT_MINOR} NEXT_RAPIDS_SHORT_TAG="$(curl -sL https://version.gpuci.io/ucx-py/${NEXT_SHORT_TAG})" # Need to distutils-normalize the versions for some use cases -NEXT_RAPIDS_SHORT_TAG_PEP440=$(python -c "from setuptools.extern import packaging; print(packaging.version.Version('${NEXT_RAPIDS_SHORT_TAG}'))") -NEXT_RAPIDS_FULL_TAG_PEP440=$(python -c "from setuptools.extern import packaging; print(packaging.version.Version('${NEXT_FULL_TAG}'))") +NEXT_RAPIDS_SHORT_TAG_PEP440=$(python -c "from packaging.version import Version; print(Version('${NEXT_RAPIDS_SHORT_TAG}'))") +NEXT_RAPIDS_FULL_TAG_PEP440=$(python -c "from packaging.version import Version; print(Version('${NEXT_FULL_TAG}'))") echo "Preparing release $CURRENT_TAG => $NEXT_FULL_TAG" @@ -42,9 +42,9 @@ DEPENDENCIES=( ) for DEP in "${DEPENDENCIES[@]}"; do for FILE in dependencies.yaml conda/environments/*.yml; do - sed_runner "/-.* ${DEP}\(-cu[[:digit:]]\{2\}\)\{0,1\}==/ s/==.*/==${NEXT_SHORT_TAG_PEP440}.*,>=0.0.0a0/g" "${FILE}" + sed_runner "/-.* ${DEP}\(-cu[[:digit:]]\{2\}\)\{0,1\}==/ s/==.*/==${NEXT_RAPIDS_SHORT_TAG_PEP440}.*,>=0.0.0a0/g" "${FILE}" done - sed_runner "/\"${DEP}==/ s/==.*\"/==${NEXT_SHORT_TAG_PEP440}.*,>=0.0.0a0\"/g" pyproject.toml + sed_runner "/\"${DEP}==/ s/==.*\"/==${NEXT_RAPIDS_SHORT_TAG_PEP440}.*,>=0.0.0a0\"/g" pyproject.toml done for FILE in .github/workflows/*.yaml; do diff --git a/dependencies.yaml b/dependencies.yaml index 333c499c..86ef4c25 100644 --- a/dependencies.yaml +++ b/dependencies.yaml @@ -225,7 +225,7 @@ dependencies: - pytest-rerunfailures - output_types: [conda] packages: - - &cudf_unsuffixed cudf==.*,>=0.0.0a0 + - &cudf_unsuffixed cudf==24.12.*,>=0.0.0a0 specific: - output_types: [requirements, pyproject] matrices: @@ -233,12 +233,12 @@ dependencies: cuda: "12.*" cuda_suffixed: "true" packages: - - cudf-cu12==.*,>=0.0.0a0 + - cudf-cu12==24.12.*,>=0.0.0a0 - matrix: cuda: "11.*" cuda_suffixed: "true" packages: - - cudf-cu11==.*,>=0.0.0a0 + - cudf-cu11==24.12.*,>=0.0.0a0 - matrix: packages: - *cudf_unsuffixed diff --git a/pyproject.toml b/pyproject.toml index c854e42b..654091b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,7 @@ classifiers = [ [project.optional-dependencies] test = [ "cloudpickle", - "cudf==.*,>=0.0.0a0", + "cudf==24.12.*,>=0.0.0a0", "cupy-cuda12x>=12.0.0", "dask", "distributed",