sys-apps/portage: use xdist, epytest-style formatting

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-08-19 17:39:35 +01:00
parent 09baaec9f7
commit fe07031dfb
2 changed files with 14 additions and 4 deletions
+7 -2
View File
@@ -7,7 +7,7 @@ PYTHON_COMPAT=( pypy3 python3_{10..12} )
PYTHON_REQ_USE='bzip2(+),threads(+)'
TMPFILES_OPTIONAL=1
inherit meson linux-info python-r1 tmpfiles
inherit meson linux-info multiprocessing python-r1 tmpfiles
DESCRIPTION="The package management and distribution system for Gentoo"
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage"
@@ -37,7 +37,10 @@ BDEPEND="
$(python_gen_cond_dep '
dev-python/setuptools[${PYTHON_USEDEP}]
' python3_12)
test? ( dev-vcs/git )
test? (
dev-vcs/git
dev-python/pytest-xdist[${PYTHON_USEDEP}]
)
"
DEPEND="
${PYTHON_DEPS}
@@ -153,6 +156,8 @@ src_compile() {
}
src_test() {
local -x PYTEST_ADDOPTS="-vv -ra -l -o console_output_style=count -n $(makeopts_jobs) --dist=worksteal"
python_foreach_impl meson_src_test --no-rebuild --verbose
}
+7 -2
View File
@@ -7,7 +7,7 @@ PYTHON_COMPAT=( pypy3 python3_{10..12} )
PYTHON_REQ_USE='bzip2(+),threads(+)'
TMPFILES_OPTIONAL=1
inherit meson linux-info python-r1 tmpfiles
inherit meson linux-info multiprocessing python-r1 tmpfiles
DESCRIPTION="The package management and distribution system for Gentoo"
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage"
@@ -37,7 +37,10 @@ BDEPEND="
$(python_gen_cond_dep '
dev-python/setuptools[${PYTHON_USEDEP}]
' python3_12)
test? ( dev-vcs/git )
test? (
dev-vcs/git
dev-python/pytest-xdist[${PYTHON_USEDEP}]
)
"
DEPEND="
${PYTHON_DEPS}
@@ -153,6 +156,8 @@ src_compile() {
}
src_test() {
local -x PYTEST_ADDOPTS="-vv -ra -l -o console_output_style=count -n $(makeopts_jobs) --dist=worksteal"
python_foreach_impl meson_src_test --no-rebuild --verbose
}