Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
devflow
Commits
751225ec
Commit
751225ec
authored
Jun 20, 2013
by
Christos Stavrakakis
Browse files
Remove toplevel and pep8 version file
parent
1b7a8ecc
Changes
1
Hide whitespace changes
Inline
Side-by-side
devflow/versioning.py
View file @
751225ec
...
...
@@ -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
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment