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

Make weather-model-graphs report its own version with weather_model_graphs.__version__ attribute #39

Open
leifdenby opened this issue Jan 6, 2025 · 0 comments

Comments

@leifdenby
Copy link
Member

Currently weather-model-graphs doesn't expose its own version using the __version__ attribute that is common for python packages to do. mllam-data-prep already implements this by adding the following to mllam_data_prep/__init__.py:

import importlib.metadata

try:
    __version__ = importlib.metadata.version(__name__)
except importlib.metadata.PackageNotFoundError:
    __version__ = "unknown"
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

No branches or pull requests

1 participant