commit:     be83627b1a634c56ffbadc79ddb73ba01c602b1d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 15 05:03:55 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jul 18 04:39:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be83627b

dev-python/tavern: Simplify EPYTEST_PLUGINS

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
Part-of: https://github.com/gentoo/gentoo/pull/43007
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/tavern/tavern-2.16.0.ebuild | 31 +++++++++++++------------------
 1 file changed, 13 insertions(+), 18 deletions(-)

diff --git a/dev-python/tavern/tavern-2.16.0.ebuild 
b/dev-python/tavern/tavern-2.16.0.ebuild
index 841dbd3d155c..ce42f586360f 100644
--- a/dev-python/tavern/tavern-2.16.0.ebuild
+++ b/dev-python/tavern/tavern-2.16.0.ebuild
@@ -42,28 +42,23 @@ BDEPEND="
        )
 "
 
-EPYTEST_PLUGINS=()
+EPYTEST_PLUGINS=( "${PN}" )
 distutils_enable_tests pytest
 
+EPYTEST_DESELECT=(
+       # requires grpc
+       tests/unit/test_extensions.py::TestGrpcCodes
+       # broken with paho-mqtt-2
+       tests/unit/test_mqtt.py::TestClient::test_context_connection_success
+)
+EPYTEST_IGNORE=(
+       # require grpc*
+       tavern/_plugins/grpc
+       tests/unit/tavern_grpc
+)
+
 src_prepare() {
        # strip unnecessary pins, upstream doesn't update them a lot
        sed -i -E -e 's:,?<=?[0-9.]+::' pyproject.toml || die
        distutils-r1_src_prepare
 }
-
-python_test() {
-       local EPYTEST_DESELECT=(
-               # requires grpc
-               tests/unit/test_extensions.py::TestGrpcCodes
-               # broken with paho-mqtt-2
-               
tests/unit/test_mqtt.py::TestClient::test_context_connection_success
-       )
-       local EPYTEST_IGNORE=(
-               # require grpc*
-               tavern/_plugins/grpc
-               tests/unit/tavern_grpc
-       )
-
-       local EPYTEST_PLUGINS=( tavern )
-       epytest
-}

Reply via email to