package created using the webbuild interface [release 0.89.0-1mamba;Sun Apr 05 2026]
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
# python-anthropic
|
||||
|
||||
The official Python library for the anthropic API.
|
||||
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
||||
Name: python-anthropic
|
||||
Version: 0.89.0
|
||||
Release: 1mamba
|
||||
Summary: The official Python library for the anthropic API
|
||||
Group: System/Libraries
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan@openmamba.org>
|
||||
URL: https://github.com/anthropics/anthropic-sdk-python
|
||||
Source: https://pypi.debian.net/anthropic/anthropic-%{version}.tar.gz
|
||||
License: MIT
|
||||
BuildArch: noarch
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: (python3.11dist(anyio) < 5~~ with python3.11dist(anyio) >= 3.5)
|
||||
BuildRequires: (python3.11dist(distro) < 2~~ with python3.11dist(distro) >= 1.7)
|
||||
BuildRequires: (python3.11dist(docstring-parser) < 1~~ with python3.11dist(docstring-parser) >= 0.15)
|
||||
BuildRequires: (python3.11dist(httpx) < 1~~ with python3.11dist(httpx) >= 0.25)
|
||||
BuildRequires: (python3.11dist(jiter) < 1~~ with python3.11dist(jiter) >= 0.4)
|
||||
BuildRequires: (python3.11dist(pydantic) < 3~~ with python3.11dist(pydantic) >= 1.9)
|
||||
BuildRequires: (python3.11dist(typing-extensions) < 5~~ with python3.11dist(typing-extensions) >= 4.14)
|
||||
BuildRequires: libpython311-devel
|
||||
BuildRequires: python3.11dist(sniffio)
|
||||
## AUTOBUILDREQ-END
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%if 0%{?with_pyver}
|
||||
%pyver_package
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -n anthropic-%{version}
|
||||
sed -i "s|hatchling==|hatchling>=|" 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)
|
||||
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
||||
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
||||
%dir %{python_sitelib}/%{pkgname}
|
||||
%{python_sitelib}/%{pkgname}/*
|
||||
%doc LICENSE
|
||||
|
||||
%changelog
|
||||
* Sun Apr 05 2026 Silvan Calarco <silvan@openmamba.org> 0.89.0-1mamba
|
||||
- package created using the webbuild interface
|
||||
Reference in New Issue
Block a user