Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 34dc2a3

Browse files
authored
Fix update version (#1187)
Updates `update-version.sh` to follow the pattern from rapidsai/cugraph#3638 Required for `23.06` because `python/cuspatial/pyproject.py` does not exist thus breaking the script. This means any hotfixes to this version will have issues during release. Also updates a version in `cpp/doxygen/Doxyfile` which was outdated. Skipped CI since this script is not tested by CI. Authors: - Ray Douglass (https://github.com/raydouglass) Approvers: - AJ Schmidt (https://github.com/ajschmidt8)
1 parent 73d3c3e commit 34dc2a3

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

ci/release/update-version.sh

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -56,23 +56,26 @@ sed_runner "s/VERSION_NUMBER=\".*/VERSION_NUMBER=\"${NEXT_SHORT_TAG}\"/g" ci/bui
5656

5757
# Need to distutils-normalize the original version
5858
NEXT_SHORT_TAG_PEP440=$(python -c "from setuptools.extern import packaging; print(packaging.version.Version('${NEXT_SHORT_TAG}'))")
59-
60-
# bump rapids libraries
61-
for FILE in dependencies.yaml conda/environments/*.yaml; do
62-
sed_runner "/- &cudf_conda cudf==/ s/==.*/==${NEXT_SHORT_TAG_PEP440}\.*/g" ${FILE}
63-
sed_runner "/- cudf==/ s/==.*/==${NEXT_SHORT_TAG_PEP440}\.*/g" ${FILE}
64-
sed_runner "/- cuml==/ s/==.*/==${NEXT_SHORT_TAG_PEP440}\.*/g" ${FILE}
65-
sed_runner "/- rmm==/ s/==.*/==${NEXT_SHORT_TAG_PEP440}\.*/g" ${FILE}
66-
sed_runner "/- libcudf==/ s/==.*/==${NEXT_SHORT_TAG_PEP440}\.*/g" ${FILE}
67-
sed_runner "/- librmm==/ s/==.*/==${NEXT_SHORT_TAG_PEP440}\.*/g" ${FILE}
59+
NEXT_FULL_TAG_PEP440=$(python -c "from setuptools.extern import packaging; print(packaging.version.Version('${NEXT_FULL_TAG}'))")
60+
61+
DEPENDENCIES=(
62+
cudf
63+
cuml
64+
libcudf
65+
librmm
66+
rmm
67+
)
68+
69+
for DEP in "${DEPENDENCIES[@]}"; do
70+
for FILE in dependencies.yaml conda/environments/*.yaml; do
71+
sed_runner "/-.* ${DEP}==/ s/==.*/==${NEXT_SHORT_TAG_PEP440}.*/g" ${FILE}
72+
done
73+
sed_runner "s/${DEP}==.*\",/${DEP}==${NEXT_SHORT_TAG_PEP440}.*\",/g" python/cuspatial/pyproject.toml
6874
done
6975

76+
# Version in pyproject.toml
77+
sed_runner "s/^version = .*/version = \"${NEXT_FULL_TAG_PEP440}\"/g" python/cuspatial/pyproject.toml
78+
7079
# Dependency versions in dependencies.yaml
7180
sed_runner "/-cu[0-9]\{2\}==/ s/==.*/==${NEXT_SHORT_TAG_PEP440}.*/g" dependencies.yaml
7281

73-
# Python pyproject.toml updates
74-
sed_runner "s/^version = .*/version = \"${NEXT_FULL_TAG}\"/g" python/cuspatial/pyproject.toml
75-
76-
# Dependency versions in pyproject.toml
77-
sed_runner "s/cudf==.*\",/cudf==${NEXT_SHORT_TAG_PEP440}.*\",/g" python/cuspatial/pyproject.toml
78-
sed_runner "s/rmm==.*\",/rmm==${NEXT_SHORT_TAG_PEP440}.*\",/g" python/cuspatial/pyproject.py

cpp/doxygen/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2171,7 +2171,7 @@ SKIP_FUNCTION_MACROS = YES
21712171
# the path). If a tag file is not located in the directory in which doxygen is
21722172
# run, you must also specify the path to the tagfile here.
21732173

2174-
TAGFILES = rmm.tag=https://docs.rapids.ai/api/librmm/22.10 "libcudf.tag=https://docs.rapids.ai/api/libcudf/22.10"
2174+
TAGFILES = rmm.tag=https://docs.rapids.ai/api/librmm/23.06 "libcudf.tag=https://docs.rapids.ai/api/libcudf/23.06"
21752175

21762176
# When a file name is specified after GENERATE_TAGFILE, doxygen will create a
21772177
# tag file that is based on the input files it reads. See section "Linking to

0 commit comments

Comments
 (0)