Commit 751225ec authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

Remove toplevel and pep8 version file

parent 1b7a8ecc
......@@ -362,12 +362,17 @@ def update_version():
mode = utils.get_build_mode()
version = python_version(b, v, mode)
vcs_info_dict = dict(v._asdict()) # pylint: disable=W0212
content = """__version__ = "%(version)s"
vcs_info = """{
'branch': '%s',
'revid': '%s',
'revno': %s}""" % (v.branch, v.revid, v.revno)
content =\
"""__version__ = "%(version)s"
__version_info__ = %(version_info)s
__version_vcs_info__ = %(vcs_info)s
__version_user_info__ = "%(user_info)s"
""" % dict(version=version, version_info=version.split("."),
vcs_info=pprint.PrettyPrinter().pformat(vcs_info_dict),
vcs_info=vcs_info,
user_info=user_info())
for _pkg_name, pkg_info in config['packages'].items():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment