commit: 3229e9f67a15f5a4e9031cb7813be36556537b58
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 21 10:28:28 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jun 25 04:35:39 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3229e9f6
distutils-r1.eclass: Add dependencies for EPYTEST_PLUGINS
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
eclass/distutils-r1.eclass | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index ba97a95f5798..b9366d187555 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -561,6 +561,20 @@ distutils_enable_tests() {
test_pkgs+='
dev-python/pytest-xdist[${PYTHON_USEDEP}]'
fi
+ local plugin
+ _set_epytest_plugins
+ for plugin in "${EPYTEST_PLUGINS[@]}"; do
+ case ${plugin} in
+ pkgcore)
+ plugin=sys-apps/${plugin}
+ ;;
+ *)
+ plugin=dev-python/${plugin}
+ ;;
+ esac
+ test_pkgs+=" ${plugin}[\${PYTHON_USEDEP}]"
+ done
+
if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then
test_deps+="
${test_pkgs//'${PYTHON_USEDEP}'/${PYTHON_USEDEP}}"
else