Add a new branch cut GH workflow, and adopt setuptools-scm for version control (#15985)

This commit is contained in:
Kangyan-Zhou
2025-12-29 13:51:21 -08:00
committed by GitHub
parent c2e0913e17
commit 9c4eb46099
13 changed files with 380 additions and 93 deletions

View File

@@ -1,10 +1,10 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
requires = ["setuptools>=61.0", "setuptools-scm>=8.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "sglang"
version = "0.5.6.post2"
dynamic = ["version"]
description = "SGLang is a fast serving framework for large language models and vision language models."
readme = "README.md"
requires-python = ">=3.10"
@@ -168,6 +168,10 @@ exclude = [
"tests*",
]
[tool.setuptools_scm]
root = ".."
version_file = "sglang/_version.py"
[tool.codespell]
ignore-words-list = "ans, als, hel, boostrap, childs, te, vas, hsa, ment"
skip = "*.json,*.jsonl,*.patch,*.txt"

View File

@@ -1,11 +1,11 @@
# https://docs.sglang.io/platforms/cpu_server.html
[build-system]
requires = ["setuptools>=61.0", "wheel"]
requires = ["setuptools>=61.0", "setuptools-scm>=8.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "sglang"
version = "0.5.6.post2"
dynamic = ["version"]
description = "SGLang is a fast serving framework for large language models and vision language models."
readme = "README.md"
requires-python = ">=3.10"
@@ -129,6 +129,10 @@ exclude = [
"tests*",
]
[tool.setuptools_scm]
root = ".."
version_file = "sglang/_version.py"
[tool.codespell]
ignore-words-list = "ans, als, hel, boostrap, childs, te, vas, hsa, ment"
skip = "*.json,*.jsonl,*.patch,*.txt"

View File

@@ -1,10 +1,10 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
requires = ["setuptools>=61.0", "setuptools-scm>=8.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "sglang"
version = "0.5.6.post2"
dynamic = ["version"]
description = "SGLang is a fast serving framework for large language models and vision language models."
readme = "README.md"
requires-python = ">=3.10"
@@ -168,6 +168,10 @@ exclude = [
"tests*",
]
[tool.setuptools_scm]
root = ".."
version_file = "sglang/_version.py"
[tool.codespell]
ignore-words-list = "ans, als, hel, boostrap, childs, te, vas, hsa, ment"
skip = "*.json,*.jsonl,*.patch,*.txt"

View File

@@ -1,10 +1,10 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
requires = ["setuptools>=61.0", "setuptools-scm>=8.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "sglang"
version = "0.5.6.post2"
dynamic = ["version"]
description = "SGLang is a fast serving framework for large language models and vision language models."
readme = "README.md"
requires-python = ">=3.10"
@@ -133,6 +133,10 @@ exclude = [
"tests*",
]
[tool.setuptools_scm]
root = ".."
version_file = "sglang/_version.py"
[tool.codespell]
ignore-words-list = "ans, als, hel, boostrap, childs, te, vas, hsa, ment"
skip = "*.json,*.jsonl,*.patch,*.txt"

View File

@@ -1 +1,6 @@
__version__ = "0.5.6.post2"
try:
from sglang._version import __version__, __version_tuple__
except ImportError:
# Fallback for development without build
__version__ = "0.0.0.dev0"
__version_tuple__ = (0, 0, 0, "dev0")