Skip to content

Commit

Permalink
fix release script to blank out lower version segments.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjw296 committed Jan 13, 2020
1 parent 28e6ddd commit dd60ab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release.py
Expand Up @@ -12,7 +12,7 @@

def incremented_version(version_info, type_):
type_index = VERSION_TYPES.index(type_)
version_info = tuple(e+(1 if i==type_index else 0)
version_info = tuple(0 if i>type_index else (e+(1 if i==type_index else 0))
for i, e in enumerate(version_info))
return '.'.join(str(p) for p in version_info)

Expand Down

0 comments on commit dd60ab8

Please sign in to comment.