Skip to content

Commit

Permalink
Merge pull request #68 from digitalocean/fix-scm-versioning
Browse files Browse the repository at this point in the history
Fixes #67 - breaks on import
  • Loading branch information
Zach Moody committed Jul 3, 2018
2 parents 14f629c + cc8da3b commit 7c8e2ef
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pynetbox/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from setuptools_scm import get_version
from pkg_resources import get_distribution, DistributionNotFound

from pynetbox.api import Api as api
from pynetbox.lib import RequestError


__version__ = get_version(root='..', relative_to=__file__)
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
pass

0 comments on commit 7c8e2ef

Please sign in to comment.