2.2 KiB
2.2 KiB
Release Scripts
This directory contains scripts to automate version bumping for SGLang releases.
Scripts
bump_sglang_version.py
Updates SGLang version across all relevant files following the pattern from PR #10468.
Usage:
python scripts/release/bump_sglang_version.py 0.5.3rc0
Files updated:
Makefilebenchmark/deepseek_v3/README.mddocker/Dockerfile.rocmdocs/get_started/install.mddocs/platforms/amd_gpu.mddocs/platforms/ascend_npu.mdpython/pyproject.tomlpython/pyproject_other.tomlpython/sglang/version.py
bump_kernel_version.py
Updates sgl-kernel version across all relevant files following the pattern from PR #10732.
Usage:
python scripts/release/bump_kernel_version.py 0.3.12
Files updated:
sgl-kernel/pyproject.tomlsgl-kernel/pyproject_cpu.tomlsgl-kernel/pyproject_rocm.tomlsgl-kernel/python/sgl_kernel/version.py
Manual Testing Instructions
Test SGLang Version Bump
-
Run the script:
python scripts/release/bump_sglang_version.py 0.5.4rc0 -
Verify changes with git diff:
git diff -
Check specific files contain the new version:
grep -r "0.5.4rc0" python/sglang/version.py grep -r "0.5.4rc0" python/pyproject.toml grep -r "0.5.4rc0" docs/get_started/install.md -
Reset changes (if testing):
git checkout .
Test Kernel Version Bump
-
Run the script:
python scripts/release/bump_kernel_version.py 0.3.13 -
Verify changes with git diff:
git diff -
Check specific files contain the new version:
grep -r "0.3.13" sgl-kernel/python/sgl_kernel/version.py grep -r "0.3.13" sgl-kernel/pyproject.toml -
Reset changes (if testing):
git checkout .
Version Format Validation
- SGLang versions:
X.Y.ZorX.Y.ZrcN(e.g.,0.5.3or0.5.3rc0) - Kernel versions:
X.Y.Z(e.g.,0.3.12)
The scripts will validate the version format and exit with an error if invalid.