Skip to content

Commit

Permalink
Added __version__ back (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab authored and randyzwitch committed Mar 6, 2019
1 parent f1d86a1 commit 2b5f459
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ ENV/
.spyderproject
.spyproject

# pycharm
.idea/

# Rope project settings
.ropeproject

Expand Down
11 changes: 11 additions & 0 deletions pymapd/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
from pkg_resources import get_distribution, DistributionNotFound

from mapd import MapD # noqa

# module constants
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
pass

# clean up
del get_distribution, DistributionNotFound

apilevel = "2.0"
threadsafety = 2
Expand Down

0 comments on commit 2b5f459

Please sign in to comment.