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

Align __version__ with wheel version #1161

Merged
merged 4 commits into from
Nov 17, 2022
Merged

Align __version__ with wheel version #1161

merged 4 commits into from
Nov 17, 2022

Conversation

sevagh
Copy link
Contributor

@sevagh sevagh commented Nov 17, 2022

In the pip wheels, the versioneer version is overwritten with an env var, RAPIDS_PY_WHEEL_VERSIONEER_OVERRIDE in the setup.py version.

However, the __version__ metadata of the package doesn't match this override. This fix propagates the override to __version__ also.

@sevagh sevagh requested a review from a team as a code owner November 17, 2022 17:35
@github-actions github-actions bot added the Python Related to RMM Python API label Nov 17, 2022
python/setup.py Show resolved Hide resolved
@sevagh
Copy link
Contributor Author

sevagh commented Nov 17, 2022

I also incorporated more suggestions from Lawrence in: rapidsai/ptxcompiler#31

@sevagh sevagh added non-breaking Non-breaking change improvement Improvement / enhancement to an existing function labels Nov 17, 2022
Copy link
Contributor

@bdice bdice left a comment

Choose a reason for hiding this comment

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

Everything looks good to me.

@sevagh sevagh merged commit 3f7c61e into rapidsai:branch-22.12 Nov 17, 2022
@wence-
Copy link
Contributor

wence- commented Nov 18, 2022

Just to note, I don't think it's critical at all, the "complain if set but empty" patch doesn't actually complain if the env var is empty. So in the very unlikely case that RAPIDS_...= is in the environment but empty, the version will be too. Given the way this is used, no need to rush in a hotfix for 22.12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement / enhancement to an existing function non-breaking Non-breaking change Python Related to RMM Python API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants