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

Adds git based versioning for get_nxdl_version #1318

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

domna
Copy link
Contributor

@domna domna commented Oct 31, 2023

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.

@domna
Copy link
Contributor Author

domna commented Feb 8, 2024

Currently it's failing because it needs reformatted according to black>24. This will be fixed by #1344

@PeterC-DLS
Copy link
Contributor

You need to rebase to the tip of main for the fixed formatting of xsd_units.py

@PeterC-DLS
Copy link
Contributor

And then format your altered file

@domna
Copy link
Contributor Author

domna commented Feb 9, 2024

And then format your altered file

That's the grouping of the subprocess imports. It seems like isort doesn't like them being grouped

Copy link
Contributor

@PeterC-DLS PeterC-DLS left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants