diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/pkg/requirements.pip | 4 | ||||
-rw-r--r-- | client/setup.py | 28 | ||||
-rw-r--r-- | client/src/leap/soledad/client/_version.py | 17 |
3 files changed, 32 insertions, 17 deletions
diff --git a/client/pkg/requirements.pip b/client/pkg/requirements.pip index 5519d2f6..ec7d7699 100644 --- a/client/pkg/requirements.pip +++ b/client/pkg/requirements.pip @@ -1,6 +1,8 @@ #pysqlcipher>2.6.3 u1db scrypt -cchardet +# cchardet not packaged, we need python-chardet from the +# repos instead. +chardet zope.proxy oauth diff --git a/client/setup.py b/client/setup.py index 4480e247..90986dde 100644 --- a/client/setup.py +++ b/client/setup.py @@ -68,14 +68,20 @@ class freeze_debianver(Command): # unpacked source archive. Distribution tarballs contain a pre-generated copy # of this file. -version_version = '{version}' -full_revisionid = '{full_revisionid}' -""" - templatefun = r""" - -def get_versions(default={}, verbose=False): - return {'version': version_version, - 'full-revisionid': full_revisionid} +import json +import sys + +version_json = ''' +{ + "dirty": false, + "error": null, + "full-revisionid": "FULL_REVISIONID", + "version": "VERSION_STRING" +} +''' # END VERSION_JSON + +def get_versions(): + return json.loads(version_json) """ def initialize_options(self): @@ -90,9 +96,9 @@ def get_versions(default={}, verbose=False): if proceed != "y": print("He. You scared. Aborting.") return - subst_template = self.template.format( - version=VERSION_SHORT, - full_revisionid=VERSION_REVISION) + self.templatefun + subst_template = self.template.replace( + 'VERSION_STRING', VERSION_SHORT).replace( + 'FULL_REVISIONID', VERSION_REVISION) versioneer_cfg = versioneer.get_config_from_root('.') with open(versioneer_cfg.versionfile_source, 'w') as f: f.write(subst_template) diff --git a/client/src/leap/soledad/client/_version.py b/client/src/leap/soledad/client/_version.py index a72d4aa7..ebc8925f 100644 --- a/client/src/leap/soledad/client/_version.py +++ b/client/src/leap/soledad/client/_version.py @@ -5,10 +5,17 @@ # unpacked source archive. Distribution tarballs contain a pre-generated copy # of this file. -version_version = '0.8.0' -full_revisionid = '259d37b430564c03f27d0835e23769473034df6f' +import json +import sys +version_json = ''' +{ + "dirty": false, + "error": null, + "full-revisionid": "91cbf6c084569a24c4186f3ff745448d3c51756a", + "version": "0.8.0" +} +''' # END VERSION_JSON -def get_versions(default={}, verbose=False): - return {'version': version_version, - 'full-revisionid': full_revisionid} +def get_versions(): + return json.loads(version_json) |