Skip to content

Commit

Permalink
Merge pull request #69 from ecmwf/fix/init-version-import
Browse files Browse the repository at this point in the history
Fix __version__ import
  • Loading branch information
HCookie authored Oct 25, 2024
2 parents 959dff0 + d374a57 commit 7427324
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Keep it human-readable, your future self will thank you!
- Update CODEOWNERS
- ci: extened python versions to include 3.11 and 3.12
- Update copyright notice
- Fix `__version__` import in init

## [0.3.0 Anemoi-graphs, minor release](https://github.com/ecmwf/anemoi-graphs/compare/0.2.1...0.3.0) - 2024-09-03

Expand Down
8 changes: 7 additions & 1 deletion src/anemoi/graphs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
# granted to it by virtue of its status as an intergovernmental organisation
# nor does it submit to any jurisdiction.

from ._version import __version__

EARTH_RADIUS = 6371.0 # km
try:
# NOTE: the `_version.py` file must not be present in the git repository
# as it is generated by setuptools at install time
from ._version import __version__ # type: ignore
except ImportError: # pragma: no cover
# Local copy or not installed with setuptools
__version__ = "999"

0 comments on commit 7427324

Please sign in to comment.