Skip to content

Commit

Permalink
tools/helper: accept minor == '0' in release version
Browse files Browse the repository at this point in the history
We have been pushing releases with minor version set to 0 since October.
  • Loading branch information
goneri committed Jan 9, 2025
1 parent 90dce87 commit 1eda808
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions tools/helper
Original file line number Diff line number Diff line change
Expand Up @@ -83,22 +83,6 @@ def cli() -> None:
)
logging.error(msg)
sys.exit(2)
if version_info[1] % 2 == 0:
# if the second segment of version_info is equal to 12 (December), increment the first segment (year) and set the second segment to 1 (January)
if version_info[1] == 12:
version_info[0] += 1
version_info[1] = 1
# otherwise, increment the second segment of version_info to point to the next month with an odd number
else:
version_info[1] += 1
else:
msg = (
f"Last git tag ({tag}) had a MINOR version number ({version_info[1]}) that was odd."
" Odd numbers are reserved for pre-release versions. Remove the tag and try again."
)
logging.error(msg)
sys.exit(2)
# determine the PATCH value, which is the time passed between last tag and last commit
try:
last_tag_timestamp = int(
subprocess.run(
Expand Down

0 comments on commit 1eda808

Please sign in to comment.