Skip to content

Commit

Permalink
Add __version__ info
Browse files Browse the repository at this point in the history
  • Loading branch information
franzlst committed Apr 10, 2017
1 parent 72c50df commit b2db77b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/jsonconversion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,10 @@
# Contributors:
# Franz Steinmetz <[email protected]>

from pkg_resources import get_distribution, DistributionNotFound

try:
__version__ = get_distribution("jsonconversion").version
except DistributionNotFound:
__version__ = "unknown"

0 comments on commit b2db77b

Please sign in to comment.