Create two new GH workflows to automatically bump SGLang and Kernel version (#10996)

This commit is contained in:
Kangyan-Zhou
2025-10-05 18:14:05 -07:00
committed by GitHub
parent 6b30e097ab
commit a20fc7b7dc
6 changed files with 429 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
#!/usr/bin/env python3
import argparse
from pathlib import Path
from utils import bump_version
def main():
parser = argparse.ArgumentParser(
description="Bump SGLang version across all relevant files"
)
parser.add_argument("new_version", help="New version (e.g., 0.5.3 or 0.5.3rc0)")
args = parser.parse_args()
version_file = Path("python/sglang/version.py")
files_to_update = [
Path("Makefile"),
Path("benchmark/deepseek_v3/README.md"),
Path("docker/Dockerfile.rocm"),
Path("docs/get_started/install.md"),
Path("docs/platforms/amd_gpu.md"),
Path("docs/platforms/ascend_npu.md"),
Path("python/pyproject.toml"),
Path("python/pyproject_other.toml"),
Path("python/sglang/version.py"),
]
bump_version(args.new_version, version_file, files_to_update, "sglang")
if __name__ == "__main__":
main()