commit: 11af7530a6bcd3cc475e760595028041b4331344
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 27 13:18:31 2025 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Mar 27 13:18:48 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11af7530
sci-ml/huggingface_hub: add 0.27.1
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
sci-ml/huggingface_hub/Manifest | 1 +
.../huggingface_hub/huggingface_hub-0.27.1.ebuild | 72 ++++++++++++++++++++++
2 files changed, 73 insertions(+)
diff --git a/sci-ml/huggingface_hub/Manifest b/sci-ml/huggingface_hub/Manifest
index 82bc2d1a1e95..fc4e73154684 100644
--- a/sci-ml/huggingface_hub/Manifest
+++ b/sci-ml/huggingface_hub/Manifest
@@ -1 +1,2 @@
DIST huggingface_hub-0.26.5.gh.tar.gz 4056959 BLAKE2B
719c7abd00a822929ec4a14924ea200b91c8b8be2fb45b71e8f98a8e4e178613bc444bd67f9b013f94bd808b8229171872014249013e32f37e74a3ea709c0ae9
SHA512
e151e216b681b72ecb28e82d05bb5c6edf25bbbd34d6ce10d2896b54d9fdaf5ec062b2f777a2e5c61fbc92c901351adfb1f9fcfac2efb360e2a3076d5dd08c34
+DIST huggingface_hub-0.27.1.gh.tar.gz 4079456 BLAKE2B
846291aa9242e6951c26fd8f695a2f324899b473e01a582dc0fa9aad11e0bb30233761c5dd573876167913e4fe89c2616ab857892c08fa067eac11d7b2fb5228
SHA512
64d435a08765c67e3046370a4bc701da136570f3b23cdf1b5d35c679331694c8cb35ece72417f34f4288d035695d39e4ab6e1e1dce2fb33db42b3664258186cd
diff --git a/sci-ml/huggingface_hub/huggingface_hub-0.27.1.ebuild
b/sci-ml/huggingface_hub/huggingface_hub-0.27.1.ebuild
new file mode 100644
index 000000000000..0825d6c3e9bd
--- /dev/null
+++ b/sci-ml/huggingface_hub/huggingface_hub-0.27.1.ebuild
@@ -0,0 +1,72 @@
+# 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}]
+ )"
+
+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_no_symlinks.py
+ tests/test_command_delete_cache.py
+ tests/test_file_download.py
+ tests/test_hf_api.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_telemetry.py
+ tests/test_webhooks_server.py
+ )
+
+ local EPYTEST_DESELECT=(
+
tests/test_cache_layout.py::ReferenceUpdates::test_update_reference
+
tests/test_commit_scheduler.py::TestCommitScheduler::test_sync_local_folder
+ tests/test_dduf.py::TestExportFolder::test_export_folder
+
tests/test_file_download.py::StagingDownloadTests::test_download_from_a_gated_repo_with_hf_hub_download
+ tests/test_hf_api.py::TestLargeUpload::test_upload_large_folder
+ tests/test_hub_mixin.py::HubMixinTest::test_push_to_hub
+
tests/test_hub_mixin_pytorch.py::PytorchHubMixinTest::test_push_to_hub
+ )
+
+ distutils-r1_src_test
+}