feat: support sgl-kernel pypi (#2302)

This commit is contained in:
Yineng Zhang
2024-12-01 20:11:21 +08:00
committed by GitHub
parent 3dbd73d319
commit 5c91a315d7
5 changed files with 240 additions and 0 deletions

37
sgl-kernel/pyproject.toml Normal file
View File

@@ -0,0 +1,37 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "sgl-kernel"
version = "0.0.1"
description = "Kernel Library for SGLang"
readme = "README.md"
requires-python = ">=3.8"
license = { file = "LICENSE" }
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
]
dependencies = ["numpy"]
[project.optional-dependencies]
srt = ["torch"]
all = ["sgl-kernel[srt]"]
[project.urls]
"Homepage" = "https://github.com/sgl-project/sglang"
"Bug Tracker" = "https://github.com/sgl-project/sglang/issues"
[tool.setuptools.packages.find]
exclude = [
"dist*",
"tests*",
]
[tool.wheel]
exclude = [
"dist*",
"tests*",
]