1 |
commit: d8452e492de4389ffe780ed956e13db2da6a3fea |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 3 10:02:32 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 3 10:20:02 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8452e49 |
7 |
|
8 |
dev-python/matplotlib: Use xdist to speed tests up |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/matplotlib/matplotlib-3.5.2.ebuild | 7 +++++-- |
13 |
1 file changed, 5 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/matplotlib/matplotlib-3.5.2.ebuild b/dev-python/matplotlib/matplotlib-3.5.2.ebuild |
16 |
index 4184c7743b79..cf818c423210 100644 |
17 |
--- a/dev-python/matplotlib/matplotlib-3.5.2.ebuild |
18 |
+++ b/dev-python/matplotlib/matplotlib-3.5.2.ebuild |
19 |
@@ -6,7 +6,8 @@ EAPI=8 |
20 |
PYTHON_COMPAT=( python3_{8..10} ) |
21 |
PYTHON_REQ_USE='tk?,threads(+)' |
22 |
|
23 |
-inherit distutils-r1 flag-o-matic virtualx toolchain-funcs prefix |
24 |
+inherit distutils-r1 flag-o-matic multiprocessing prefix toolchain-funcs \ |
25 |
+ virtualx |
26 |
|
27 |
FT_PV=2.6.1 |
28 |
DESCRIPTION="Pure python plotting library with matlab like syntax" |
29 |
@@ -109,6 +110,7 @@ BDEPEND=" |
30 |
dev-python/flaky[${PYTHON_USEDEP}] |
31 |
dev-python/mock[${PYTHON_USEDEP}] |
32 |
dev-python/psutil[${PYTHON_USEDEP}] |
33 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
34 |
>=dev-python/pygobject-3.40.1-r1:3[cairo?,${PYTHON_USEDEP}] |
35 |
>=www-servers/tornado-6.0.4[${PYTHON_USEDEP}] |
36 |
x11-libs/gtk+:3[introspection] |
37 |
@@ -275,7 +277,8 @@ python_test() { |
38 |
|
39 |
# speed tests up |
40 |
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 |
41 |
- nonfatal epytest --pyargs matplotlib -m "not network" || die |
42 |
+ nonfatal epytest --pyargs matplotlib -m "not network" \ |
43 |
+ -p xdist.plugin -n "$(makeopts_jobs)" || die |
44 |
} |
45 |
|
46 |
python_install() { |