-
Notifications
You must be signed in to change notification settings - Fork 25
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
Get package version from library metadata #1608
Conversation
Signed-off-by: paul.profizi <[email protected]>
Signed-off-by: paul.profizi <[email protected]>
Signed-off-by: paul.profizi <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1608 +/- ##
==========================================
- Coverage 85.55% 81.29% -4.27%
==========================================
Files 83 83
Lines 9823 9825 +2
==========================================
- Hits 8404 7987 -417
- Misses 1419 1838 +419 |
|
||
__version__ = importlib_metadata.version("ansys-dpf-core") |
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.
Where does it get the version from exactly? @PProfizi
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.
@BClappe from the pyproject.toml
, meaning we have only one source of truth, and it is in the package metadata file.
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.
This is part of the work to adhere to PyAnsys best practices.
This PR implements retrieval of the package's version from its metadata, as defined in the
pyproject.toml
, as is shown in the PyAnsys best practices.