commit: 32c4eb987cf4216b877b9c4efb54060fcd6415a5
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 8 16:32:51 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Mar 8 16:32:51 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32c4eb98
dev-python/zmq-anyio: Support testing without dev-python/trio
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/zmq-anyio/zmq-anyio-0.3.6.ebuild | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/dev-python/zmq-anyio/zmq-anyio-0.3.6.ebuild
b/dev-python/zmq-anyio/zmq-anyio-0.3.6.ebuild
index 179d64d478c6..2ab466b4a87a 100644
--- a/dev-python/zmq-anyio/zmq-anyio-0.3.6.ebuild
+++ b/dev-python/zmq-anyio/zmq-anyio-0.3.6.ebuild
@@ -17,6 +17,7 @@ HOMEPAGE="
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
+IUSE="test-rust"
RDEPEND="
<dev-python/anyio-5[${PYTHON_USEDEP}]
@@ -28,7 +29,9 @@ RDEPEND="
"
BDEPEND="
test? (
- >=dev-python/trio-0.27.0[${PYTHON_USEDEP}]
+ test-rust? (
+ >=dev-python/trio-0.27.0[${PYTHON_USEDEP}]
+ )
)
"
@@ -40,6 +43,11 @@ PATCHES=(
)
python_test() {
+ local args=()
+ if ! has_version "dev-python/trio[${PYTHON_USEDEP}]"; then
+ args+=( -k "not trio" )
+ fi
+
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- epytest -p anyio
+ epytest -p anyio "${args[@]}"
}