Add __version__ to __init__.py

This commit is contained in:
Vladan Popovic 2020-09-07 14:52:33 +02:00
parent 5c42aaa023
commit c4d4adc46d

View file

@ -0,0 +1,10 @@
"""
Package related information, like version, name, etc.
"""
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
pass