fix setuptools_scm usage related crash, fixes #423
This commit is contained in:
parent
a1c090eeb7
commit
9a416fc6aa
4
setup.py
4
setup.py
@ -10,7 +10,9 @@ with open('README.rst') as f:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='nsupdate',
|
name='nsupdate',
|
||||||
use_scm_version=True,
|
use_scm_version={
|
||||||
|
'write_to': 'src/nsupdate/_version.py',
|
||||||
|
},
|
||||||
url='http://github.com/nsupdate-info/nsupdate.info/',
|
url='http://github.com/nsupdate-info/nsupdate.info/',
|
||||||
license='BSD',
|
license='BSD',
|
||||||
author='The nsupdate.info Team (see AUTHORS)',
|
author='The nsupdate.info Team (see AUTHORS)',
|
||||||
|
@ -4,7 +4,7 @@ nsupdate - dynamic DNS service
|
|||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from setuptools_scm import get_version
|
from ._version import version
|
||||||
|
|
||||||
|
|
||||||
class Version(tuple): # pragma: no cover
|
class Version(tuple): # pragma: no cover
|
||||||
@ -62,6 +62,3 @@ class Version(tuple): # pragma: no cover
|
|||||||
if self.additional != 'd0':
|
if self.additional != 'd0':
|
||||||
version_str += self.additional
|
version_str += self.additional
|
||||||
return version_str
|
return version_str
|
||||||
|
|
||||||
|
|
||||||
version = get_version()
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user