Skip to content

Commit

Permalink
Merge pull request #16743 from dannon/package-version-handling
Browse files Browse the repository at this point in the history
Fix package version handling for initial minor releases
  • Loading branch information
martenson authored Oct 9, 2023
2 parents 86db01d + d1c1af7 commit a33ea00
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 a33ea00

Please sign in to comment.