Skip to content

Commit 494cc8a

Browse files
author
alex-omophub
committed
Update version handling
1 parent 2a3d387 commit 494cc8a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/omophub/_version.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
"""Version information for the OMOPHub SDK."""
22

3-
__version__ = "0.1.0"
3+
from importlib.metadata import PackageNotFoundError, version
4+
5+
try:
6+
__version__ = version("omophub")
7+
except PackageNotFoundError:
8+
__version__ = "0.0.0-dev"
49

510

611
def get_version() -> str:

0 commit comments

Comments
 (0)