fix setuptools_scm usage related crash, fixes #423

This commit is contained in:
Thomas Waldmann 2019-04-09 22:26:07 +02:00
parent a1c090eeb7
commit 9a416fc6aa
2 changed files with 4 additions and 5 deletions

View File

@ -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)',

View File

@ -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()