Skip to content

Commit 9a188f0

Browse files
committed
Merge branch 'master' into public_master
- set correct version number - add __version__ information
2 parents 6384f66 + 7de4731 commit 9a188f0

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
setup(
2121
name='jsonconversion',
22-
version='0.2.2',
22+
version='0.2.3',
2323
url='https://github.com/DLR-RM/python-jsonconversion',
2424
download_url='https://github.com/DLR-RM/python-jsonconversion/archive/0.2.2.tar.gz',
2525
license='BSD',

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)