Skip to content

Commit

Permalink
ensure update-version.sh updates pyproject.toml (#1106)
Browse files Browse the repository at this point in the history
Contributes to rapidsai/build-planning#136

This project's `update-version.sh` misses some RAPIDS dependencies in `pyproject.toml`. This fixes that.

Also updates to the latest `rapids-dependency-file-generator`.

## Notes for Reviewers

### How I tested this

```shell
git fetch upstream --tags
./ci/release/update-version.sh '0.43.00'
git grep -E '25\.2'
git grep -E '25\.02'
git grep -E '0\.42'
```

Authors:
  - James Lamb (https://github.com/jameslamb)

Approvers:
  - Jake Awe (https://github.com/AyodeAwe)

URL: #1106
  • Loading branch information
jameslamb authored Jan 23, 2025
1 parent 191ce52 commit e0b9798
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repos:
- --fix
- --rapids-version=25.02
- repo: https://github.com/rapidsai/dependency-file-generator
rev: v1.16.0
rev: v1.17.0
hooks:
- id: rapids-dependency-file-generator
args: ["--clean"]
Expand Down
4 changes: 4 additions & 0 deletions ci/release/update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ for FILE in dependencies.yaml conda/environments/*.yml; do
done
done

for DEP in "${DEPENDENCIES[@]}"; do
sed_runner "/\"${DEP}\(-cu[[:digit:]]\{2\}\)\{0,1\}==/ s/==.*\"/==${NEXT_RAPIDS_SHORT_TAG_PEP440}.*,>=0.0.0a0\"/g" pyproject.toml
done

for FILE in .github/workflows/*.yaml; do
sed_runner "/shared-workflows/ s/@.*/@branch-${NEXT_RAPIDS_SHORT_TAG}/g" "${FILE}"
done
Expand Down

0 comments on commit e0b9798

Please sign in to comment.