diff --git a/python-sglang.spec b/python-sglang.spec new file mode 100644 index 0000000000000000000000000000000000000000..34dbaaab4ca26a4ad363a75122d59dcdb9c30f99 --- /dev/null +++ b/python-sglang.spec @@ -0,0 +1,180 @@ +%global _empty_manifest_terminate_build 0 +Name: python-sglang +Version: 0.4.6.post5 +Release: 1 +Summary: SGLang is yet another fast serving framework for large language models and vision language models. +License: Apache License +URL: https://github.com/sgl-project/sglang +Source0: https://files.pythonhosted.org/packages/40/1f/3ac1eb0ea3962e0281b368a97b1f85c0735cce31c6a6efb22b1ceb57c160/sglang-0.4.6.post5.tar.gz +BuildArch: noarch + +Requires: (python3-aiohttp) +Requires: (python3-requests) +Requires: (python3-tqdm) +Requires: (python3-numpy) +Requires: (python3-IPython) +Requires: (python3-setproctitle) +Requires: (python3-compressed-tensors) +Requires: (python3-datasets) +Requires: (python3-fastapi) +Requires: (python3-hf_transfer) +Requires: (python3-huggingface_hub) +Requires: (python3-interegular) +Requires: (python3-llguidance<0.8.0 with python3-llguidance>=0.7.11) +Requires: (python3-modelscope) +Requires: (python3-msgspec) +Requires: (python3-ninja) +Requires: (python3-orjson) +Requires: (python3-packaging) +Requires: (python3-partial_json_parser) +Requires: (python3-pillow) +Requires: (python3-prometheus-client>=0.20.0) +Requires: (python3-psutil) +Requires: (python3-pydantic) +Requires: (python3-pynvml) +Requires: (python3-python-multipart) +Requires: (python3-pyzmq>=25.1.2) +Requires: (python3-soundfile==0.13.1) +Requires: (python3-torchao==0.9.0) +Requires: (python3-transformers==4.51.1) +Requires: (python3-uvicorn) +Requires: (python3-uvloop) +Requires: (python3-xgrammar==0.1.19) +Requires: (python3-blobfile==3.0.0) +Requires: (python3-sglang[runtime_common]) +Requires: (python3-sgl-kernel==0.1.4) +Requires: (python3-flashinfer_python==0.2.5) +Requires: (python3-torch==2.6.0) +Requires: (python3-torchvision==0.21.0) +Requires: (python3-cuda-python) +Requires: (python3-outlines<=0.1.11 with python3-outlines>=0.0.44) +Requires: (python3-einops) +Requires: (python3-sglang[runtime_common]) +Requires: (python3-sgl-kernel) +Requires: (python3-torch) +Requires: (python3-torchvision) +Requires: (python3-cuda-python) +Requires: (python3-outlines<=0.1.11 with python3-outlines>=0.0.44) +Requires: (python3-einops) +Requires: (python3-flashinfer_python==0.2.5) +Requires: (python3-sglang[runtime_common]) +Requires: (python3-torch) +Requires: (python3-vllm==0.6.7.dev2) +Requires: (python3-outlines==0.1.11) +Requires: (python3-sglang[runtime_common]) +Requires: (python3-outlines<=0.1.11 with python3-outlines>=0.0.44) +Requires: (python3-sglang[runtime_common]) +Requires: (python3-outlines<=0.1.11 with python3-outlines>=0.0.44) +Requires: (python3-sglang[runtime_common]) +Requires: (python3-outlines<=0.1.11 with python3-outlines>=0.0.44) +Requires: (python3-torch) +Requires: (python3-sglang[runtime_common]) +Requires: (python3-outlines<=0.1.11 with python3-outlines>=0.0.44) +Requires: (python3-openai>=1.0) +Requires: (python3-tiktoken) +Requires: (python3-anthropic>=0.20.0) +Requires: (python3-litellm>=1.0.0) +Requires: (python3-torch_memory_saver>=0.0.4) +Requires: (python3-decord) +Requires: (python3-accelerate) +Requires: (python3-jsonlines) +Requires: (python3-matplotlib) +Requires: (python3-pandas) +Requires: (python3-peft) +Requires: (python3-timm) +Requires: (python3-sentence_transformers) +Requires: (python3-sglang[srt]) +Requires: (python3-sglang[openai]) +Requires: (python3-sglang[anthropic]) +Requires: (python3-sglang[litellm]) +Requires: (python3-sglang[torch_memory_saver]) +Requires: (python3-sglang[decord]) +Requires: (python3-sglang[srt_hip]) +Requires: (python3-sglang[openai]) +Requires: (python3-sglang[anthropic]) +Requires: (python3-sglang[litellm]) +Requires: (python3-sglang[decord]) +Requires: (python3-sglang[srt_xpu]) +Requires: (python3-sglang[openai]) +Requires: (python3-sglang[anthropic]) +Requires: (python3-sglang[litellm]) +Requires: (python3-sglang[decord]) +Requires: (python3-sglang[srt_hpu]) +Requires: (python3-sglang[openai]) +Requires: (python3-sglang[anthropic]) +Requires: (python3-sglang[litellm]) +Requires: (python3-sglang[decord]) +Requires: (python3-sglang[srt_cpu]) +Requires: (python3-sglang[openai]) +Requires: (python3-sglang[anthropic]) +Requires: (python3-sglang[litellm]) +Requires: (python3-sglang[decord]) +Requires: (python3-sglang[srt_npu]) +Requires: (python3-sglang[openai]) +Requires: (python3-sglang[anthropic]) +Requires: (python3-sglang[litellm]) +Requires: (python3-sglang[decord]) +Requires: (python3-sglang[all]) +Requires: (python3-sglang[test]) +Requires: (python3-sglang[all_hip]) +Requires: (python3-sglang[test]) +Requires: (python3-sglang[all_xpu]) +Requires: (python3-sglang[test]) +Requires: (python3-sglang[all_hpu]) +Requires: (python3-sglang[test]) +Requires: (python3-sglang[all_cpu]) +Requires: (python3-sglang[test]) + +%description +SGLang is a fast serving framework for large language models and vision language models. +It makes your interaction with models faster and more controllable by co-designing the backend runtime and frontend language. + +%package -n python3-sglang +Summary: SGLang is yet another fast serving framework for large language models and vision language models. +Provides: python-sglang +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +%description -n python3-sglang +SGLang is a fast serving framework for large language models and vision language models. +It makes your interaction with models faster and more controllable by co-designing the backend runtime and frontend language. + +%prep +%autosetup -n sglang-0.4.6.post5 + +%build +%pyproject_build + +%install +%pyproject_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +touch filelist.lst +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-sglang -f filelist.lst +%{python3_sitelib}/* + +%changelog +* Tue May 27 2025 Python_Bot - 0.4.6.post5-1 +- Package Spec generated diff --git a/sglang-0.4.6.post5.tar.gz b/sglang-0.4.6.post5.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..6bcebb2575e220e7eef17f08e82131bf3d3f16df Binary files /dev/null and b/sglang-0.4.6.post5.tar.gz differ