Skip to content

Commit

Permalink
i am asking you once again to run wpiformat
Browse files Browse the repository at this point in the history
  • Loading branch information
gerth2 committed Dec 15, 2023
1 parent e87c5d9 commit 90f2a4c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions photon-lib/py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
.strip()
)

m = re.search(r"(v[0-9]{4}\.[0-9]{1}\.[0-9]{1})-?((?:beta)?(?:alpha)?)-?([0-9\.]*)", gitDescribeResult)
m = re.search(
r"(v[0-9]{4}\.[0-9]{1}\.[0-9]{1})-?((?:beta)?(?:alpha)?)-?([0-9\.]*)",
gitDescribeResult,
)

# Extract the first portion of the git describe result
# which should be PEP440 compliant
Expand All @@ -17,8 +20,8 @@
maturity = m.group(2)
suffix = m.group(3).replace(".", "")
versionString = f"{prefix}.{maturity}.{suffix}"


else:
print("Warning, no valid version found")
versionString = gitDescribeResult
Expand Down

0 comments on commit 90f2a4c

Please sign in to comment.