Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate proper, consistent nightly versions for pip and conda packages #1267

Merged
merged 9 commits into from
Oct 27, 2023

Conversation

galipremsagar
Copy link
Contributor

This PR changes conda Python packages and wheels to all generate a consistent version for nightlies. The nightly version is of the form YY.MM.DDaN, where N is the number of commits from the last tag. The version is embedded in both the package metadata and in the dask_cuda.__version__ attribute. In addition the commit hash itself is embedded into the package as dask_cuda.__git_commit__. These changes ensure that

  1. wheels are properly considered nightlies and are treated accordingly by pip (e.g. requiring --pre for installation, not conflicting with normal releases, etc)
  2. wheels and conda packages are aligned on versions so that they can be easily compared if necessary.

@galipremsagar galipremsagar self-assigned this Oct 27, 2023
@galipremsagar galipremsagar requested review from a team as code owners October 27, 2023 19:20
@github-actions github-actions bot added python python code needed conda conda issue ci labels Oct 27, 2023
@galipremsagar galipremsagar added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Oct 27, 2023
Copy link
Contributor

@vyasr vyasr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You also need to specify that the VERSION file should be included in the built distributions. Since dask-cuda uses setuptools directly, you can specify that in MANIFEST.in.

dask_cuda/VERSION Outdated Show resolved Hide resolved
ci/build_python_pypi.sh Outdated Show resolved Hide resolved
ci/build_python_pypi.sh Outdated Show resolved Hide resolved
@jakirkham
Copy link
Member

Please see this comment: #1267 (review)

@galipremsagar
Copy link
Contributor Author

Please see this comment: #1267 (review)

Thanks for pointing me to this John. @vyasr Apologies I missed it the first time.

@jakirkham
Copy link
Member

/merge

@rapids-bot rapids-bot bot merged commit d9e1001 into rapidsai:branch-23.12 Oct 27, 2023
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci conda conda issue improvement Improvement / enhancement to an existing function non-breaking Non-breaking change python python code needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants