From 11263cb7c372230b9e5c0195c24692e299887573 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 16 May 2023 10:06:32 +0100 Subject: gentoo auto-resync : 16:05:2023 - 10:06:32 --- sci-libs/datasets/Manifest | 4 +- sci-libs/datasets/datasets-2.11.0-r1.ebuild | 51 --------------------- sci-libs/datasets/datasets-2.11.0-r2.ebuild | 52 ++++++++++++++++++++++ .../datasets/files/datasets-2.11.0-tests.patch | 10 ----- 4 files changed, 54 insertions(+), 63 deletions(-) delete mode 100644 sci-libs/datasets/datasets-2.11.0-r1.ebuild create mode 100644 sci-libs/datasets/datasets-2.11.0-r2.ebuild (limited to 'sci-libs/datasets') diff --git a/sci-libs/datasets/Manifest b/sci-libs/datasets/Manifest index 0848e70af632..2db2d20c9545 100644 --- a/sci-libs/datasets/Manifest +++ b/sci-libs/datasets/Manifest @@ -1,4 +1,4 @@ -AUX datasets-2.11.0-tests.patch 8857 BLAKE2B 669d4053c2feabbdba7405782ad32d09a63cac3b0423b48b6e79c92df1e696b902ef10fed03b01e3348e57f9321d4dcf28420c3458115043412c1990e8a9849c SHA512 8c5c99f9babf608489209b345ad0759e1582a81b39605e535fd046bd6b639d4ccc40e43cc51098be0f27c8afe7e75d6539f20a065d38dabc0b88f0e42cd857a4 +AUX datasets-2.11.0-tests.patch 8489 BLAKE2B fc53b22427f96255aa9d74ecc4eaa1e38d14893819927af523fccf496cf0fef7ffabd98a600d21a749eb6e03d8af591ec2bd2cd0bc16c427a6e4953c1d4b52a4 SHA512 dce48c7d93adee9c70278e48dc45c50877132205ce40476212d083043fed9ba0786841cd9df68f91e7df81499c1262ead1b0e923954ad63c97c7e9553f0202c1 DIST datasets-2.11.0.gh.tar.gz 2141289 BLAKE2B 0fb471dd6ee5de3831eb6586c4a15e67381262470b72d5ab02ee87dfc7977cb4d40e04da6507049d1e47cb8948cad11988bb7627293b48231e1cd413d2cfb885 SHA512 9ec2274d7978e3dde1b2f8ce78dd65bdf66742bbfee7b8672af46216aeaae3ef5c4604a8a5ea0bdee808f1c362cca9a122c16d2e9a161678148e581e4cd5c863 -EBUILD datasets-2.11.0-r1.ebuild 1330 BLAKE2B 9a2ce5b9420d51ec0cd4e925a3619f4382534c607e9100b6f90a947a8814040dda202485b470bb491af391d877d370a92841c95f64181f2646505a97a75fc171 SHA512 18fb6c7cd4109510274112284d740b2c052ce54d6c6f31ece8d55bbb2f959435125b71a7fb7f580d885295ec6744852ffa938ad8fd79302b34b13039c6fb15c3 +EBUILD datasets-2.11.0-r2.ebuild 1367 BLAKE2B f129b98ae08b8005488fa53ee8d607da83d1a334ee660bda871557db3faab9d754e29b7e486d5dcf3bbb4cc1f042fc6b8e786c13b5cf42a70e8aad088e5642fb SHA512 0875cc6352ea35e3637870493cbc967f9195f6289bfb6bad0e45475a99fdebcab7b48a96a9e0bf23aa4ef5f9a42f916486808d4062ca5b12667ac207b13e667f MISC metadata.xml 379 BLAKE2B 48ebb9e7bfa8b58b0d15b82c4146def465e08cf3212ab4af04129d09c153b67b00d0fa05b94d6af54f643ec3a202f2335d3254b966f49d1394d3c7b9e5da56a5 SHA512 99560decfaa0e438980f372d99257695e9ca9585167d9aba091e0b775c2f8384657ddc017841c8f06f8b568017a54fb9e31da736f3c875da717e154cdce876d1 diff --git a/sci-libs/datasets/datasets-2.11.0-r1.ebuild b/sci-libs/datasets/datasets-2.11.0-r1.ebuild deleted file mode 100644 index 977bf0d698b9..000000000000 --- a/sci-libs/datasets/datasets-2.11.0-r1.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) -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}] - $(python_gen_cond_dep ' - dev-python/absl-py[${PYTHON_USEDEP}] - dev-python/aiohttp[${PYTHON_USEDEP}] - dev-python/fsspec[${PYTHON_USEDEP}] - dev-python/multiprocess[${PYTHON_USEDEP}] - dev-python/pandas[${PYTHON_USEDEP}] - dev-python/pyarrow[${PYTHON_USEDEP},parquet,snappy] - dev-python/tqdm[${PYTHON_USEDEP}] - dev-python/xxhash[${PYTHON_USEDEP}] - dev-python/zstandard[${PYTHON_USEDEP}] - sci-libs/huggingface_hub[${PYTHON_USEDEP}] - sci-libs/scikit-learn[${PYTHON_USEDEP}] - ') -" -DEPEND="${RDEPEND}" -BDEPEND="test? ( - $(python_gen_cond_dep ' - dev-python/pytest-datadir[${PYTHON_USEDEP}] - dev-python/decorator[${PYTHON_USEDEP}] - sci-libs/jiwer[${PYTHON_USEDEP}] - ') -)" - -PATCHES=( "${FILESDIR}"/${P}-tests.patch ) - -distutils_enable_tests pytest diff --git a/sci-libs/datasets/datasets-2.11.0-r2.ebuild b/sci-libs/datasets/datasets-2.11.0-r2.ebuild new file mode 100644 index 000000000000..a2f4ad26e65b --- /dev/null +++ b/sci-libs/datasets/datasets-2.11.0-r2.ebuild @@ -0,0 +1,52 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) +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}] + $(python_gen_cond_dep ' + dev-python/absl-py[${PYTHON_USEDEP}] + dev-python/aiohttp[${PYTHON_USEDEP}] + dev-python/fsspec[${PYTHON_USEDEP}] + dev-python/multiprocess[${PYTHON_USEDEP}] + dev-python/pandas[${PYTHON_USEDEP}] + dev-python/pyarrow[${PYTHON_USEDEP},parquet,snappy] + dev-python/tqdm[${PYTHON_USEDEP}] + dev-python/xxhash[${PYTHON_USEDEP}] + dev-python/zstandard[${PYTHON_USEDEP}] + sci-libs/huggingface_hub[${PYTHON_USEDEP}] + sci-libs/scikit-learn[${PYTHON_USEDEP}] + ') +" +DEPEND="${RDEPEND}" +BDEPEND="test? ( + $(python_gen_cond_dep ' + dev-python/pytest-datadir[${PYTHON_USEDEP}] + dev-python/decorator[${PYTHON_USEDEP}] + sci-libs/jiwer[${PYTHON_USEDEP}] + sci-libs/seqeval[${PYTHON_USEDEP}] + ') +)" + +PATCHES=( "${FILESDIR}"/${P}-tests.patch ) + +distutils_enable_tests pytest diff --git a/sci-libs/datasets/files/datasets-2.11.0-tests.patch b/sci-libs/datasets/files/datasets-2.11.0-tests.patch index 0babe8b23d58..e105c01bc63b 100644 --- a/sci-libs/datasets/files/datasets-2.11.0-tests.patch +++ b/sci-libs/datasets/files/datasets-2.11.0-tests.patch @@ -123,16 +123,6 @@ def test_dataset_with_audio_feature_map_undecoded(shared_datadir): audio_path = str(shared_datadir / "test_audio_44100.wav") data = {"audio": [audio_path]} ---- a/tests/test_metric_common.py 2023-05-06 13:20:24.496197629 +0200 -+++ b/tests/test_metric_common.py 2023-05-06 13:21:09.916732417 +0200 -@@ -210,6 +210,7 @@ - yield - - -+@pytest.mark.skip(reason="require seqeval") - def test_seqeval_raises_when_incorrect_scheme(): - metric = load_metric(os.path.join("metrics", "seqeval")) - wrong_scheme = "ERROR" --- a/tests/packaged_modules/test_audiofolder.py 2023-05-06 14:00:39.560876163 +0200 +++ b/tests/packaged_modules/test_audiofolder.py 2023-05-06 14:01:26.005212423 +0200 @@ -1,10 +1,8 @@ -- cgit v1.2.3