commit:     d3656dee02415d6fc93faf4c452183cebccd1923
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 26 12:26:39 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Oct 26 13:36:46 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3656dee

dev-python/pdm: Use pytest-xdist

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

 dev-python/pdm/pdm-2.10.0.ebuild | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/dev-python/pdm/pdm-2.10.0.ebuild b/dev-python/pdm/pdm-2.10.0.ebuild
index 67faee70f040..829b67f4dbf6 100644
--- a/dev-python/pdm/pdm-2.10.0.ebuild
+++ b/dev-python/pdm/pdm-2.10.0.ebuild
@@ -6,7 +6,7 @@ EAPI=8
 DISTUTILS_USE_PEP517=pdm-backend
 PYTHON_COMPAT=( python3_{10..11} )
 
-inherit distutils-r1 pypi
+inherit distutils-r1 multiprocessing pypi
 
 DESCRIPTION="Python package and dependency manager supporting the latest PEP 
standards"
 HOMEPAGE="
@@ -45,6 +45,7 @@ BDEPEND="
        test? (
                dev-python/pytest-mock[${PYTHON_USEDEP}]
                dev-python/pytest-httpserver[${PYTHON_USEDEP}]
+               dev-python/pytest-xdist[${PYTHON_USEDEP}]
        )
 "
 
@@ -72,5 +73,8 @@ python_test() {
                tests/test_project.py::test_project_packages_path
        )
 
-       epytest -m "not network and not integration and not path"
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       epytest  -m "not network and not integration and not path" \
+               -p pytest_mock \
+               -p xdist -n "$(makeopts_jobs)" --dist=worksteal
 }

Reply via email to