commit:     944b88858f2e845f9eb49e9a4d5d81749abff412
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 27 12:13:51 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Nov 27 12:15:00 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=944b8885

dev-python/hatch: Use EPYTEST_PLUGINS to fix running tests

There are still other regressions, but this at least fixes outdated
plugin entry point.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/hatch/hatch-1.14.1.ebuild | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/dev-python/hatch/hatch-1.14.1.ebuild 
b/dev-python/hatch/hatch-1.14.1.ebuild
index f1b208a03bb2..51042065fe17 100644
--- a/dev-python/hatch/hatch-1.14.1.ebuild
+++ b/dev-python/hatch/hatch-1.14.1.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=hatchling
-PYTHON_COMPAT=( pypy3 pypy3_11 python3_{10..13} )
+PYTHON_COMPAT=( pypy3_11 python3_{11..13} )
 
 inherit distutils-r1 pypi
 
@@ -45,12 +45,11 @@ BDEPEND="
                dev-python/editables[${PYTHON_USEDEP}]
                dev-python/filelock[${PYTHON_USEDEP}]
                dev-python/flit-core[${PYTHON_USEDEP}]
-               dev-python/pyfakefs[${PYTHON_USEDEP}]
-               dev-python/pytest-mock[${PYTHON_USEDEP}]
                dev-python/trustme[${PYTHON_USEDEP}]
        )
 "
 
+EPYTEST_PLUGINS=( pyfakefs pytest-mock )
 EPYTEST_XDIST=1
 distutils_enable_tests pytest
 
@@ -71,7 +70,5 @@ python_test() {
                tests/backend
        )
 
-       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
-       epytest -p pytest_fakefs -p pytest_mock \
-               -m "not requires_internet and not requires_docker"
+       epytest -m "not requires_internet and not requires_docker"
 }

Reply via email to