-
Notifications
You must be signed in to change notification settings - Fork 65
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
Use rapids-generate-version
for env var
#622
base: branch-25.04
Are you sure you want to change the base?
Use rapids-generate-version
for env var
#622
Conversation
ci/build_python.sh
Outdated
@@ -22,7 +22,7 @@ conda config --set path_conflict prevent | |||
|
|||
sccache --zero-stats | |||
|
|||
RAPIDS_PACKAGE_VERSION=$(head -1 ./VERSION) rapids-conda-retry mambabuild \ | |||
RAPIDS_PACKAGE_VERSION=$(rapids-generate-version) rapids-conda-retry mambabuild \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that the function is being called once above, hence why I previously just read the output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the line Vyas referenced
Line 16 in 173c62c
rapids-generate-version > ./VERSION |
And we need to that line as the VERSION
file has to be written out there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is slightly preferably. I misunderstood the original code, I though that ./VERSION
was written just to be read here :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a comment to that line. Also shared a few examples below
ci/build_python.sh
Outdated
@@ -22,7 +22,7 @@ conda config --set path_conflict prevent | |||
|
|||
sccache --zero-stats | |||
|
|||
RAPIDS_PACKAGE_VERSION=$(head -1 ./VERSION) rapids-conda-retry mambabuild \ | |||
RAPIDS_PACKAGE_VERSION=$(rapids-generate-version) rapids-conda-retry mambabuild \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is slightly preferably. I misunderstood the original code, I though that ./VERSION
was written just to be read here :)
This uses the `RAPIDS_PACKAGE_VERSION` values set in #616. This ensures we have consistent nightly versions. This PR is independent of #622 (it is needed regardless of whether that PR is closed or merged). Authors: - Bradley Dice (https://github.com/bdice) Approvers: - James Lamb (https://github.com/jameslamb) URL: #628
# This file is used throughout to define the version | ||
rapids-generate-version > ./VERSION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are a few examples of where VERSION
is used
kvikio/python/kvikio/kvikio/_version.py
Lines 17 to 19 in c38038e
__version__ = ( | |
importlib.resources.files(__package__).joinpath("VERSION").read_text().strip() | |
) |
kvikio/python/kvikio/pyproject.toml
Lines 137 to 140 in c38038e
[tool.scikit-build.metadata.version] | |
provider = "scikit_build_core.metadata.regex" | |
input = "kvikio/VERSION" | |
regex = "(?P<value>.*)" |
Follow up on this thread: #616 (comment)