Skip to content

Commit

Permalink
Appending current HourMinuteSecond to the development build identifie… (
Browse files Browse the repository at this point in the history
  • Loading branch information
jdye64 authored Feb 10, 2025
1 parent 61ed569 commit efcb7ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/src/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ def get_version():

# Construct the final version string
if release_type == "dev":
# If rev is not specified and defaults to 0 lets create a more meaningful development
# identifier that is pep440 compliant
if int(rev) == 0:
rev = datetime.datetime.now().strftime("%Y%m%d%H%M%S")
final_version = f"{version}.dev{rev}"
elif release_type == "release":
final_version = f"{version}.post{rev}" if int(rev) > 0 else version
Expand Down

0 comments on commit efcb7ae

Please sign in to comment.