1 |
commit: 923e332a0185db7f12cd1b3dfd9e321567436a7c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 23 22:01:20 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=923e332a |
7 |
|
8 |
dev-python/boto3: Use pytest-xdist to speed tests up |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/boto3/boto3-1.21.6.ebuild | 6 ++++-- |
13 |
dev-python/boto3/boto3-9999.ebuild | 6 ++++-- |
14 |
2 files changed, 8 insertions(+), 4 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/boto3/boto3-1.21.6.ebuild b/dev-python/boto3/boto3-1.21.6.ebuild |
17 |
index 48ea5aa483a1..08e404dd41b6 100644 |
18 |
--- a/dev-python/boto3/boto3-1.21.6.ebuild |
19 |
+++ b/dev-python/boto3/boto3-1.21.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="The AWS SDK for Python" |
28 |
HOMEPAGE="https://github.com/boto/boto3" |
29 |
@@ -32,6 +32,7 @@ RDEPEND=" |
30 |
BDEPEND=" |
31 |
test? ( |
32 |
dev-python/mock[${PYTHON_USEDEP}] |
33 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
34 |
) |
35 |
" |
36 |
|
37 |
@@ -56,5 +57,6 @@ python_prepare_all() { |
38 |
} |
39 |
|
40 |
python_test() { |
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/boto3/boto3-9999.ebuild b/dev-python/boto3/boto3-9999.ebuild |
47 |
index 48ea5aa483a1..08e404dd41b6 100644 |
48 |
--- a/dev-python/boto3/boto3-9999.ebuild |
49 |
+++ b/dev-python/boto3/boto3-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="The AWS SDK for Python" |
58 |
HOMEPAGE="https://github.com/boto/boto3" |
59 |
@@ -32,6 +32,7 @@ RDEPEND=" |
60 |
BDEPEND=" |
61 |
test? ( |
62 |
dev-python/mock[${PYTHON_USEDEP}] |
63 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
64 |
) |
65 |
" |
66 |
|
67 |
@@ -56,5 +57,6 @@ python_prepare_all() { |
68 |
} |
69 |
|
70 |
python_test() { |
71 |
- epytest tests/{functional,unit} |
72 |
+ epytest tests/{functional,unit} \ |
73 |
+ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
74 |
} |