Skip to content

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 a team and anitarua September 27, 2024 21:31
@malandis malandis merged commit 6ca2525 into main Sep 27, 2024
@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.

3 participants