package created using the webbuild interface [release 1.81.0-1mamba;Tue Jan 20 2026]
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
# python-litellm
|
||||
|
||||
Library to easily interface with LLM API providers.
|
||||
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
||||
Name: python-litellm
|
||||
Version: 1.81.0
|
||||
Release: 1mamba
|
||||
Summary: Library to easily interface with LLM API providers
|
||||
Group: System/Libraries
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan@openmamba.org>
|
||||
URL: https://www.litellm.ai/
|
||||
Source: https://pypi.debian.net/litellm/litellm-%{version}.tar.gz
|
||||
License: MIT
|
||||
BuildArch: noarch
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: (python3.11dist(grpcio) < 1.68 or python3.11dist(grpcio) > 1.69)
|
||||
BuildRequires: (python3.11dist(grpcio) < 1.69 or python3.11dist(grpcio) > 1.70)
|
||||
BuildRequires: (python3.11dist(grpcio) < 1.70 or python3.11dist(grpcio) > 1.71)
|
||||
BuildRequires: (python3.11dist(grpcio) < 1.71 or python3.11dist(grpcio) > 1.71)
|
||||
BuildRequires: (python3.11dist(grpcio) < 1.71.1 or python3.11dist(grpcio) > 1.71.1)
|
||||
BuildRequires: (python3.11dist(grpcio) < 1.72 or python3.11dist(grpcio) > 1.72)
|
||||
BuildRequires: (python3.11dist(grpcio) < 1.72.1 or python3.11dist(grpcio) > 1.72.1)
|
||||
BuildRequires: (python3.11dist(grpcio) < 1.73 or python3.11dist(grpcio) > 1.73)
|
||||
BuildRequires: libpython311-devel
|
||||
BuildRequires: python3.11dist(aiohttp)
|
||||
BuildRequires: python3.11dist(click)
|
||||
BuildRequires: python3.11dist(fastuuid)
|
||||
BuildRequires: python3.11dist(grpcio)
|
||||
BuildRequires: python3.11dist(httpx)
|
||||
BuildRequires: python3.11dist(importlib-metadata)
|
||||
BuildRequires: python3.11dist(jinja2)
|
||||
BuildRequires: python3.11dist(jsonschema)
|
||||
BuildRequires: python3.11dist(openai)
|
||||
BuildRequires: python3.11dist(pydantic)
|
||||
BuildRequires: python3.11dist(python-dotenv)
|
||||
BuildRequires: python3.11dist(tiktoken)
|
||||
BuildRequires: python3.11dist(tokenizers)
|
||||
## AUTOBUILDREQ-END
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%if 0%{?with_pyver}
|
||||
%pyver_package
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -n litellm-%{version}
|
||||
sed -i 's|certifi = .*|certifi = ">=2023"|' pyproject.toml
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
||||
|
||||
#%if "%{?with_pyver}" != "3"
|
||||
## Rename any conflicting file outside of python site packages tree
|
||||
#for f in %{_bindir}/pdm; do
|
||||
# mv %{buildroot}${f}{,-%{?pyappend}}
|
||||
#done
|
||||
#%endif
|
||||
|
||||
%files %{?pyappend}
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/litellm
|
||||
%{_bindir}/litellm-proxy
|
||||
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
||||
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
||||
%dir %{python_sitelib}/%{pkgname}
|
||||
%{python_sitelib}/%{pkgname}/*
|
||||
%doc LICENSE
|
||||
|
||||
%changelog
|
||||
* Tue Jan 20 2026 Silvan Calarco <silvan@openmamba.org> 1.81.0-1mamba
|
||||
- package created using the webbuild interface
|
||||
Reference in New Issue
Block a user