commit
1ff09a2ee5
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()
|
|
||||||
|
@ -134,7 +134,8 @@ def basic_authenticate(auth):
|
|||||||
return username, password
|
return username, password
|
||||||
|
|
||||||
|
|
||||||
def check_api_auth(username, password):
|
@log.logger(__name__)
|
||||||
|
def check_api_auth(username, password, logger=None):
|
||||||
"""
|
"""
|
||||||
Check username and password against our database.
|
Check username and password against our database.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user