summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2016-03-28 12:25:29 -0400
committerKali Kaneko <kali@leap.se>2016-03-28 15:10:38 -0400
commit054ceb6225ef9c32f3d24870bf3e8085bbe0c432 (patch)
treed1b24de601067ec5a75394c701bf39c1410b1ead /setup.py
parent7133000f82b79470fa91c42b286fffeeece28631 (diff)
[pkg] update freeze_deb command
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index fc9c36c9..15327bf1 100755
--- a/setup.py
+++ b/setup.py
@@ -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)