Created
December 30, 2018 10:25
-
-
Save jeffwillette/02c021e10c1fc4c5e282e5624917854e to your computer and use it in GitHub Desktop.
increment version number with python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
version = sys.argv[1] | |
front = ".".join(version.split(".")[:-1]) | |
last = int(version.split(".")[-1]) + 1 | |
print(front + "." + str(last)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment