commit:     da6e3eae5a4bc7472c759444ecbd9ed79cbfa4a2
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Tue May 16 05:20:21 2023 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Tue May 16 05:21:31 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da6e3eae

sci-libs/datasets: use seqeval for test

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

 .../{datasets-2.11.0-r1.ebuild => datasets-2.11.0-r2.ebuild}   |  1 +
 sci-libs/datasets/files/datasets-2.11.0-tests.patch            | 10 ----------
 2 files changed, 1 insertion(+), 10 deletions(-)

diff --git a/sci-libs/datasets/datasets-2.11.0-r1.ebuild 
b/sci-libs/datasets/datasets-2.11.0-r2.ebuild
similarity index 97%
rename from sci-libs/datasets/datasets-2.11.0-r1.ebuild
rename to sci-libs/datasets/datasets-2.11.0-r2.ebuild
index 977bf0d698b9..a2f4ad26e65b 100644
--- a/sci-libs/datasets/datasets-2.11.0-r1.ebuild
+++ b/sci-libs/datasets/datasets-2.11.0-r2.ebuild
@@ -43,6 +43,7 @@ BDEPEND="test? (
                dev-python/pytest-datadir[${PYTHON_USEDEP}]
                dev-python/decorator[${PYTHON_USEDEP}]
                sci-libs/jiwer[${PYTHON_USEDEP}]
+               sci-libs/seqeval[${PYTHON_USEDEP}]
        ')
 )"
 

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
- 
- 
[email protected](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 @@

Reply via email to