Skip to content

Commit

Permalink
Add missing alpha spec (#1273)
Browse files Browse the repository at this point in the history
Without this extra spec, consumers of dask-cuda nightlies won't know that dask-cuda nightlies want to use nightlies of rapids-dask-dependency.

Authors:
  - Vyas Ramasubramani (https://github.com/vyasr)

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

URL: #1273
  • Loading branch information
vyasr authored Nov 14, 2023
1 parent 9a5d06d commit d026d6e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions ci/build_python_pypi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ if ! rapids-is-release-build; then
export PACKAGE_VERSION_NUMBER="${version}"
fi

# For nightlies we want to ensure that we're pulling in alphas as well. The
# easiest way to do so is to augment the spec with a constraint containing a
# min alpha version that doesn't affect the version bounds but does allow usage
# of alpha versions for that dependency without --pre
alpha_spec=''
if ! rapids-is-release-build; then
alpha_spec=',>=0.0.0a0'
fi

sed -r -i "s/rapids-dask-dependency==(.*)\"/rapids-dask-dependency==\1${alpha_spec}\"/g" pyproject.toml

echo "${version}" | tr -d '"' > VERSION
sed -i "/^__git_commit__/ s/= .*/= \"${commit}\"/g" "${package_name}/_version.py"
Expand Down
2 changes: 1 addition & 1 deletion ci/test_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ timeout 60m pytest \
--cov=dask_cuda \
--cov-report=xml:"${RAPIDS_COVERAGE_DIR}/dask-cuda-coverage.xml" \
--cov-report=term \
tests
tests -k "not ucxx"
popd

rapids-logger "Run local benchmark"
Expand Down

0 comments on commit d026d6e

Please sign in to comment.