Add __version__ to __init__.py
This commit is contained in:
parent
5c42aaa023
commit
c4d4adc46d
1 changed files with 10 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue