From 9323524b4d44f4ec3dc923bd8e9ea04bdde8a067 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 6 Apr 2024 00:30:33 +0100 Subject: gentoo auto-resync : 06:04:2024 - 00:30:33 --- sci-libs/datasets/Manifest | 2 +- sci-libs/datasets/datasets-2.18.0-r1.ebuild | 86 +++++++++++++++++++++++++++++ sci-libs/datasets/datasets-2.18.0.ebuild | 86 ----------------------------- 3 files changed, 87 insertions(+), 87 deletions(-) create mode 100644 sci-libs/datasets/datasets-2.18.0-r1.ebuild delete mode 100644 sci-libs/datasets/datasets-2.18.0.ebuild (limited to 'sci-libs/datasets') diff --git a/sci-libs/datasets/Manifest b/sci-libs/datasets/Manifest index e3fb33c67187..e6f86a2e3a2d 100644 --- a/sci-libs/datasets/Manifest +++ b/sci-libs/datasets/Manifest @@ -1,4 +1,4 @@ AUX datasets-2.17.1-tests.patch 13819 BLAKE2B 7581ae4ad336f8f8ecf6b47defa5b2d33da246d60e7159136803ceb4ad20a4f66025ec7aa3a1910ad4a79408ba7cb0de49621d56d13eaf64958c6770e1dc02e2 SHA512 96d344ef84cdc4cd1ee1cf3dd51be0ffb499839a74ba26bfb3aec3b87b459ff81c9c7f89d1704eb628f1a6f81e0a5f6770fd7316e5b0cdd3ad0df919254ed625 DIST datasets-2.18.0.gh.tar.gz 2169179 BLAKE2B 8a0daa0e8995b3fa5480d8aa892a26d1b6ba90f252ef7c7ca62f4afc2efa61a8ed2efbf48a40381f07178b826bde62af0f0cb8cbf80d470d5d4dfb1ba25f6cb8 SHA512 b1fb0e6636417683fa79679286505b921a7ba00b1cabd6a23e60d5804eb098527c5283058799a0776a7f1e93972fdbb948882f153a10557bcc6b6b22ab861292 -EBUILD datasets-2.18.0.ebuild 2414 BLAKE2B 2fa6f46eaedbe8ccd4985f0717a6f599e22ba05578d847acbfeb569771d9eb0089fd935716a58f24c9970d0988f54a8c88056311e3ca04d9d8cca9c8d5949bbc SHA512 e641b306fe18c7e960b5010106e8fb6a42bac950e8c6aed2278b75687ffdef35d69f374e4c0caef71d968e9a97ea9d8514759cdc07a4a59af271a55d64ed3103 +EBUILD datasets-2.18.0-r1.ebuild 2386 BLAKE2B bd67e5ca2db08a13a41ad320c60ccf3b183d4ad38e92701d5b033b8a1d5477d57c1345a1ee6acea4e050266c64e2a5d44d8df2764a4bbe9a2d327a7b4b133181 SHA512 cba0ac26dbd9ea7b038ecfb605573bce5915aa92cd780fbf47a1015f96920fe91bd4edc129307f4b9e9b7aec8ff6862ef5bfe5af38388878dd563a52df5a7b61 MISC metadata.xml 379 BLAKE2B 48ebb9e7bfa8b58b0d15b82c4146def465e08cf3212ab4af04129d09c153b67b00d0fa05b94d6af54f643ec3a202f2335d3254b966f49d1394d3c7b9e5da56a5 SHA512 99560decfaa0e438980f372d99257695e9ca9585167d9aba091e0b775c2f8384657ddc017841c8f06f8b568017a54fb9e31da736f3c875da717e154cdce876d1 diff --git a/sci-libs/datasets/datasets-2.18.0-r1.ebuild b/sci-libs/datasets/datasets-2.18.0-r1.ebuild new file mode 100644 index 000000000000..d16c3e2459de --- /dev/null +++ b/sci-libs/datasets/datasets-2.18.0-r1.ebuild @@ -0,0 +1,86 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) +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" +IUSE="test" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + ${PYTHON_DEPS} + sci-libs/pytorch[${PYTHON_SINGLE_USEDEP}] + sci-libs/caffe2[${PYTHON_SINGLE_USEDEP},numpy] + $(python_gen_cond_dep ' + dev-python/absl-py[${PYTHON_USEDEP}] + dev-python/aiohttp[${PYTHON_USEDEP}] + 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/scikit-learn[${PYTHON_USEDEP}] + dev-python/tqdm[${PYTHON_USEDEP}] + dev-python/xxhash[${PYTHON_USEDEP}] + dev-python/zstandard[${PYTHON_USEDEP}] + sci-libs/huggingface_hub[${PYTHON_USEDEP}] + ') +" +DEPEND="${RDEPEND}" +BDEPEND="test? ( + $(python_gen_cond_dep ' + dev-python/absl-py[${PYTHON_USEDEP}] + dev-python/pytest-datadir[${PYTHON_USEDEP}] + dev-python/decorator[${PYTHON_USEDEP}] + dev-python/sqlalchemy[${PYTHON_USEDEP}] + sci-libs/jiwer[${PYTHON_USEDEP}] + sci-libs/seqeval[${PYTHON_USEDEP}] + ') +)" + +PATCHES=( + "${FILESDIR}"/${PN}-2.17.1-tests.patch +) + +distutils_enable_tests pytest + +src_prepare() { + distutils-r1_src_prepare + rm tests/packaged_modules/test_spark.py || die + rm tests/test_upstream_hub.py || die + sed -i -e \ + "/pyarrow_hotfix/d" \ + src/datasets/features/features.py || die + sed -i \ + -e "s:pytest.mark.integration:pytest.mark.skip():g" \ + tests/test_arrow_dataset.py \ + tests/test_fingerprint.py \ + tests/test_hf_gcp.py \ + tests/test_inspect.py \ + tests/test_iterable_dataset.py \ + tests/test_iterable_dataset.py \ + tests/test_load.py \ + tests/test_offline_util.py \ + tests/test_streaming_download_manager.py \ + tests/commands/test_test.py \ + tests/packaged_modules/test_cache.py \ + || die +} diff --git a/sci-libs/datasets/datasets-2.18.0.ebuild b/sci-libs/datasets/datasets-2.18.0.ebuild deleted file mode 100644 index 71e6cd37d0a0..000000000000 --- a/sci-libs/datasets/datasets-2.18.0.ebuild +++ /dev/null @@ -1,86 +0,0 @@ -# Copyright 2023-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..12} ) -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" -IUSE="test" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" - -# For pin on fsspec see https://github.com/huggingface/datasets/issues/6333 -RDEPEND=" - ${PYTHON_DEPS} - sci-libs/pytorch[${PYTHON_SINGLE_USEDEP}] - $(python_gen_cond_dep ' - dev-python/absl-py[${PYTHON_USEDEP}] - dev-python/aiohttp[${PYTHON_USEDEP}] - 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/scikit-learn[${PYTHON_USEDEP}] - dev-python/tqdm[${PYTHON_USEDEP}] - dev-python/xxhash[${PYTHON_USEDEP}] - dev-python/zstandard[${PYTHON_USEDEP}] - sci-libs/huggingface_hub[${PYTHON_USEDEP}] - ') -" -DEPEND="${RDEPEND}" -BDEPEND="test? ( - $(python_gen_cond_dep ' - dev-python/absl-py[${PYTHON_USEDEP}] - dev-python/pytest-datadir[${PYTHON_USEDEP}] - dev-python/decorator[${PYTHON_USEDEP}] - dev-python/sqlalchemy[${PYTHON_USEDEP}] - sci-libs/jiwer[${PYTHON_USEDEP}] - sci-libs/seqeval[${PYTHON_USEDEP}] - ') -)" - -PATCHES=( - "${FILESDIR}"/${PN}-2.17.1-tests.patch -) - -distutils_enable_tests pytest - -src_prepare() { - distutils-r1_src_prepare - rm tests/packaged_modules/test_spark.py || die - rm tests/test_upstream_hub.py || die - sed -i -e \ - "/pyarrow_hotfix/d" \ - src/datasets/features/features.py || die - sed -i \ - -e "s:pytest.mark.integration:pytest.mark.skip():g" \ - tests/test_arrow_dataset.py \ - tests/test_fingerprint.py \ - tests/test_hf_gcp.py \ - tests/test_inspect.py \ - tests/test_iterable_dataset.py \ - tests/test_iterable_dataset.py \ - tests/test_load.py \ - tests/test_offline_util.py \ - tests/test_streaming_download_manager.py \ - tests/commands/test_test.py \ - tests/packaged_modules/test_cache.py \ - || die -} -- cgit v1.2.3