sci-ml/datasets: add 5.1.0

Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2026-10-14 17:54:48 +02:00
parent ef6cccf980
commit dd71f13086
2 changed files with 108 additions and 0 deletions
+1
View File
@@ -1,2 +1,3 @@
DIST datasets-4.8.5.gh.tar.gz 2195039 BLAKE2B 3ab237f44f852d5b6ec6b482b6f21332583ab3136991fb361ef4f64f5f23be39c38c0f6af4c1f4db43104adb1f7636a3f6fcb14f637bd73460067e3a19ebd7e4 SHA512 ceb75c23a3b695ab7bcad948b374eac7857d4e21b770b6638c47620d30cb3adc1ae4a7bafbd4076f4770ccb8782a4ff5eb1c2004cb7f6b9b54d42f7e3c169ace
DIST datasets-5.0.1.gh.tar.gz 28560928 BLAKE2B 2cab1279486876120f0cd03a17c471d8c7d0d752add5084d3f932b5a9e4aa9d42320419867b6b9f0e567df9237569aa07fc226ec006293cf56864ec70bb1d06c SHA512 07bd6bfd0ada506aec0e334b00795a6fd9e281a010052c5e488e08956a95bc159a7ba4b2e4b005bf01b338dedc845e25dad3dc958d4c7fceacba25732e3b23be
DIST datasets-5.1.0.gh.tar.gz 28641592 BLAKE2B dcd135c96c2938c663412d438fa3b6afade6c37d2f2f4b2bb2905a7a9541cf8b252968522ea65e1b93bf8bd041d5bd6aa769e472e1d977e87b164bafabb905b1 SHA512 e8bb91ea949bad799a432af26a4f60e238cd7bcef1de466aaf61a52c542f0428da222c7355a6af279e7c560595a2f7af1cb7df96c6fd80465bdb0a6037c44849
+107
View File
@@ -0,0 +1,107 @@
# 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_{12..14} )
DISTUTILS_SINGLE_IMPL=1
inherit distutils-r1
DESCRIPTION="Access and share datasets for Audio, Computer Vision, and NLP tasks"
HOMEPAGE="https://pypi.org/project/datasets/"
SRC_URI="https://github.com/huggingface/${PN}/archive/refs/tags/${PV}.tar.gz
-> ${P}.gh.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="torch vision"
REQUIRES_USE="test? ( torch vision )"
RDEPEND="
>=sci-ml/huggingface_hub-1.31[${PYTHON_SINGLE_USEDEP}]
<sci-ml/huggingface_hub-2
$(python_gen_cond_dep '
dev-python/dill[${PYTHON_USEDEP}]
dev-python/filelock[${PYTHON_USEDEP}]
dev-python/fsspec[${PYTHON_USEDEP}]
dev-python/multiprocess[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/pandas[${PYTHON_USEDEP}]
dev-python/pyarrow[${PYTHON_USEDEP},parquet,snappy]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/tqdm[${PYTHON_USEDEP}]
dev-python/xxhash[${PYTHON_USEDEP}]
vision? (
dev-python/pillow[${PYTHON_USEDEP}]
)
')
torch? (
>=sci-ml/pytorch-2.13.0[${PYTHON_SINGLE_USEDEP},numpy]
)
"
DEPEND="${RDEPEND}"
# Missing x test:
# joblib
# joblibspark
# faiss-cpu
# jax
# jaxlib
# polars
# pyav
# pyspark
# py7zr
# s3fs
# tensorflow
# tiktoken
# torchdata
# transformers
BDEPEND="test? (
sci-ml/torchvision[${PYTHON_SINGLE_USEDEP}]
sci-ml/transformers[${PYTHON_SINGLE_USEDEP}]
$(python_gen_cond_dep '
sci-ml/tokenizers[${PYTHON_USEDEP}]
dev-python/absl-py[${PYTHON_USEDEP}]
dev-python/decorator[${PYTHON_USEDEP}]
dev-python/elasticsearch[${PYTHON_USEDEP}]
dev-python/h5py[${PYTHON_USEDEP}]
dev-python/lz4[${PYTHON_USEDEP}]
dev-python/moto[${PYTHON_USEDEP}]
dev-python/protobuf:=[${PYTHON_USEDEP}]
dev-python/pytest-datadir[${PYTHON_USEDEP}]
dev-python/pytest-xdist[${PYTHON_USEDEP}]
dev-python/soundfile[${PYTHON_USEDEP}]
dev-python/sqlalchemy[${PYTHON_USEDEP}]
dev-python/trimesh[${PYTHON_USEDEP}]
dev-python/zstandard[${PYTHON_USEDEP}]
')
)"
EPYTEST_PLUGINS=( pytest-datadir )
distutils_enable_tests pytest
python_test() {
local EPYTEST_IGNORE=(
tests/packaged_modules/test_lance.py
tests/packaged_modules/test_spark.py
tests/packaged_modules/test_iceberg.py
)
local EPYTEST_DESELECT=(
tests/io/test_parquet.py::test_parquet_read_geoparquet
tests/packaged_modules/test_folder_based_builder.py::test_data_files_with_different_levels_no_metadata
tests/packaged_modules/test_folder_based_builder.py::test_data_files_with_one_label_no_metadata
tests/test_data_files.py::test_DataFilesList_from_patterns_locally_with_extra_files
tests/test_data_files.py::test_DataFilesDict_from_patterns_locally_or_remote_hashing
tests/test_hub.py::test_delete_from_hub
tests/test_load.py::test_load_dataset_builder
tests/test_arrow_dataset.py::BaseDatasetTest::test_to_parquet_in_memory
tests/test_arrow_dataset.py::BaseDatasetTest::test_to_parquet_on_disk
)
epytest -m 'unit'
}