mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-04 03:11:40 +00:00
Add constrained solvePNP strategy (#1682)
Signed-off-by: Jade Turner <spacey-sooty@proton.me> Co-authored-by: Jade Turner <spacey-sooty@proton.me>
This commit is contained in:
@@ -4,7 +4,9 @@ import subprocess
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
gitDescribeResult = (
|
||||
subprocess.check_output(["git", "describe", "--tags", "--match=v*", "--always"])
|
||||
subprocess.check_output(
|
||||
["git", "describe", "--tags", "--match=v*", "--exclude=*rc*", "--always"]
|
||||
)
|
||||
.decode("utf-8")
|
||||
.strip()
|
||||
)
|
||||
@@ -18,7 +20,7 @@ m = re.search(
|
||||
# which should be PEP440 compliant
|
||||
if m:
|
||||
versionString = m.group(0)
|
||||
# Hack -- for strings like v2024.1.1, do NOT add matruity/suffix
|
||||
# Hack -- for strings like v2024.1.1, do NOT add maturity/suffix
|
||||
if len(m.group(2)) > 0:
|
||||
print("using beta group matcher")
|
||||
prefix = m.group(1)
|
||||
|
||||
Reference in New Issue
Block a user