package created using the webbuild interface [release 1.3.2-1mamba;Tue Jan 20 2026]
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
# python-huggingface-hub
|
||||
|
||||
Client library to download and publish models, datasets and other repos on the huggingface.co hub.
|
||||
|
||||
|
||||
64
python-huggingface-hub.spec
Normal file
64
python-huggingface-hub.spec
Normal file
@@ -0,0 +1,64 @@
|
||||
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
||||
Name: python-huggingface-hub
|
||||
Version: 1.3.2
|
||||
Release: 1mamba
|
||||
Summary: Client library to download and publish models, datasets and other repos on the huggingface.co hub
|
||||
Group: System/Libraries
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan@openmamba.org>
|
||||
URL: https://github.com/huggingface/huggingface_hub
|
||||
Source: https://pypi.debian.net/huggingface-hub/huggingface_hub-%{version}.tar.gz
|
||||
License: Apache License 2.0
|
||||
BuildArch: noarch
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: libpython311-devel
|
||||
BuildRequires: python3.11dist(filelock)
|
||||
BuildRequires: python3.11dist(fsspec)
|
||||
BuildRequires: python3.11dist(hf-xet)
|
||||
BuildRequires: python3.11dist(httpx)
|
||||
BuildRequires: python3.11dist(packaging)
|
||||
BuildRequires: python3.11dist(pyyaml)
|
||||
BuildRequires: python3.11dist(shellingham)
|
||||
BuildRequires: python3.11dist(tqdm)
|
||||
BuildRequires: python3.11dist(typer-slim)
|
||||
BuildRequires: python3.11dist(typing-extensions)
|
||||
## AUTOBUILDREQ-END
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%if 0%{?with_pyver}
|
||||
%pyver_package
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -n huggingface_hub-%{version}
|
||||
|
||||
%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}/hf
|
||||
%{_bindir}/tiny-agents
|
||||
%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.3.2-1mamba
|
||||
- package created using the webbuild interface
|
||||
Reference in New Issue
Block a user