1 |
commit: 04c867d592a9e070c4cc9888d833212d21af323a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 23 22:14:12 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 23 22:14:45 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04c867d5 |
7 |
|
8 |
app-admin/awscli: Use pytest-xdist to speed tests up |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
app-admin/awscli/awscli-1.22.61.ebuild | 10 ++++++++-- |
13 |
1 file changed, 8 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/app-admin/awscli/awscli-1.22.61.ebuild b/app-admin/awscli/awscli-1.22.61.ebuild |
16 |
index 2fb60d145aa8..21a285d18863 100644 |
17 |
--- a/app-admin/awscli/awscli-1.22.61.ebuild |
18 |
+++ b/app-admin/awscli/awscli-1.22.61.ebuild |
19 |
@@ -5,7 +5,7 @@ EAPI=8 |
20 |
|
21 |
DISTUTILS_USE_PEP517=setuptools |
22 |
PYTHON_COMPAT=( python3_{8..10} ) |
23 |
-inherit bash-completion-r1 distutils-r1 |
24 |
+inherit bash-completion-r1 distutils-r1 multiprocessing |
25 |
|
26 |
DESCRIPTION="Universal Command Line Environment for AWS" |
27 |
HOMEPAGE="https://pypi.org/project/awscli/" |
28 |
@@ -28,6 +28,11 @@ RDEPEND=" |
29 |
>=dev-python/s3transfer-0.4.0[${PYTHON_USEDEP}] |
30 |
dev-python/pyyaml[${PYTHON_USEDEP}] |
31 |
" |
32 |
+BDEPEND=" |
33 |
+ test? ( |
34 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
35 |
+ ) |
36 |
+" |
37 |
|
38 |
distutils_enable_tests pytest |
39 |
|
40 |
@@ -44,7 +49,8 @@ src_prepare() { |
41 |
|
42 |
python_test() { |
43 |
# integration tests require AWS credentials and Internet access |
44 |
- epytest tests/{functional,unit} |
45 |
+ epytest tests/{functional,unit} \ |
46 |
+ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
47 |
} |
48 |
|
49 |
python_install_all() { |