[fix]: update self-referencing extras from sglang to sglang-kt

This commit is contained in:
djw
2026-03-04 08:53:14 +00:00
parent 6b8b5f4649
commit a45b8d6976
2 changed files with 22 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "sglang-kt"
version = "0.5.2"
dynamic = ["version"]
description = "SGLang is a fast serving framework for large language models and vision language models."
readme = "README.md"
requires-python = ">=3.10"
@@ -138,11 +138,11 @@ test = [
"tabulate",
]
dev = ["sglang[test]"]
dev = ["sglang-kt[test]"]
all = [
"sglang[diffusion]",
"sglang[tracing]",
"sglang-kt[diffusion]",
"sglang-kt[tracing]",
]
[tool.uv.extra-build-dependencies]
@@ -184,6 +184,6 @@ exclude = [
"tests*",
]
# sglang-kt uses static versioning (independent from upstream sglang).
# To release a new version: update `version` in [project] above.
# Version scheme: MAJOR.MINOR.PATCH (e.g., 0.5.2 → 0.5.3 → 0.6.0)
# sglang-kt version is injected at build time via SGLANG_KT_VERSION env var.
# When built from ktransformers (install.sh or CI), it reads version.py automatically.
# Fallback: setup.py defaults to "0.0.0.dev0" if env var is not set.

15
python/setup.py Normal file
View File

@@ -0,0 +1,15 @@
"""
sglang-kt setup.py — provides version at build time.
Version is read from the SGLANG_KT_VERSION environment variable,
which is set by ktransformers' install.sh and CI workflows
(sourced from ktransformers/version.py).
When building standalone (without the env var), falls back to "0.0.0.dev0".
"""
import os
from setuptools import setup
version = os.environ.get("SGLANG_KT_VERSION", "0.0.0.dev0")
setup(version=version)