# HG changeset patch # User Goffi # Date 1524906257 -7200 # Node ID 98a485512289b5b96655e12a1b3c60f2eebf0d1d # Parent 916af9c1cb9b8281e0c1bb5f08d90a04d0b4df0e installation: fixed version in setup.py diff -r 916af9c1cb9b -r 98a485512289 setup.py --- a/setup.py Sat Apr 28 10:57:17 2018 +0200 +++ b/setup.py Sat Apr 28 11:04:17 2018 +0200 @@ -38,13 +38,10 @@ def cagou_dev_version(): """Use mercurial data to compute version""" def version_scheme(version): - return VERSION + return VERSION.replace('D', '.dev0') def local_scheme(version): - # XXX: setuptools_scm seems buggy and the '+' and the '_' are replaced by '-' - # breaking the local version identifier scheme - # cf. https://github.com/pypa/setuptools_scm/issues/237 - return "+{rev}_{distance}".format( + return "+{rev}.{distance}".format( rev=version.node[1:], distance=version.distance)