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

feat: read version from package init #481

Merged
merged 3 commits into from
Sep 27, 2024
Merged

Conversation

malandis
Copy link
Contributor

Refactors the code to read the momento package version number from the momento package __init__ instead of querying the package metadata. We also remove the importlib-metadata package previously needed to query package metadata on legacy python versions.

Reads the version from the value applied by CI in the package __init__
instead of package metadata.
No longer need the legacy importlib-metadata package since we will
read the version from the init module.
At the top level there are both classes that need the momento version
as well as the momento version. Move the import to the narrowest scope
to avoid this.
@malandis malandis requested review from anitarua and a team September 27, 2024 21:31
@malandis malandis merged commit 6ca2525 into main Sep 27, 2024
10 checks passed
@malandis malandis deleted the feat/read-version-from-init branch September 27, 2024 22:07
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