Include version info into the router package (#2456)

Signed-off-by: Ata Fatahi <immrata@gmail.com>
Co-authored-by: Byron Hsu <byronhsu1230@gmail.com>
This commit is contained in:
Ata Fatahi
2024-12-11 20:31:20 -05:00
committed by GitHub
parent 2ac36b9a7b
commit 7791fd9948
2 changed files with 7 additions and 0 deletions

View File

@@ -3,3 +3,9 @@ from sglang_router_rs import PolicyType
# no wrapper on policy type => direct export
from .router import Router
__all__ = ["Router", "PolicyType"]
from sglang_router.version import __version__
__all__ += ["__version__"]

View File

@@ -0,0 +1 @@
__version__ = "0.1.0"