Mercurial > libervia-backend
comparison setup.py @ 2576:cb7bf936d8e8
setup, tools(utils): fixed versioning in setup and getRepositoryData
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 06 Apr 2018 16:47:40 +0200 |
parents | fbcdb761981c |
children | c180ca699e72 |
comparison
equal
deleted
inserted
replaced
2575:824ef7f64286 | 2576:cb7bf936d8e8 |
---|---|
60 | 60 |
61 | 61 |
62 def sat_dev_version(): | 62 def sat_dev_version(): |
63 """Use mercurial data to compute version""" | 63 """Use mercurial data to compute version""" |
64 def version_scheme(version): | 64 def version_scheme(version): |
65 return VERSION | 65 return VERSION.replace('D', '.dev0') |
66 | 66 |
67 def local_scheme(version): | 67 def local_scheme(version): |
68 # XXX: setuptools_scm seems buggy and the '+' and the '_' are replaced by '-' | 68 return "+{rev}.{distance}".format( |
69 # breaking the local version identifier scheme | |
70 # cf. https://github.com/pypa/setuptools_scm/issues/237 | |
71 return "+{rev}_{distance}".format( | |
72 rev=version.node[1:], | 69 rev=version.node[1:], |
73 distance=version.distance) | 70 distance=version.distance) |
74 | 71 |
75 return {'version_scheme': version_scheme, | 72 return {'version_scheme': version_scheme, |
76 'local_scheme': local_scheme} | 73 'local_scheme': local_scheme} |