From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4838315807B for ; Sun, 3 Nov 2024 13:30:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 41860E09BC; Sun, 3 Nov 2024 13:30:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 22E18E09BC for ; Sun, 3 Nov 2024 13:30:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2AD813430C8 for ; Sun, 3 Nov 2024 13:30:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7D1BA1F0B for ; Sun, 3 Nov 2024 13:30:07 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1730640603.dc306a22689901bfac970b637160b9916cd130ea.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/gfloat/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/gfloat/gfloat-0.4.ebuild X-VCS-Directories: dev-python/gfloat/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: dc306a22689901bfac970b637160b9916cd130ea X-VCS-Branch: master Date: Sun, 3 Nov 2024 13:30:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 83ea48ec-7ef8-42a2-b0b1-067fc0c12671 X-Archives-Hash: be33b39f77ad8be91b63deead78a9f81 commit: dc306a22689901bfac970b637160b9916cd130ea Author: Michał Górny gentoo org> AuthorDate: Sun Nov 3 13:23:13 2024 +0000 Commit: Michał Górny gentoo 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 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 +}