Skip to content

Commit a6583ce

Browse files
committed
Use importlib to determine codebasin version
Signed-off-by: John Pennycook <john.pennycook@intel.com>
1 parent c23c69d commit a6583ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

codebasin/__main__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"""
77

88
import argparse
9+
import importlib.metadata
910
import logging
1011
import os
1112
import sys
@@ -14,7 +15,7 @@
1415
from codebasin._detail.logging import Formatter, WarningAggregator
1516

1617
log = logging.getLogger("codebasin")
17-
version = "1.2.0"
18+
version = importlib.metadata.version("codebasin")
1819

1920
_traceback = False
2021

0 commit comments

Comments
 (0)