From nobody Mon Feb 12 08:34:24 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TYHnD723jz59KdM; Mon, 12 Feb 2024 08:34:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYHnD6VMKz4CVx; Mon, 12 Feb 2024 08:34:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707726864; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VlZwxA9SFzkSA+NjXtU3XFY+LP471Y1nrMEvTXLqz48=; b=sd5fMHXHKBIKw/3hBzPqWQuoQRwbC89mOq2dq4MVYnHUVoSLwuNupan2WdmBIgaYaOX4cr BF1FVhRzNjSPmcV8lgyzLsx//KQb4OJVJ4VhV/kB1/TM+Pn4XzG46jH/X7J9RMSbzo4Xfe bsB9mzB27A23fND9Y6gH1x5ZetWma8XCN1RDDbkxET4zhQ3sXif3tqMYmycAoIV+N8lPDp YK+Ig4D4lcg4ZF1cq1EGyTha3jkbzvGY3lRhYJuNXwnFVNWGOhKyErhzH6gl9GnyA9n1n4 DiQ0JU86pY/1s51upmkYL4tolab+mm9L4Iobel9QqjgvSIsF+VpI1GXoV3pkUQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707726864; a=rsa-sha256; cv=none; b=RKyZeqNgFs1aAMvDRnM+LBZ4ZbTq0esu1TDPgX9ZodLbfUijP7rXRcPTVNDTE+0MAzU/IH Xzh9h6Xntk9V+DbCJpYaUI5ns1pN2RTx6lDViqsOCGNsQzayP0YEHsszp1kzXij3S9n3p8 zRyQsT1QpoyPDCFeyVNWB8QGO/+kVI2zomwhn39SsC6/g8M04y+qvmov05CKO014pMOpci VM2ky3gMBKSxJIvt3tILx0nK4v3wuszx1pNNXgWXKSA/DQ0tRqfIQ4Nb2dCNRfT2rKHSJK tSE+rz6Dq12LYQno6M/rcAq3zD+KxEHQ0Mm/RC/SBHQhv8qOSLU/v5QttfK0/g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707726864; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VlZwxA9SFzkSA+NjXtU3XFY+LP471Y1nrMEvTXLqz48=; b=Fe2lNQHP/nqLhzA/jpuUyNTG2T3zzipdBvjfqjDf9Iq2hRtE7V76hjdFMtwMbqmJ3/bKky ewFZkBJqF4mb+Pq2dcijioKj5/QQLeZrOiW2BkJsT4kkvGqcrJrP2q7sydPkKfacN9wZyw Opa3coT9uj7E7bsjFassUJ+K63fva4nBMctDkRJ96o+FHHIfjy32SSPa5huijrISYQYThw aS6oqss+VncYH9zwzxOPguS+KCYaw8MtE4FzhIlPvcXHZWvgQIWK9RxOwdZuxIebW6TC6s DIPeU+V4TSdvt1MXAQys8z7dkVK2cX/y8+b64YZKra4Vl7QRZUGQi1MmbgamlA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TYHnD5YQnzKVB; Mon, 12 Feb 2024 08:34:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41C8YOHq088558; Mon, 12 Feb 2024 08:34:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41C8YOIs088555; Mon, 12 Feb 2024 08:34:24 GMT (envelope-from git) Date: Mon, 12 Feb 2024 08:34:24 GMT Message-Id: <202402120834.41C8YOIs088555@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Hiroki Tagato Subject: git: 54cee7bd5a75 - main - misc/py-huggingface-hub: add port: Official Python client for the Huggingface Hub List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tagattie X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 54cee7bd5a75afc210b1fccec19e9274e81fce44 Auto-Submitted: auto-generated The branch main has been updated by tagattie: URL: https://cgit.FreeBSD.org/ports/commit/?id=54cee7bd5a75afc210b1fccec19e9274e81fce44 commit 54cee7bd5a75afc210b1fccec19e9274e81fce44 Author: Hiroki Tagato AuthorDate: 2024-02-12 08:24:55 +0000 Commit: Hiroki Tagato CommitDate: 2024-02-12 08:34:14 +0000 misc/py-huggingface-hub: add port: Official Python client for the Huggingface Hub The huggingface_hub library allows you to interact with the Hugging Face Hub, a platform democratizing open-source Machine Learning for creators and collaborators. Discover pre-trained models and datasets for your projects or play with the thousands of machine learning apps hosted on the Hub. You can also create and share your own models, datasets and demos with the community. The huggingface_hub library provides a simple way to do all these things with Python. WWW: https://github.com/huggingface/huggingface_hub --- misc/Makefile | 1 + misc/py-huggingface-hub/Makefile | 36 ++++++++++++++++++++++++++++++++++++ misc/py-huggingface-hub/distinfo | 3 +++ misc/py-huggingface-hub/pkg-descr | 7 +++++++ 4 files changed, 47 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index 7c358530f4bb..20142149858b 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -426,6 +426,7 @@ SUBDIR += py-hist SUBDIR += py-histoprint SUBDIR += py-huepy + SUBDIR += py-huggingface-hub SUBDIR += py-icoextract SUBDIR += py-instructor SUBDIR += py-ipyfastscape diff --git a/misc/py-huggingface-hub/Makefile b/misc/py-huggingface-hub/Makefile new file mode 100644 index 000000000000..37e4a961d49c --- /dev/null +++ b/misc/py-huggingface-hub/Makefile @@ -0,0 +1,36 @@ +PORTNAME= huggingface-hub +DISTVERSION= 0.20.3 +CATEGORIES= misc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION} + +MAINTAINER= tagattie@FreeBSD.org +COMMENT= Official Python client for the Huggingface Hub +WWW= https://github.com/huggingface/huggingface_hub + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}filelock>0:sysutils/py-filelock@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}fsspec>=2023.5.0:devel/py-fsspec@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tqdm>=4.42.1:misc/py-tqdm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}yaml>=5.1:devel/py-yaml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.7.4.3:devel/py-typing-extensions@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}packaging>=20.9:devel/py-packaging@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +PORTDOCS= README.md + +OPTIONS_DEFINE= DOCS + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} + +.include diff --git a/misc/py-huggingface-hub/distinfo b/misc/py-huggingface-hub/distinfo new file mode 100644 index 000000000000..6e84f7940d87 --- /dev/null +++ b/misc/py-huggingface-hub/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1707700513 +SHA256 (huggingface_hub-0.20.3.tar.gz) = 94e7f8e074475fbc67d6a71957b678e1b4a74ff1b64a644fd6cbb83da962d05d +SIZE (huggingface_hub-0.20.3.tar.gz) = 287635 diff --git a/misc/py-huggingface-hub/pkg-descr b/misc/py-huggingface-hub/pkg-descr new file mode 100644 index 000000000000..c2b470c0d3b4 --- /dev/null +++ b/misc/py-huggingface-hub/pkg-descr @@ -0,0 +1,7 @@ +The huggingface_hub library allows you to interact with the Hugging +Face Hub, a platform democratizing open-source Machine Learning for +creators and collaborators. Discover pre-trained models and datasets +for your projects or play with the thousands of machine learning apps +hosted on the Hub. You can also create and share your own models, +datasets and demos with the community. The huggingface_hub library +provides a simple way to do all these things with Python.