From 90f2a4c754fe8e78a8d4fb54466eb17e0209a627 Mon Sep 17 00:00:00 2001 From: Chris Gerth Date: Thu, 14 Dec 2023 22:28:26 -0600 Subject: [PATCH] i am asking you once again to run wpiformat --- photon-lib/py/setup.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/photon-lib/py/setup.py b/photon-lib/py/setup.py index eab00f28b3..b1c3a06133 100644 --- a/photon-lib/py/setup.py +++ b/photon-lib/py/setup.py @@ -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 @@ -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