1 |
commit: baa568842f957a7062485f6fd733aae1e1361b4f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 23 21:34:24 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 23 22:14:44 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=baa56884 |
7 |
|
8 |
dev-python/botocore: Use pytest-xdist to speed tests up |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/botocore/botocore-1.24.6.ebuild | 6 ++++-- |
13 |
dev-python/botocore/botocore-9999.ebuild | 6 ++++-- |
14 |
2 files changed, 8 insertions(+), 4 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/botocore/botocore-1.24.6.ebuild b/dev-python/botocore/botocore-1.24.6.ebuild |
17 |
index 79a1cd5da0e2..35239170e3a4 100644 |
18 |
--- a/dev-python/botocore/botocore-1.24.6.ebuild |
19 |
+++ b/dev-python/botocore/botocore-1.24.6.ebuild |
20 |
@@ -5,7 +5,7 @@ EAPI=8 |
21 |
|
22 |
DISTUTILS_USE_PEP517=setuptools |
23 |
PYTHON_COMPAT=( python3_{8..10} ) |
24 |
-inherit distutils-r1 |
25 |
+inherit distutils-r1 multiprocessing |
26 |
|
27 |
DESCRIPTION="Low-level, data-driven core of boto 3" |
28 |
HOMEPAGE="https://github.com/boto/botocore" |
29 |
@@ -29,6 +29,7 @@ RDEPEND=" |
30 |
BDEPEND=" |
31 |
test? ( |
32 |
dev-python/jsonschema[${PYTHON_USEDEP}] |
33 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
34 |
) |
35 |
" |
36 |
|
37 |
@@ -61,5 +62,6 @@ python_test() { |
38 |
tests/functional/test_six_threading.py::test_six_thread_safety |
39 |
) |
40 |
|
41 |
- epytest tests/{functional,unit} |
42 |
+ epytest tests/{functional,unit} \ |
43 |
+ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
44 |
} |
45 |
|
46 |
diff --git a/dev-python/botocore/botocore-9999.ebuild b/dev-python/botocore/botocore-9999.ebuild |
47 |
index 79a1cd5da0e2..35239170e3a4 100644 |
48 |
--- a/dev-python/botocore/botocore-9999.ebuild |
49 |
+++ b/dev-python/botocore/botocore-9999.ebuild |
50 |
@@ -5,7 +5,7 @@ EAPI=8 |
51 |
|
52 |
DISTUTILS_USE_PEP517=setuptools |
53 |
PYTHON_COMPAT=( python3_{8..10} ) |
54 |
-inherit distutils-r1 |
55 |
+inherit distutils-r1 multiprocessing |
56 |
|
57 |
DESCRIPTION="Low-level, data-driven core of boto 3" |
58 |
HOMEPAGE="https://github.com/boto/botocore" |
59 |
@@ -29,6 +29,7 @@ RDEPEND=" |
60 |
BDEPEND=" |
61 |
test? ( |
62 |
dev-python/jsonschema[${PYTHON_USEDEP}] |
63 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
64 |
) |
65 |
" |
66 |
|
67 |
@@ -61,5 +62,6 @@ python_test() { |
68 |
tests/functional/test_six_threading.py::test_six_thread_safety |
69 |
) |
70 |
|
71 |
- epytest tests/{functional,unit} |
72 |
+ epytest tests/{functional,unit} \ |
73 |
+ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
74 |
} |