version: use standard Python's dev0 instead of Libervia specific D for dev version
This commit is contained in:
parent
4678449f76
commit
b7618e12f7
1 changed files with 6 additions and 10 deletions
4
setup.py
4
setup.py
|
|
@ -73,7 +73,7 @@ DBUS_DIR = 'dbus-1/services'
|
|||
DBUS_FILE = 'misc/org.libervia.Libervia.service'
|
||||
with open(os.path.join(DIR_NAME, 'VERSION')) as f:
|
||||
VERSION = f.read().strip()
|
||||
is_dev_version = VERSION.endswith('D')
|
||||
is_dev_version = VERSION.endswith('.dev0')
|
||||
if is_dev_version:
|
||||
install_requires.append("setuptools_scm")
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ if is_dev_version:
|
|||
def sat_dev_version():
|
||||
"""Use mercurial data to compute version"""
|
||||
def version_scheme(version):
|
||||
return VERSION.replace('D', '.dev0')
|
||||
return VERSION
|
||||
|
||||
def local_scheme(version):
|
||||
return "+{rev}.{distance}".format(
|
||||
|
|
|
|||
Loading…
Reference in a new issue