From e828410abd6d39db3bd63afb853026d65f4495b0 Mon Sep 17 00:00:00 2001 From: Yannick Calvino Alonso Date: Mon, 2 Mar 2026 10:26:14 +0100 Subject: [PATCH 1/2] excludes benchmark_tmc tagname non-compliant with `setuptools` version-names --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index baef71b..17cdf9a 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ def get_git_version_hash(): Thanks to https://gist.github.com/nloadholtes/07a1716a89b53119021592a1d2b56db8 """ try: - p = subprocess.Popen(["git", "describe", "--tags", "--dirty", "--always"], stdout=subprocess.PIPE) + p = subprocess.Popen(["git", "describe", "--tags", "--exclude=TMC-benchmark-v0", "--dirty", "--always"], stdout=subprocess.PIPE) except OSError: return VERSION + "+unknown" version = p.communicate()[0] From 36a44c01d3f4f4d410a605ac8c6ef7deed07fdab Mon Sep 17 00:00:00 2001 From: calvinoY Date: Mon, 2 Mar 2026 17:46:27 +0100 Subject: [PATCH 2/2] only includes tags with compliant version-string --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 17cdf9a..5a0d54c 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ def get_git_version_hash(): Thanks to https://gist.github.com/nloadholtes/07a1716a89b53119021592a1d2b56db8 """ try: - p = subprocess.Popen(["git", "describe", "--tags", "--exclude=TMC-benchmark-v0", "--dirty", "--always"], stdout=subprocess.PIPE) + p = subprocess.Popen(["git", "describe", "--tags", "--match 'v[0-9]*'", "--dirty", "--always"], stdout=subprocess.PIPE) except OSError: return VERSION + "+unknown" version = p.communicate()[0]