From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 38F891581EE for ; Thu, 03 Apr 2025 18:48:41 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 1F669343243 for ; Thu, 03 Apr 2025 18:48:41 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 1EB4E11042D; Thu, 03 Apr 2025 18:48:40 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 14BB511042D for ; Thu, 03 Apr 2025 18:48:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BDD98343204 for ; Thu, 03 Apr 2025 18:48:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 29CB1151F for ; Thu, 03 Apr 2025 18:48:38 +0000 (UTC) From: "Alfredo Tupone" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alfredo Tupone" Message-ID: <1743706092.9a6af4b886a5b34dc9dd44cde5adddce3eeefcf0.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-ml/huggingface_hub/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-ml/huggingface_hub/Manifest sci-ml/huggingface_hub/huggingface_hub-0.28.1.ebuild X-VCS-Directories: sci-ml/huggingface_hub/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: 9a6af4b886a5b34dc9dd44cde5adddce3eeefcf0 X-VCS-Branch: master Date: Thu, 03 Apr 2025 18:48:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 34e6c3d6-5ab1-4d23-ba3b-a0281fc013ad X-Archives-Hash: 30134891e9e703bc053313195a368748 commit: 9a6af4b886a5b34dc9dd44cde5adddce3eeefcf0 Author: Alfredo Tupone gentoo org> AuthorDate: Thu Apr 3 18:43:23 2025 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Thu Apr 3 18:48:12 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a6af4b8 sci-ml/huggingface_hub: add 0.28.1 Signed-off-by: Alfredo Tupone gentoo.org> sci-ml/huggingface_hub/Manifest | 1 + .../huggingface_hub/huggingface_hub-0.28.1.ebuild | 75 ++++++++++++++++++++++ 2 files changed, 76 insertions(+) diff --git a/sci-ml/huggingface_hub/Manifest b/sci-ml/huggingface_hub/Manifest index a21774844227..7a5b137d2ef9 100644 --- a/sci-ml/huggingface_hub/Manifest +++ b/sci-ml/huggingface_hub/Manifest @@ -1 +1,2 @@ DIST huggingface_hub-0.27.1.gh.tar.gz 4079456 BLAKE2B 846291aa9242e6951c26fd8f695a2f324899b473e01a582dc0fa9aad11e0bb30233761c5dd573876167913e4fe89c2616ab857892c08fa067eac11d7b2fb5228 SHA512 64d435a08765c67e3046370a4bc701da136570f3b23cdf1b5d35c679331694c8cb35ece72417f34f4288d035695d39e4ab6e1e1dce2fb33db42b3664258186cd +DIST huggingface_hub-0.28.1.gh.tar.gz 6559176 BLAKE2B 30c465d7e844dadf4d3154bdb440bcac4296860518e38ae607994e5f7e6642c2e2b94d755faf48e2d129f621275df55819903723113f1bd76bbd3b61c0f49dcc SHA512 3893cac7540d0cc8be65047c1b6798f3d39592070a9be5a86b5f44464cc66d2f12b2a3f0c5c5a12b96a624f128e1160bda1c45c814d2acae294f1484929ec11c diff --git a/sci-ml/huggingface_hub/huggingface_hub-0.28.1.ebuild b/sci-ml/huggingface_hub/huggingface_hub-0.28.1.ebuild new file mode 100644 index 000000000000..292c7542bfa7 --- /dev/null +++ b/sci-ml/huggingface_hub/huggingface_hub-0.28.1.ebuild @@ -0,0 +1,75 @@ +# Copyright 2023-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} ) +DISTUTILS_SINGLE_IMPL=1 +inherit distutils-r1 + +DESCRIPTION="a client library to interact with the Hugging Face Hub" +HOMEPAGE=" + https://pypi.org/project/huggingface_hub/ +" +SRC_URI="https://github.com/huggingface/${PN}/archive/refs/tags/v${PV}.tar.gz + -> ${P}.gh.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/filelock[${PYTHON_USEDEP}] + dev-python/fsspec[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/tqdm[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] + ') +" + +BDEPEND="test? ( + sci-ml/pytorch[${PYTHON_SINGLE_USEDEP}] + dev-vcs/git-lfs + )" + +distutils_enable_tests pytest + +src_test() { + local EPYTEST_IGNORE=( + contrib/sentence_transformers/test_sentence_transformers.py + contrib/spacy/test_spacy.py + contrib/timm/test_timm.py + tests/test_cache_layout.py + tests/test_cache_no_symlinks.py + tests/test_command_delete_cache.py + tests/test_commit_scheduler.py + tests/test_file_download.py + tests/test_hf_api.py + tests/test_hf_file_system.py + tests/test_inference_api.py + tests/test_inference_async_client.py + tests/test_inference_client.py + tests/test_inference_text_generation.py + tests/test_repocard.py + tests/test_repository.py + tests/test_snapshot_download.py + tests/test_utils_cache.py + tests/test_utils_http.py + tests/test_utils_telemetry.py + tests/test_webhooks_server.py + ) + + local EPYTEST_DESELECT=( + tests/test_dduf.py::TestExportFolder::test_export_folder + tests/test_hub_mixin.py::HubMixinTest::test_push_to_hub + tests/test_hub_mixin_pytorch.py::PytorchHubMixinTest::test_push_to_hub + tests/test_offline_utils.py::test_offline_with_timeout + tests/test_utils_pagination.py::TestPagination::test_paginate_github_api + ) + + distutils-r1_src_test +}