[Fix] Fix setuptools-scm version resolution for rc tags (#22165)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Baizhou Zhang <sobereddiezhang@gmail.com>
This commit is contained in:
Kangyan-Zhou
2026-04-05 16:55:32 -07:00
committed by GitHub
co-authored by Claude Opus 4.6 Baizhou Zhang
parent 30ba1f78b0
commit 93109cc89b
9 changed files with 179 additions and 16 deletions
+1 -1
View File
@@ -134,6 +134,6 @@ exclude = [
[tool.setuptools_scm]
root = ".."
version_file = "sglang/_version.py"
git_describe_command = ["bash", "-c", "git tag --list --sort=-version:refname 'v*.*.*' | head -1 | xargs git describe --tags --long"]
git_describe_command = ["python3", "python/tools/get_version_tag.py", "--tag-only"]
# Allow editable installs even when .git metadata is not available.
fallback_version = "0.0.0.dev0"