[Chore] Move version tag helper to release scripts (#35196)

This commit is contained in:
Lianmin Zheng
2026-08-18 00:11:12 -07:00
committed by GitHub
parent 5b60b7c651
commit a779a2a2a5
15 changed files with 17 additions and 17 deletions
@@ -6,7 +6,7 @@ from unittest.mock import patch
REPO_ROOT = Path(__file__).resolve().parents[4]
CI_REGISTER_PATH = REPO_ROOT / "python" / "sglang" / "test" / "ci" / "ci_register.py"
VERSION_HELPER_PATH = REPO_ROOT / "python" / "tools" / "get_version_tag.py"
VERSION_HELPER_PATH = REPO_ROOT / "scripts" / "release" / "get_version_tag.py"
PYPROJECT_PATHS = [
REPO_ROOT / "python" / "pyproject.toml",
REPO_ROOT / "python" / "pyproject_cpu.toml",
@@ -16,10 +16,10 @@ PYPROJECT_PATHS = [
REPO_ROOT / "3rdparty" / "amd" / "wheel" / "sglang" / "pyproject.toml",
]
DESCRIBE_COMMAND = (
'git_describe_command = ["python3", "python/tools/get_version_tag.py"]'
'git_describe_command = ["python3", "scripts/release/get_version_tag.py"]'
)
TAG_ONLY_DESCRIBE_COMMAND = (
'git_describe_command = ["python3", "python/tools/get_version_tag.py", '
'git_describe_command = ["python3", "scripts/release/get_version_tag.py", '
'"--tag-only"]'
)
FALLBACK_VERSION = 'fallback_version = "0.0.0.dev0"'