From 7791fd994847e4e5ef68c79328cf5d665776b808 Mon Sep 17 00:00:00 2001 From: Ata Fatahi Date: Wed, 11 Dec 2024 20:31:20 -0500 Subject: [PATCH] Include version info into the router package (#2456) Signed-off-by: Ata Fatahi Co-authored-by: Byron Hsu --- rust/py_src/sglang_router/__init__.py | 6 ++++++ rust/py_src/sglang_router/version.py | 1 + 2 files changed, 7 insertions(+) create mode 100644 rust/py_src/sglang_router/version.py diff --git a/rust/py_src/sglang_router/__init__.py b/rust/py_src/sglang_router/__init__.py index ec41b5d0c74..285ee173ba9 100644 --- a/rust/py_src/sglang_router/__init__.py +++ b/rust/py_src/sglang_router/__init__.py @@ -3,3 +3,9 @@ # no wrapper on policy type => direct export from .router import Router + +__all__ = ["Router", "PolicyType"] + +from sglang_router.version import __version__ + +__all__ += ["__version__"] diff --git a/rust/py_src/sglang_router/version.py b/rust/py_src/sglang_router/version.py new file mode 100644 index 00000000000..3dc1f76bc69 --- /dev/null +++ b/rust/py_src/sglang_router/version.py @@ -0,0 +1 @@ +__version__ = "0.1.0"