diff options
author | Kali Kaneko <kali@leap.se> | 2016-05-18 11:23:15 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2016-05-18 11:23:15 -0400 |
commit | be4b326e6e64023f9d0df5b744fc342e50e8595f (patch) | |
tree | 7206677e8d549be3e0402b3953ab12cc706cbdb8 | |
parent | 0012cde59b32eeacbaeff6417a3313a2d750d15e (diff) |
[pkg] use new versioneer json format
-rw-r--r-- | src/leap/common/_version.py | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/src/leap/common/_version.py b/src/leap/common/_version.py index a2f57f9..d5dfe60 100644 --- a/src/leap/common/_version.py +++ b/src/leap/common/_version.py @@ -1,14 +1,21 @@ - -# This file was generated by the `freeze_debianver` command in setup.py -# Using 'versioneer.py' (0.16) from +# This file was generated by 'versioneer.py' (0.16) from # revision-control system data, or from the parent directory name of an # unpacked source archive. Distribution tarballs contain a pre-generated copy # of this file. -version_version = '0.5.1' -full_revisionid = '3b413203993a0490f3adf9c0737c207be263eb07' +import json +import sys + +version_json = ''' +{ + "dirty": false, + "error": null, + "full-revisionid": "d0aebe266b09a6787f34b16413db81a20e090601", + "version": "0.5.1+2.gd0aebe2" +} +''' # END VERSION_JSON + +def get_versions(): + return json.loads(version_json) -def get_versions(default={}, verbose=False): - return {'version': version_version, - 'full-revisionid': full_revisionid} |