version: use standard Python's dev0 instead of Libervia specific D for dev version

This commit is contained in:
Goffi 2023-06-06 12:41:53 +02:00
commit b7618e12f7

View file

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