build: drop rc0 pre-release tag and add dynamic git versioning#2235
Open
build: drop rc0 pre-release tag and add dynamic git versioning#2235
Conversation
Append +<short-sha> to __version__ at import time using only the git binary. Falls back silently if git is unavailable or not in a repo. Set NO_VCS_VERSION=1 to opt out (e.g. for release builds). Also pins build-test-publish-wheel to FW-CI-templates@7a6fd6d which sets NO_VCS_VERSION=1 in the build step, preventing sdist/wheel version mismatch. Will be replaced with a version tag once NVIDIA-NeMo/FW-CI-templates#443 is released. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: oliver könig <okoenig@nvidia.com>
|
Auto-sync is disabled for ready for review pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: oliver könig <okoenig@nvidia.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: oliver könig <okoenig@nvidia.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: oliver könig <okoenig@nvidia.com>
thomasdhc
approved these changes
Apr 9, 2026
kajalj22
approved these changes
Apr 9, 2026
Contributor
|
/ok to test c2c6542 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rc0pre-release tag — version is nowX.Y.Z(clean semver)+<short-sha>to__version__at import/build time viagit rev-parse --short HEADNO_VCS_VERSION=1to opt out (e.g. for release builds)build-test-publish-wheeltoFW-CI-templates@7a6fd6d(setsNO_VCS_VERSION=1in the build step to prevent sdist/wheel version mismatch); will be replaced with a version tag once fix: set NO_VCS_VERSION=1 in wheel build step FW-CI-templates#443 is releasedExample
Test plan
+<sha>suffixNO_VCS_VERSION=1suppresses the suffix