bump_sglang_version.py 1002 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
#!/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"
    )
13
14
15
16
    parser.add_argument(
        "new_version",
        help="New version (e.g., 0.5.4, 0.5.3rc0, or 0.5.3.post1)",
    )
17
18
19
20
21
22
    args = parser.parse_args()

    version_file = Path("python/sglang/version.py")

    files_to_update = [
        Path("benchmark/deepseek_v3/README.md"),
23
        Path("docker/rocm.Dockerfile"),
24
25
26
27
28
        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"),
29
30
        Path("python/pyproject_cpu.toml"),
        Path("python/pyproject_xpu.toml"),
31
32
33
        Path("python/sglang/version.py"),
    ]

34
    bump_version(args.new_version, version_file, files_to_update)
35
36
37
38


if __name__ == "__main__":
    main()