Skip to content

Commit 5b4b913

Browse files
committed
Add dyanmic versioning & update metadata in __init__.py
1 parent 005289e commit 5b4b913

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

OceanDataStore/__init__.py

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
1-
"""OceanDataStore base package."""
2-
__version__ = "0.1.0"
1+
"""
2+
OceanDataStore
3+
4+
An open-source Python library to streamline writing, updating and accessing
5+
ocean data stored in cloud object storage.
6+
"""
37
__author__ = "Ollie Tooth, Joao Morado, Tobias Ferreira"
4-
__credits__ = "National Oceanography Centre"
8+
__credits__ = "National Oceanography Centre (NOC), Southampton, UK"
9+
10+
from importlib.metadata import version as _version
11+
12+
from OceanDataStore.data_catalog import OceanDataCatalog
13+
14+
try:
15+
__version__ = _version("OceanDataStore")
16+
except Exception:
17+
# Local copy or not installed with setuptools.
18+
# Disable minimum version checks on downstream libraries.
19+
__version__ = "9999"
520

6-
from .data_catalog import OceanDataCatalog
21+
__all__ = ("OceanDataCatalog")

0 commit comments

Comments
 (0)