-
Notifications
You must be signed in to change notification settings - Fork 56
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
Adds git based versioning for get_nxdl_version
#1318
base: main
Are you sure you want to change the base?
Conversation
Currently it's failing because it needs reformatted according to black>24. This will be fixed by #1344 |
You need to rebase to the tip of main for the fixed formatting of |
34a2ca9
to
e4e25a2
Compare
And then format your altered file |
That's the grouping of the |
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.
LGTM
We started to add a version based on the git tag and hash in pynxtools (see FAIRmat-NFDI/pynxtools#124) and I thought could be useful as a general feature. This PR is just to start a discussion whether it is desired to have a versioning like this in this repository, too.
When a git repository is available it constructs a version string based on the last tag, commit distance and commit hash. If no repository is available this falls back to reading
NXDL_VERSION
.