Skip to content

Commit

Permalink
Import py-huggingface-hub-0.26.1 as wip/py-huggingface-hub
Browse files Browse the repository at this point in the history
The huggingface_hub library allows you to interact with the Hugging
Face Hub, a machine learning platform for creators and collaborators.
Discover pre-trained models and datasets for your projects or play with
the hundreds of machine learning apps hosted on the Hub. You can also
create and share your own models and datasets with the community. The
huggingface_hub library provides a simple way to do all these things
with Python.
  • Loading branch information
msk committed Nov 29, 2024
1 parent 49f0b6b commit 7351d5f
Show file tree
Hide file tree
Showing 7 changed files with 392 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3903,6 +3903,7 @@ SUBDIR+= py-htseq
SUBDIR+= py-http-prompt
SUBDIR+= py-httpie-jwt-auth
SUBDIR+= py-hug
SUBDIR+= py-huggingface-hub
SUBDIR+= py-hugo
SUBDIR+= py-hvac
SUBDIR+= py-hybridlfpy
Expand Down
1 change: 1 addition & 0 deletions py-huggingface-hub/ALTERNATIVES
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin/huggingface-cli @PREFIX@/bin/huggingface-cli-@PYVERSSUFFIX@
9 changes: 9 additions & 0 deletions py-huggingface-hub/COMMIT_MSG
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
net/py-huggingface-hub: Add py-huggingface-hub 0.26.1

The huggingface_hub library allows you to interact with the Hugging
Face Hub, a machine learning platform for creators and collaborators.
Discover pre-trained models and datasets for your projects or play with
the hundreds of machine learning apps hosted on the Hub. You can also
create and share your own models and datasets with the community. The
huggingface_hub library provides a simple way to do all these things
with Python.
7 changes: 7 additions & 0 deletions py-huggingface-hub/DESCR
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
The huggingface_hub library allows you to interact with the Hugging
Face Hub, a machine learning platform for creators and collaborators.
Discover pre-trained models and datasets for your projects or play with
the hundreds of machine learning apps hosted on the Hub. You can also
create and share your own models and datasets with the community. The
huggingface_hub library provides a simple way to do all these things
with Python.
32 changes: 32 additions & 0 deletions py-huggingface-hub/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# $NetBSD$

DISTNAME= huggingface_hub-0.26.1
PKGNAME= ${PYPKGPREFIX:S/_/-/}-${DISTNAME}
CATEGORIES= python
MASTER_SITES= ${MASTER_SITE_PYPI:=h/huggingface-hub/}

MAINTAINER= minskim@NetBSD.org
HOMEPAGE= https://huggingface.co/docs/huggingface_hub
COMMENT= The official Python client for the Huggingface Hub
LICENSE= apache-2.0

TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
DEPENDS+= ${PYPKGPREFIX}-filelock-[0-9]*:../../devel/py-filelock
DEPENDS+= ${PYPKGPREFIX}-fsspec>=2023.5.0:../../sysutils/py-fsspec
DEPENDS+= ${PYPKGPREFIX}-packaging>=20.9:../../devel/py-packaging
DEPENDS+= ${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests
DEPENDS+= ${PYPKGPREFIX}-tqdm>=4.42.1:../../misc/py-tqdm
DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=3.7.4.3:../../devel/py-typing-extensions
DEPENDS+= ${PYPKGPREFIX}-yaml>=5.1:../../textproc/py-yaml

USE_LANGUAGES= # none

INSTALLATION_DIRS= bin

post-install:
cd ${DESTDIR}${PREFIX}/bin && ${MV} huggingface-cli huggingface-cli-${PYVERSSUFFIX}

.include "../../lang/python/application.mk"
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
337 changes: 337 additions & 0 deletions py-huggingface-hub/PLIST

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions py-huggingface-hub/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$NetBSD$

BLAKE2s (huggingface_hub-0.26.1.tar.gz) = 86c88859d228f1e56ac5784f86a9d09e1e99a3d654943bb5287481cce4d15ebd
SHA512 (huggingface_hub-0.26.1.tar.gz) = b41818f7c9db0af3c237d76b548a62c0453be4159ab39502a8f676a4ee038466e0baaf467e2ec9861c1ec0ee61e40948b0a1386092a21c54c661e55dba95fdf7
Size (huggingface_hub-0.26.1.tar.gz) = 375458 bytes

0 comments on commit 7351d5f

Please sign in to comment.