Skip to content

Commit

Permalink
Update version mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
angus-g committed Aug 5, 2024
1 parent c8851a5 commit afca0c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cosima_cookbook/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
Common tools for working with COSIMA model output
"""

import pkg_resources

from . import database
from . import querying
from . import explore

from importlib.metadata import version, PackageNotFoundError

try:
__version__ = pkg_resources.get_distribution("cosima-cookbook").version
except Exception:
__version__ = "999"
__version__ = version("cosima-cookbook")
except PackageNotFoundError:
pass

0 comments on commit afca0c1

Please sign in to comment.