commit:     b42c4837de4827d592dedd934268d709703ebaa9
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Tue Sep  9 09:31:21 2025 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Tue Sep  9 09:31:21 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b42c4837

sci-ml/huggingface_hub: add 0.33.5

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 sci-ml/huggingface_hub/Manifest                    |  1 +
 .../huggingface_hub/huggingface_hub-0.33.5.ebuild  | 77 ++++++++++++++++++++++
 2 files changed, 78 insertions(+)

diff --git a/sci-ml/huggingface_hub/Manifest b/sci-ml/huggingface_hub/Manifest
index 9b5e73196e24..78974f4228a3 100644
--- a/sci-ml/huggingface_hub/Manifest
+++ b/sci-ml/huggingface_hub/Manifest
@@ -1,3 +1,4 @@
 DIST huggingface_hub-0.30.2.gh.tar.gz 7246628 BLAKE2B 
b423b437654708bef2e609c0dc6c48f286db8c9a8cacc517d2a4d32b44f083674955b0ab0f98206b8042ece4c244c02de529a41995a1502da1d792c1f8f56f7e
 SHA512 
c50000066a9522fec9096ec00ff94d891a74ccf2e36507c52cf08c55c2f174e9dfcb383436ff03f64fa4ee0b4c3d00088db3e8fefbc9f2aaa30c20e5fe48e931
 DIST huggingface_hub-0.31.4.gh.tar.gz 972877 BLAKE2B 
2a3a7f0513b2089879660983542a1709af99ad0e7131e74e2f7013b8bb5097a898bcace9af51b5545d72a9ce0cbc72789ca4d0ca17b2b7668e9133fef4624720
 SHA512 
81e570292b94e7177a4b9f5be782f014b943bcc23a345702e4948fbf16e52f22ae852899796f886d1b4a3bf79171887be6eee44872c738b1338e37063b0a6722
 DIST huggingface_hub-0.32.6.gh.tar.gz 994260 BLAKE2B 
37f5e6d777387b36002487ec2970bb806ad93065ac247bdf2ee0828d119d2f600ca19ba78471d192b0548cbb9b5da8892338b13e325eac03ede7e25cc584911c
 SHA512 
982c8916628b7de0fc74381530e835cf554f2213f87f6c32f2f5f78e8aa5b135f36a580e6e155be646da1c07df00cc31abd3a09a94267c47ec10b3ff2ef10c86
+DIST huggingface_hub-0.33.5.gh.tar.gz 1000870 BLAKE2B 
9ae4f61035862f4469872cddac450f4ac7047f285540b04e5244093e2a905b8126a2bf5e18d8e0b0da1d00b59f7a028f43039088a0f59735ea12412c618e69e8
 SHA512 
dd6be6079e2fd968d5f1eb4e44ee5fc328ace9d7a415d9f5c40ec1bff087b37587b3c023706fc62100b792c86db56de973e955fd8aedaab4fd19b0d2ca454c39

diff --git a/sci-ml/huggingface_hub/huggingface_hub-0.33.5.ebuild 
b/sci-ml/huggingface_hub/huggingface_hub-0.33.5.ebuild
new file mode 100644
index 000000000000..24b2336d203f
--- /dev/null
+++ b/sci-ml/huggingface_hub/huggingface_hub-0.33.5.ebuild
@@ -0,0 +1,77 @@
+# 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 ~arm64"
+
+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
+               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_oauth.py
+               tests/test_repocard.py
+               tests/test_repository.py
+               tests/test_snapshot_download.py
+               tests/test_xet_download.py
+               tests/test_xet_upload.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
+               
tests/test_fastai_integration.py::TestFastaiUtils::test_push_to_hub_and_from_pretrained_fastai
+       )
+
+       distutils-r1_src_test
+}

Reply via email to