Skip to content

Commit 164396d

Browse files
rwgkcursoragent
andauthored
[REL] Preserve a/b suffixes in tag_regex (#1627)
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 <cursoragent@cursor.com>
1 parent 73725e6 commit 164396d

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

cuda_bindings/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,6 @@ xfail_strict = true
8989
[tool.setuptools_scm]
9090
root = ".."
9191
version_file = "cuda/bindings/_version.py"
92-
# We deliberately do not want to include the version suffixes (a/b/rc) in cuda-bindings versioning
93-
tag_regex = "^(?P<version>v\\d+\\.\\d+\\.\\d+)"
92+
# Preserve a/b pre-release suffixes, but intentionally strip rc suffixes.
93+
tag_regex = "^(?P<version>v\\d+\\.\\d+\\.\\d+(?:[ab]\\d+)?)"
9494
git_describe_command = ["git", "describe", "--dirty", "--tags", "--long", "--match", "v*[0-9]*"]

cuda_core/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ readme = { file = ["DESCRIPTION.rst"], content-type = "text/x-rst" }
8686
[tool.setuptools_scm]
8787
root = ".."
8888
version_file = "cuda/core/_version.py"
89-
# We deliberately do not want to include the version suffixes (a/b/rc) in cuda-core versioning
90-
tag_regex = "^cuda-core-(?P<version>v\\d+\\.\\d+\\.\\d+)"
89+
# Preserve a/b pre-release suffixes, but intentionally strip rc suffixes.
90+
tag_regex = "^cuda-core-(?P<version>v\\d+\\.\\d+\\.\\d+(?:[ab]\\d+)?)"
9191
git_describe_command = ["git", "describe", "--dirty", "--tags", "--long", "--match", "cuda-core-v*[0-9]*"]
9292

9393
[tool.cibuildwheel]

cuda_pathfinder/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ build-backend = "setuptools.build_meta"
7878
[tool.setuptools_scm]
7979
root = ".."
8080
version_file = "cuda/pathfinder/_version.py"
81-
# We deliberately do not want to include the version suffixes (a/b/rc) in cuda-pathfinder versioning
82-
tag_regex = "^cuda-pathfinder-(?P<version>v\\d+\\.\\d+\\.\\d+)"
81+
# Preserve a/b pre-release suffixes, but intentionally strip rc suffixes.
82+
tag_regex = "^cuda-pathfinder-(?P<version>v\\d+\\.\\d+\\.\\d+(?:[ab]\\d+)?)"
8383
git_describe_command = [ "git", "describe", "--dirty", "--tags", "--long", "--match", "cuda-pathfinder-v*[0-9]*" ]
8484

8585
[tool.pytest.ini_options]

cuda_python/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
version = get_version(
1212
root="..",
1313
relative_to=__file__,
14-
# We deliberately do not want to include the version suffixes (a/b/rc) in cuda-python versioning
15-
tag_regex="^(?P<version>v\\d+\\.\\d+\\.\\d+)",
14+
# Preserve a/b pre-release suffixes, but intentionally strip rc suffixes.
15+
tag_regex="^(?P<version>v\\d+\\.\\d+\\.\\d+(?:[ab]\\d+)?)",
1616
git_describe_command=["git", "describe", "--dirty", "--tags", "--long", "--match", "v*[0-9]*"],
1717
)
1818

0 commit comments

Comments
 (0)