From ac89191c4441cc3614feb223879e349813f49fdf Mon Sep 17 00:00:00 2001 From: Kolin Guo Date: Thu, 4 Apr 2024 11:10:19 -0700 Subject: [PATCH] Match only v* tags when building docs --- docs/source/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index a433374..eb5abea 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -13,7 +13,8 @@ copyright = f"2021-2024, {author}. All rights reserved." release = "+git.".join( re.findall( - "^v(.*)-[0-9]+-g(.*)", os.popen("git describe --abbrev=8 --tags").read().strip() + "^v(.*)-[0-9]+-g(.*)", + os.popen("git describe --abbrev=8 --tags --match v*").read().strip(), )[0] ) # tag-commithash version = release