diff options
author | Kali Kaneko <kali@leap.se> | 2016-03-28 12:25:29 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2016-03-28 15:10:38 -0400 |
commit | 054ceb6225ef9c32f3d24870bf3e8085bbe0c432 (patch) | |
tree | d1b24de601067ec5a75394c701bf39c1410b1ead /setup.py | |
parent | 7133000f82b79470fa91c42b286fffeeece28631 (diff) |
[pkg] update freeze_deb command
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -105,13 +105,13 @@ class freeze_debianver(Command): # of this file. version_version = '{version}' -version_revisionid = '{version_revision}' +full_revisionid = '{full_revisionid}' """ templatefun = r""" def get_versions(default={}, verbose=False): return {'version': version_version, - 'full-revisionid': version_revisionid} + 'full-revisionid': full_revisionid} """ def initialize_options(self): @@ -128,8 +128,9 @@ def get_versions(default={}, verbose=False): return subst_template = self.template.format( version=VERSION_SHORT, - version_full=VERSION_REVISION) + self.templatefun - with open(versioneer.versionfile_source, 'w') as f: + full_revisionid=VERSION_REVISION) + self.templatefun + versioneer_cfg = versioneer.get_config_from_root('.') + with open(versioneer_cfg.versionfile_source, 'w') as f: f.write(subst_template) |