Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljoseph committed Oct 16, 2013
1 parent daeda05 commit b0c5204
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions changes/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,4 @@ def extract(dictionary, keys):
)


def increment(version, major=False, minor=False, patch=True):
"""
Increment a semantic version
:param version: str of the version to increment
:param major: bool specifying major level version increment
:param minor: bool specifying minor level version increment
:param patch: bool specifying patch level version increment
:return: str of the incremented version
"""
version = semantic_version.Version(version)
if major:
version.major += 1
version.minor = 0
version.patch = 0
elif minor:
version.minor += 1
version.patch = 0
elif patch:
version.patch += 1

return str(version)

0 comments on commit b0c5204

Please sign in to comment.