repo/gentoo:master commit in: sci-ml/huggingface_hub/
"Alfredo Tupone" <[email protected]>
| Newsgroups | gmane.linux.gentoo.cvs |
|---|---|
| Message-ID | <1786020621.d96173ff88d39293b6ba3ddfe091cba9f2ba7b2e.tupone@gentoo> |
commit: d96173ff88d39293b6ba3ddfe091cba9f2ba7b2e
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 6 12:49:54 2026 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Aug 6 12:50:21 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d96173ff
sci-ml/huggingface_hub: add 1.26.0 drop 0.36.2
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
sci-ml/huggingface_hub/Manifest | 2 +-
.../huggingface_hub-0.36.2-r1.ebuild | 81 ---------------
.../huggingface_hub/huggingface_hub-1.26.0.ebuild | 113 +++++++++++++++++++++
3 files changed, 114 insertions(+), 82 deletions(-)
diff --git a/sci-ml/huggingface_hub/Manifest b/sci-ml/huggingface_hub/Manifest
index 14c7e7ac4117..b0d4601ad807 100644
--- a/sci-ml/huggingface_hub/Manifest
+++ b/sci-ml/huggingface_hub/Manifest
@@ -1,2 +1,2 @@
-DIST huggingface_hub-0.36.2.gh.tar.gz 1052737 BLAKE2B 627c3d36f2199a74b8149dbefb8c9edcff8b4fee49bc769fac6217c3ce111db6fcff5c0020e4250e3344fb2b364bb5e36d082e51166443fc5b65fc6077768f7d SHA512 e0e08fd625c9fca4d88e7ec7f19f9d1bf102441923aba455b57694e62efaa09a273272e65cfa89d9a8df0c294452637758f017f51bba6c1b1e38b623ef2a5d43
+DIST huggingface_hub-1.26.0.gh.tar.gz 1476348 BLAKE2B 120ff2b4a59fb390dbf7e7e7d4523246273857cb775062a0f39659065211f42784c456f4519110ff823cbb24a47cf7ec15ead38cafa6deffc559b634a6dc8c14 SHA512 d94a5aa75d069008fd362e34eb347450ad3e82481de9be327671a6711fe167cf6f80adb30b2f5c08d1c2cc17b1b3d61ccd5589500d3357791b5856c672770fcf
DIST huggingface_hub-1.3.7.gh.tar.gz 1024162 BLAKE2B e38d5742b96e1bd72bd91f6a3af16277f4d2ea9182faf126635d3794964622cd52ccddf96e354d0925742b2275d820b3b2f56a715baa62f4e2671335cdcffa18 SHA512 7edc139db6fdfb8add97356e3fe1bce05ed6251d447ab8c770b1696eafeee6594705be7649340fd8970838c51bef23cc9b06e8ef118261a3c5c448b2b242b63d
diff --git a/sci-ml/huggingface_hub/huggingface_hub-0.36.2-r1.ebuild b/sci-ml/huggingface_hub/huggingface_hub-0.36.2-r1.ebuild
deleted file mode 100644
index b000e109e772..000000000000
--- a/sci-ml/huggingface_hub/huggingface_hub-0.36.2-r1.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 2023-2026 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}]
- sci-ml/hf_xet[${PYTHON_USEDEP}]
- ')
-"
-
-BDEPEND="
- test? (
- sci-ml/pytorch[${PYTHON_SINGLE_USEDEP}]
- dev-vcs/git-lfs
- )
-"
-
-EPYTEST_PLUGINS=( pytest-asyncio pytest-mock )
-
-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_client.py
- tests/test_oauth.py
- tests/test_repocard.py
- tests/test_repository.py
- tests/test_snapshot_download.py
- tests/test_utils_telemetry.py
- tests/test_xet_download.py
- tests/test_xet_upload.py
- tests/test_utils_cache.py
- tests/test_utils_http.py
- tests/test_webhooks_server.py
- )
-
- local EPYTEST_DESELECT=(
- tests/test_cli.py::TestJobsCommand::test_uv_local_script
- tests/test_hub_mixin.py::HubMixinTest::test_push_to_hub
- tests/test_hub_mixin_pytorch.py::PytorchHubMixinTest::test_push_to_hub
- tests/test_inference_async_client.py::test_async_generate_timeout_error
- tests/test_inference_providers.py::TestHFInferenceProvider::test_prepare_mapping_info_unknown_task
- tests/test_offline_utils.py::test_offline_with_timeout
- tests/test_utils_pagination.py::TestPagination::test_paginate_hf_api
- )
-
- distutils-r1_src_test
-}
diff --git a/sci-ml/huggingface_hub/huggingface_hub-1.26.0.ebuild b/sci-ml/huggingface_hub/huggingface_hub-1.26.0.ebuild
new file mode 100644
index 000000000000..3558b8a388d8
--- /dev/null
+++ b/sci-ml/huggingface_hub/huggingface_hub-1.26.0.ebuild
@@ -0,0 +1,113 @@
+# Copyright 2023-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..14} )
+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"
+IUSE="torch"
+
+RDEPEND="
+ $(python_gen_cond_dep '
+ dev-python/click[${PYTHON_USEDEP}]
+ dev-python/filelock[${PYTHON_USEDEP}]
+ dev-python/fsspec[${PYTHON_USEDEP}]
+ dev-python/httpx[${PYTHON_USEDEP}]
+ dev-python/packaging[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/shellingham[${PYTHON_USEDEP}]
+ dev-python/tqdm[${PYTHON_USEDEP}]
+ dev-python/typer[${PYTHON_USEDEP}]
+ dev-python/typing-extensions[${PYTHON_USEDEP}]
+ sci-ml/hf_xet[${PYTHON_USEDEP}]
+ torch? (
+ sci-ml/safetensors[${PYTHON_USEDEP}]
+ )
+ ')
+ torch? (
+ sci-ml/caffe2[${PYTHON_SINGLE_USEDEP}]
+ sci-ml/pytorch[${PYTHON_SINGLE_USEDEP}]
+ )
+"
+
+BDEPEND="
+ test? (
+ sci-ml/pytorch[${PYTHON_SINGLE_USEDEP}]
+ dev-vcs/git-lfs
+ )
+"
+
+EPYTEST_PLUGINS=( pytest-asyncio pytest-mock )
+
+distutils_enable_tests pytest
+
+src_test() {
+ local EPYTEST_IGNORE=(
+ tests/test_file_download.py
+ tests/test_hf_api.py
+ tests/test_oauth.py
+ tests/test_snapshot_download.py
+ tests/test_webhooks_server.py
+ )
+
+ local EPYTEST_DESELECT=(
+ tests/test_buckets
+ tests/test_inference_client.py::TestOpenAsMimeBytes
+ tests/test_inference_client.py::TestHeadersAndCookies
+ tests/test_inference_client.py::test_as_url_with_pil_image
+ tests/test_cache_layout.py
+ tests/test_cache_no_symlinks.py::TestCacheLayoutIfSymlinksNotSupported::test_download_no_symlink_existing_file
+ tests/test_cache_no_symlinks.py::TestCacheLayoutIfSymlinksNotSupported::test_download_no_symlink_new_file
+ tests/test_cache_no_symlinks.py::TestCacheLayoutIfSymlinksNotSupported::test_scan_and_delete_cache_no_symlinks
+ tests/test_cli.py
+ tests/test_cli_discussions.py
+ tests/test_commit_scheduler.py::TestCommitScheduler::test_context_manager
+ tests/test_commit_scheduler.py::TestCommitScheduler::test_missing_folder_is_created
+ tests/test_commit_scheduler.py::TestCommitScheduler::test_mocked_push_to_hub
+ tests/test_commit_scheduler.py::TestCommitScheduler::test_sync_and_squash_history
+ tests/test_commit_scheduler.py::TestCommitScheduler::test_sync_local_folder
+ tests/test_copy_files.py
+ tests/test_hf_file_system.py
+ tests/test_hub_mixin.py
+ tests/test_hub_mixin_pytorch.py
+ tests/test_inference_async_client.py::test_async_generate_timeout_error
+ tests/test_inference_providers.py::TestHFInferenceProvider::test_prepare_mapping_info_unknown_task
+ tests/test_kernels.py
+ tests/test_offline_utils.py::test_offline_with_timeout
+ tests/test_repocard.py
+ tests/test_utils_cache.py::TestValidCacheUtils::test_scan_cache_on_valid_cache_unix
+ tests/test_utils_cache.py::TestCorruptedCacheUtils
+ tests/test_utils_http.py::TestUniqueRequestId
+ tests/test_utils_http.py::test_client_get_request
+ tests/test_utils_http.py::test_async_client_get_request
+ tests/test_utils_pagination.py::TestPagination::test_paginate_hf_api
+ tests/test_utils_telemetry.py::TestSendTelemetry::test_topic_multiple
+ tests/test_utils_telemetry.py::TestSendTelemetry::test_topic_normal
+ tests/test_utils_telemetry.py::TestSendTelemetry::test_topic_quoted
+ tests/test_utils_telemetry.py::TestSendTelemetry::test_topic_with_subtopic
+ tests/test_xet_download.py::TestXetFileDownload::test_get_xet_file_metadata_basic
+ tests/test_xet_download.py::TestXetFileDownload::test_basic_download
+ tests/test_xet_download.py::TestXetFileDownload::test_try_to_load_from_cache
+ tests/test_xet_download.py::TestXetFileDownload::test_cache_reuse
+ tests/test_xet_download.py::TestXetFileDownload::test_download_to_local_dir
+ tests/test_xet_download.py::TestXetFileDownload::test_force_download
+ tests/test_xet_download.py::TestXetSnapshotDownload
+ tests/test_xet_upload.py
+ tests/test_xet_utils.py::test_xet_token_reset_after_repo_deletion
+ )
+
+ distutils-r1_src_test
+}