Use setuptools-scm for git based versions
This commit is contained in:
parent
80033041e9
commit
ef7a9ec539
@ -4,6 +4,8 @@ nsupdate - dynamic DNS service
|
|||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
from setuptools_scm import get_version
|
||||||
|
|
||||||
|
|
||||||
class Version(tuple): # pragma: no cover
|
class Version(tuple): # pragma: no cover
|
||||||
"""
|
"""
|
||||||
@ -62,4 +64,4 @@ class Version(tuple): # pragma: no cover
|
|||||||
return version_str
|
return version_str
|
||||||
|
|
||||||
|
|
||||||
version = Version(0, 12, 0)
|
version = get_version()
|
||||||
|
@ -7,3 +7,4 @@ django-registration-redux
|
|||||||
django-extensions
|
django-extensions
|
||||||
social-auth-app-django
|
social-auth-app-django
|
||||||
requests
|
requests
|
||||||
|
setuptools-scm
|
||||||
|
5
setup.py
5
setup.py
@ -4,14 +4,13 @@ setup for nsupdate package
|
|||||||
|
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
from nsupdate import version
|
|
||||||
|
|
||||||
with open('README.rst') as f:
|
with open('README.rst') as f:
|
||||||
readme_content = f.read()
|
readme_content = f.read()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='nsupdate',
|
name='nsupdate',
|
||||||
version=str(version),
|
use_scm_version=True,
|
||||||
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)',
|
||||||
@ -45,6 +44,7 @@ setup(
|
|||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
platforms='any',
|
platforms='any',
|
||||||
|
setup_requires=['setuptools_scm'],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'dnspython',
|
'dnspython',
|
||||||
'netaddr',
|
'netaddr',
|
||||||
@ -54,6 +54,7 @@ setup(
|
|||||||
'django-extensions',
|
'django-extensions',
|
||||||
'social-auth-app-django',
|
'social-auth-app-django',
|
||||||
'requests', # for our ddns_client
|
'requests', # for our ddns_client
|
||||||
|
'setuptools_scm'
|
||||||
],
|
],
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 5 - Production/Stable',
|
'Development Status :: 5 - Production/Stable',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user