Skip to content

Commit b2db77b

Browse files
committed
Add __version__ info
1 parent 72c50df commit b2db77b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/jsonconversion/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,10 @@
88
# Contributors:
99
# Franz Steinmetz <[email protected]>
1010

11+
from pkg_resources import get_distribution, DistributionNotFound
12+
13+
try:
14+
__version__ = get_distribution("jsonconversion").version
15+
except DistributionNotFound:
16+
__version__ = "unknown"
17+

0 commit comments

Comments
 (0)