Skip to content

Commit

Permalink
Add __version__ to module (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
angus-g authored Jun 26, 2020
1 parent fbdc97f commit 7b1f518
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions cosima_cookbook/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,12 @@
Common tools for working with COSIMA model output
"""

import pkg_resources

from . import database
from . import querying

try:
__version__ = pkg_resources.get_distribution("cosima-cookbook").version
except Exception:
__version__ = "999"
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

setup(
name='cosima_cookbook',
version='0.2',
description='Diagnostics for COSIMA: Consortium for Ocean-Sea Ice Modelling in Australia',
url='https://github.com/COSIMA/cosima-cookbook',
author='James Munroe',
author_email='[email protected]',
author='COSIMA',
license='Apache License 2.0',
use_scm_version=True,
packages=find_packages(),
setup_requires=["setuptools_scm"],

install_requires=[
'dask',
Expand Down

0 comments on commit 7b1f518

Please sign in to comment.