* [gentoo-commits] repo/gentoo:master commit in: sci-libs/seqeval/files/, sci-libs/seqeval/
@ 2023-05-15 6:46 Alfredo Tupone
0 siblings, 0 replies; only message in thread
From: Alfredo Tupone @ 2023-05-15 6:46 UTC (permalink / raw
To: gentoo-commits
commit: 7980a313dc63875aa63d2553221bae9173715edb
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon May 15 06:46:05 2023 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon May 15 06:46:05 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7980a313
sci-libs/seqeval: new package, add 1.2.2
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
sci-libs/seqeval/Manifest | 1 +
sci-libs/seqeval/files/seqeval-1.2.2-gentoo.patch | 10 +++++++
sci-libs/seqeval/metadata.xml | 12 ++++++++
sci-libs/seqeval/seqeval-1.2.2.ebuild | 36 +++++++++++++++++++++++
4 files changed, 59 insertions(+)
diff --git a/sci-libs/seqeval/Manifest b/sci-libs/seqeval/Manifest
new file mode 100644
index 000000000000..509db7dd33b7
--- /dev/null
+++ b/sci-libs/seqeval/Manifest
@@ -0,0 +1 @@
+DIST seqeval-1.2.2.gh.tar.gz 42187 BLAKE2B c0ae8b71fab3d29381d5e2bc70f733b5d176b8a447ee7803a8b4681a1fbd9d197e288c1e3c1239454b5c669addc4977d8a3274c63884529d8c682bf584f2cd3a SHA512 794b817dcd19bc60ecc1c3c3f188bb17b2786dd3629691c43a594443b6dd2a3298b398309d5f14817ff1e0e37859fe109175b8bd48d0d30243de0ea4845c381a
diff --git a/sci-libs/seqeval/files/seqeval-1.2.2-gentoo.patch b/sci-libs/seqeval/files/seqeval-1.2.2-gentoo.patch
new file mode 100644
index 000000000000..17af496e249a
--- /dev/null
+++ b/sci-libs/seqeval/files/seqeval-1.2.2-gentoo.patch
@@ -0,0 +1,10 @@
+--- a/tests/test_metrics.py 2023-05-04 09:00:31.656558311 +0200
++++ b/tests/test_metrics.py 2023-05-04 09:02:09.151781216 +0200
+@@ -158,6 +158,7 @@
+ self.assertLess(abs(r_pred - r_pred_inv), 1e-4)
+ self.assertLess(abs(f1_pred - f1_pred_inv), 1e-4)
+
++ @pytest.mark.skip(reason="take too much time to finish")
+ def test_statistical_tests(self):
+ filepath = 'eval_data.txt'
+ for prefix in ['BIO', 'EIO']:
diff --git a/sci-libs/seqeval/metadata.xml b/sci-libs/seqeval/metadata.xml
new file mode 100644
index 000000000000..11047fcb8a30
--- /dev/null
+++ b/sci-libs/seqeval/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tupone@gentoo.org</email>
+ <name>Tupone Alfredo</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">seqeval</remote-id>
+ <remote-id type="github">chakki-works/seqeval</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-libs/seqeval/seqeval-1.2.2.ebuild b/sci-libs/seqeval/seqeval-1.2.2.ebuild
new file mode 100644
index 000000000000..a0b7601ae359
--- /dev/null
+++ b/sci-libs/seqeval/seqeval-1.2.2.ebuild
@@ -0,0 +1,36 @@
+# 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} )
+inherit distutils-r1
+
+DESCRIPTION="Python framework for sequence labeling evaluation"
+HOMEPAGE="
+ https://pypi.org/project/seqeval/
+ https://github.com/chakki-works/seqeval
+"
+SRC_URI="https://github.com/chakki-works/${PN}/archive/refs/tags/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+BDEPEND="test? ( dev-python/setuptools-scm )"
+
+distutils_enable_tests pytest
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_compile() {
+ export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+ distutils-r1_src_compile
+}
+
+src_test() {
+ cd tests
+ distutils-r1_src_test
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-15 6:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-15 6:46 [gentoo-commits] repo/gentoo:master commit in: sci-libs/seqeval/files/, sci-libs/seqeval/ Alfredo Tupone
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox