setup router python binding ci (#1999)

This commit is contained in:
Byron Hsu
2024-11-11 12:19:32 -08:00
committed by GitHub
parent ddeb9d42de
commit 00ffde206f
13 changed files with 254 additions and 161 deletions

View File

@@ -1,15 +1,25 @@
[build-system]
requires = ["maturin>=1.5.1,<2.0"]
build-backend = "maturin"
requires = ["setuptools>=45", "wheel", "setuptools-rust>=1.5.2"]
build-backend = "setuptools.build_meta"
[project]
name = "sglang_router"
requires-python = ">=3.9"
name = "sglang-router"
version = "0.0.2"
description = "SGLang router is a standalone module implemented in Rust to achieve data parallelism across SGLang instances."
authors = [{name = "Byron Hsu", email = "byronhsu1230@gmail.com"}]
requires-python = ">=3.8"
readme = "README.md"
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Rust",
"Programming Language :: Python :: 3",
]
dynamic = ["version"]
[tool.maturin]
bindings = 'pyo3'
# https://github.com/PyO3/setuptools-rust?tab=readme-ov-file
[tool.setuptools.packages]
find = { where = ["py_src"] }
[[tool.setuptools-rust.ext-modules]]
target = "sglang_router_rs"
path = "Cargo.toml"
binding = "PyO3"