Skip to content

Commit

Permalink
bump-to-dev-version: comply with PEP 440
Browse files Browse the repository at this point in the history
  • Loading branch information
zmwangx committed Nov 3, 2018
1 parent ab07687 commit f4d22e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/bump-to-dev-version
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def main():
m = re.match(r"^(?P<trunk>.*?)(?P<last>\d+)$", current_version)
if not m:
sys.exit(f"cannot parse version number: {version}")
next_dev_version = m["trunk"] + str(int(m["last"]) + 1) + "dev"
next_dev_version = m["trunk"] + str(int(m["last"]) + 1) + ".dev0"
with open(VERSION_PY, "w", encoding="utf-8") as fp:
print(f'__version__ = "{next_dev_version}"', file=fp)
print(f"version bumped to {next_dev_version}", file=sys.stderr)
Expand Down

0 comments on commit f4d22e3

Please sign in to comment.