comparison setup.py @ 1519:01b8d68edd70

version: use standard Python's `dev0` instead of Libervia specific `D` for dev version
author Goffi <goffi@goffi.org>
date Tue, 06 Jun 2023 17:40:16 +0200
parents eb00d593801d
children
comparison
equal deleted inserted replaced
1518:eb00d593801d 1519:01b8d68edd70
40 It is also a decentralized, XMPP based web framework. 40 It is also a decentralized, XMPP based web framework.
41 """ 41 """
42 42
43 with open(os.path.join(DIR_NAME, "VERSION")) as v: 43 with open(os.path.join(DIR_NAME, "VERSION")) as v:
44 VERSION = v.read().strip() 44 VERSION = v.read().strip()
45 is_dev_version = VERSION.endswith("D") 45 is_dev_version = VERSION.endswith(".dev0")
46 46
47 47
48 def libervia_dev_version(): 48 def libervia_dev_version():
49 """Use mercurial data to compute version""" 49 """Use mercurial data to compute version"""
50 50
51 def version_scheme(version): 51 def version_scheme(version):
52 return VERSION.replace("D", ".dev0") 52 return VERSION
53 53
54 def local_scheme(version): 54 def local_scheme(version):
55 return "+{rev}.{distance}".format(rev=version.node[1:], distance=version.distance) 55 return "+{rev}.{distance}".format(rev=version.node[1:], distance=version.distance)
56 56
57 return {"version_scheme": version_scheme, "local_scheme": local_scheme} 57 return {"version_scheme": version_scheme, "local_scheme": local_scheme}