From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/gfloat/
Date: Sun, 3 Nov 2024 13:30:07 +0000 (UTC) [thread overview]
Message-ID: <1730640603.dc306a22689901bfac970b637160b9916cd130ea.mgorny@gentoo> (raw)
commit: dc306a22689901bfac970b637160b9916cd130ea
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 3 13:23:13 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Nov 3 13:30:03 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc306a22
dev-python/gfloat: Add nbval test dep
Closes: https://bugs.gentoo.org/942802
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/gfloat/gfloat-0.4.ebuild | 29 +++++++++++++++++++++--------
1 file changed, 21 insertions(+), 8 deletions(-)
diff --git a/dev-python/gfloat/gfloat-0.4.ebuild b/dev-python/gfloat/gfloat-0.4.ebuild
index 073c3dceaa00..8fb620eee753 100644
--- a/dev-python/gfloat/gfloat-0.4.ebuild
+++ b/dev-python/gfloat/gfloat-0.4.ebuild
@@ -17,6 +17,7 @@ HOMEPAGE="
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="test-rust"
RDEPEND="
dev-python/more-itertools[${PYTHON_USEDEP}]
@@ -25,16 +26,28 @@ RDEPEND="
BDEPEND="
test? (
dev-python/ml-dtypes[${PYTHON_USEDEP}]
+ test-rust? (
+ dev-python/nbval[${PYTHON_USEDEP}]
+ )
)
"
distutils_enable_tests pytest
-EPYTEST_IGNORE=(
- # require jax
- docs/source/03-value-tables.ipynb
- docs/source/04-benchmark.ipynb
- test/test_jax.py
- # requires mx (possibly git version), torch
- test/test_microxcaling.py
-)
+python_test() {
+ local EPYTEST_IGNORE=(
+ # require jax
+ docs/source/03-value-tables.ipynb
+ docs/source/04-benchmark.ipynb
+ test/test_jax.py
+ # requires mx (possibly git version), torch
+ test/test_microxcaling.py
+ )
+
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ if has_version "dev-python/nbval[${PYTHON_USEDEP}]"; then
+ epytest -p nbval
+ else
+ epytest -o addopts=
+ fi
+}
next reply other threads:[~2024-11-03 13:30 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-03 13:30 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-23 15:47 [gentoo-commits] repo/gentoo:master commit in: dev-python/gfloat/ Michał Górny
2024-11-23 14:32 Michał Górny
2024-11-03 3:52 Michał Górny
2024-06-12 6:19 Michał Górny
2024-06-12 6:17 Arthur Zamarin
2024-06-12 6:16 Arthur Zamarin
2024-06-11 4:20 Michał Górny
2024-06-10 14:41 Michał Górny
2024-05-22 4:49 Michał Górny
2024-05-16 15:00 Arthur Zamarin
2024-05-16 15:00 Arthur Zamarin
2024-05-03 3:42 Michał Górny
2024-04-22 15:29 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1730640603.dc306a22689901bfac970b637160b9916cd130ea.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox