From 3942d1963d7e78ff4723a3528584a7a6915ea096 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 13 Feb 2026 12:29:05 -0800 Subject: [PATCH] [REL] Preserve a/b suffixes in tag_regex Update setuptools-scm tag_regex patterns to capture a/b pre-release suffixes in cuda-bindings, cuda-core, cuda-pathfinder, and cuda-python. Co-authored-by: Cursor --- cuda_bindings/pyproject.toml | 4 ++-- cuda_core/pyproject.toml | 4 ++-- cuda_pathfinder/pyproject.toml | 4 ++-- cuda_python/setup.py | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cuda_bindings/pyproject.toml b/cuda_bindings/pyproject.toml index 40ced6850c..ecbb68a1d9 100644 --- a/cuda_bindings/pyproject.toml +++ b/cuda_bindings/pyproject.toml @@ -89,6 +89,6 @@ xfail_strict = true [tool.setuptools_scm] root = ".." version_file = "cuda/bindings/_version.py" -# We deliberately do not want to include the version suffixes (a/b/rc) in cuda-bindings versioning -tag_regex = "^(?Pv\\d+\\.\\d+\\.\\d+)" +# Preserve a/b pre-release suffixes, but intentionally strip rc suffixes. +tag_regex = "^(?Pv\\d+\\.\\d+\\.\\d+(?:[ab]\\d+)?)" git_describe_command = ["git", "describe", "--dirty", "--tags", "--long", "--match", "v*[0-9]*"] diff --git a/cuda_core/pyproject.toml b/cuda_core/pyproject.toml index 2078187a63..5860db17ef 100644 --- a/cuda_core/pyproject.toml +++ b/cuda_core/pyproject.toml @@ -86,8 +86,8 @@ readme = { file = ["DESCRIPTION.rst"], content-type = "text/x-rst" } [tool.setuptools_scm] root = ".." version_file = "cuda/core/_version.py" -# We deliberately do not want to include the version suffixes (a/b/rc) in cuda-core versioning -tag_regex = "^cuda-core-(?Pv\\d+\\.\\d+\\.\\d+)" +# Preserve a/b pre-release suffixes, but intentionally strip rc suffixes. +tag_regex = "^cuda-core-(?Pv\\d+\\.\\d+\\.\\d+(?:[ab]\\d+)?)" git_describe_command = ["git", "describe", "--dirty", "--tags", "--long", "--match", "cuda-core-v*[0-9]*"] [tool.cibuildwheel] diff --git a/cuda_pathfinder/pyproject.toml b/cuda_pathfinder/pyproject.toml index 68f6f67f49..c92becba5b 100644 --- a/cuda_pathfinder/pyproject.toml +++ b/cuda_pathfinder/pyproject.toml @@ -77,8 +77,8 @@ build-backend = "setuptools.build_meta" [tool.setuptools_scm] root = ".." version_file = "cuda/pathfinder/_version.py" -# We deliberately do not want to include the version suffixes (a/b/rc) in cuda-pathfinder versioning -tag_regex = "^cuda-pathfinder-(?Pv\\d+\\.\\d+\\.\\d+)" +# Preserve a/b pre-release suffixes, but intentionally strip rc suffixes. +tag_regex = "^cuda-pathfinder-(?Pv\\d+\\.\\d+\\.\\d+(?:[ab]\\d+)?)" git_describe_command = [ "git", "describe", "--dirty", "--tags", "--long", "--match", "cuda-pathfinder-v*[0-9]*" ] [tool.pytest.ini_options] diff --git a/cuda_python/setup.py b/cuda_python/setup.py index a1a70d4076..565ed34826 100644 --- a/cuda_python/setup.py +++ b/cuda_python/setup.py @@ -11,8 +11,8 @@ version = get_version( root="..", relative_to=__file__, - # We deliberately do not want to include the version suffixes (a/b/rc) in cuda-python versioning - tag_regex="^(?Pv\\d+\\.\\d+\\.\\d+)", + # Preserve a/b pre-release suffixes, but intentionally strip rc suffixes. + tag_regex="^(?Pv\\d+\\.\\d+\\.\\d+(?:[ab]\\d+)?)", git_describe_command=["git", "describe", "--dirty", "--tags", "--long", "--match", "v*[0-9]*"], )