diff --git a/setup.py b/setup.py index fa42978..736571b 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setup( name='jsonconversion', - version='0.2.2', + version='0.2.3', url='https://github.com/DLR-RM/python-jsonconversion', download_url='https://github.com/DLR-RM/python-jsonconversion/archive/0.2.2.tar.gz', license='BSD', diff --git a/src/jsonconversion/__init__.py b/src/jsonconversion/__init__.py index 01a955e..076570b 100644 --- a/src/jsonconversion/__init__.py +++ b/src/jsonconversion/__init__.py @@ -8,3 +8,10 @@ # Contributors: # Franz Steinmetz +from pkg_resources import get_distribution, DistributionNotFound + +try: + __version__ = get_distribution("jsonconversion").version +except DistributionNotFound: + __version__ = "unknown" +