Skip to content

Commit fcee645

Browse files
committed
fix(build): add semantic version tag regex to setuptools_scm config
- Add tag_regex pattern to properly parse version tags starting with 'v' prefix. - This ensures setuptools_scm correctly extracts version numbers from git tags like v1.2.3, preventing build failures in CI/CD pipelines and ignores other tags.
1 parent fe6f3ba commit fcee645

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ include-package-data = false
159159
version_file = "sqlmesh/_version.py"
160160
fallback_version = "0.0.0"
161161
local_scheme = "no-local-version"
162+
tag_regex = "^v(?P<version>[0-9]+\\.[0-9]+\\.[0-9]+)"
162163

163164
[tool.setuptools.packages.find]
164165
include = ["sqlmesh", "sqlmesh.*", "web*"]

0 commit comments

Comments
 (0)