Skip to content

Commit

Permalink
Fix package version handling for initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Sep 26, 2023
1 parent c2eb7d5 commit 1a7a2bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/build_scripts/new_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ def main(argv):
if not DEV_RELEASE:
# Discard epoch, release numbers after micro, pre-, post-, dev-release segments and local version
new_version_tuple = list(version_obj.release[:3])
new_version_tuple[2] += 1
if len(new_version_tuple) < 3:
new_version_tuple.append(0)
else:
new_version_tuple[2] += 1
new_version = ".".join(map(str, new_version_tuple))
else:
dev_number = version_obj.dev
Expand Down

0 comments on commit 1a7a2bf

Please sign in to comment.