Skip to content

Commit

Permalink
Overriding the _version.py in order to get the current version deployed.
Browse files Browse the repository at this point in the history
  • Loading branch information
danalex97 committed Aug 3, 2017
1 parent 1fc9def commit c047af1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions players/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,10 @@ def get_versions():

try:
pieces = git_pieces_from_vcs(cfg.tag_prefix, root, verbose)

#Overriding this so we can get the right version on staging
pieces['distance'] = 556

return render(pieces, cfg.style)
except NotThisMethod:
pass
Expand All @@ -458,3 +462,5 @@ def get_versions():
return {"version": "0+unknown", "full-revisionid": None,
"dirty": None,
"error": "unable to compute version"}

# print(get_versions())

0 comments on commit c047af1

Please sign in to comment.