diff --git a/setup.py b/setup.py index 6aba432..73e98ec 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,9 @@ with open('README.rst') as f: setup( name='nsupdate', - use_scm_version=True, + use_scm_version={ + 'write_to': 'src/nsupdate/_version.py', + }, url='http://github.com/nsupdate-info/nsupdate.info/', license='BSD', author='The nsupdate.info Team (see AUTHORS)', diff --git a/src/nsupdate/__init__.py b/src/nsupdate/__init__.py index de68a22..1e6875b 100644 --- a/src/nsupdate/__init__.py +++ b/src/nsupdate/__init__.py @@ -4,7 +4,7 @@ nsupdate - dynamic DNS service import re -from setuptools_scm import get_version +from ._version import version class Version(tuple): # pragma: no cover @@ -62,6 +62,3 @@ class Version(tuple): # pragma: no cover if self.additional != 'd0': version_str += self.additional return version_str - - -version = get_version()