From d8452e492de4389ffe780ed956e13db2da6a3fea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 3 May 2022 12:02:32 +0200 Subject: dev-python/matplotlib: Use xdist to speed tests up MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/matplotlib/matplotlib-3.5.2.ebuild | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'dev-python/matplotlib/matplotlib-3.5.2.ebuild') diff --git a/dev-python/matplotlib/matplotlib-3.5.2.ebuild b/dev-python/matplotlib/matplotlib-3.5.2.ebuild index 4184c7743b79..cf818c423210 100644 --- a/dev-python/matplotlib/matplotlib-3.5.2.ebuild +++ b/dev-python/matplotlib/matplotlib-3.5.2.ebuild @@ -6,7 +6,8 @@ EAPI=8 PYTHON_COMPAT=( python3_{8..10} ) PYTHON_REQ_USE='tk?,threads(+)' -inherit distutils-r1 flag-o-matic virtualx toolchain-funcs prefix +inherit distutils-r1 flag-o-matic multiprocessing prefix toolchain-funcs \ + virtualx FT_PV=2.6.1 DESCRIPTION="Pure python plotting library with matlab like syntax" @@ -109,6 +110,7 @@ BDEPEND=" dev-python/flaky[${PYTHON_USEDEP}] dev-python/mock[${PYTHON_USEDEP}] dev-python/psutil[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] >=dev-python/pygobject-3.40.1-r1:3[cairo?,${PYTHON_USEDEP}] >=www-servers/tornado-6.0.4[${PYTHON_USEDEP}] x11-libs/gtk+:3[introspection] @@ -275,7 +277,8 @@ python_test() { # speed tests up local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - nonfatal epytest --pyargs matplotlib -m "not network" || die + nonfatal epytest --pyargs matplotlib -m "not network" \ + -p xdist.plugin -n "$(makeopts_jobs)" || die } python_install() { -- cgit v1.2.3