1 |
commit: 173bb4015477ec628b948cef72540f66e4e8fe3b |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 30 21:09:20 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 30 21:09:20 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=173bb401 |
7 |
|
8 |
dev-python/qiskit-terra: use xdist for tests |
9 |
|
10 |
Huge speedup. |
11 |
|
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
dev-python/qiskit-terra/qiskit-terra-0.22.0.ebuild | 5 +++-- |
15 |
1 file changed, 3 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/qiskit-terra/qiskit-terra-0.22.0.ebuild b/dev-python/qiskit-terra/qiskit-terra-0.22.0.ebuild |
18 |
index 21deb84ad942..7a0c507d8577 100644 |
19 |
--- a/dev-python/qiskit-terra/qiskit-terra-0.22.0.ebuild |
20 |
+++ b/dev-python/qiskit-terra/qiskit-terra-0.22.0.ebuild |
21 |
@@ -74,7 +74,7 @@ CRATES=" |
22 |
DISTUTILS_USE_PEP517=setuptools |
23 |
PYTHON_COMPAT=( python3_{8..10} ) |
24 |
|
25 |
-inherit cargo distutils-r1 |
26 |
+inherit cargo distutils-r1 multiprocessing |
27 |
|
28 |
DESCRIPTION="Terra is the foundation on which Qiskit is built" |
29 |
HOMEPAGE="https://github.com/Qiskit/qiskit-terra" |
30 |
@@ -115,6 +115,7 @@ BDEPEND=" |
31 |
>=dev-python/ddt-1.4.4[${PYTHON_USEDEP}] |
32 |
>=dev-python/hypothesis-4.24.3[${PYTHON_USEDEP}] |
33 |
>=dev-python/networkx-2.2[${PYTHON_USEDEP}] |
34 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
35 |
dev-python/qiskit-aer[${PYTHON_USEDEP}] |
36 |
>=sci-libs/scikit-learn-0.20.0[${PYTHON_USEDEP}] |
37 |
) |
38 |
@@ -135,7 +136,7 @@ python_test() { |
39 |
# Some small tests are failing which test optional features. |
40 |
# Why they fail is still under investigation. |
41 |
# transpiler_equivalence tests take too long time, they are also skipped. |
42 |
- epytest -k 'not (TestOptions and test_copy) and not TestUnitarySynthesisPlugin and not test_transpiler_equivalence and not (TestPauliSumOp and test_to_instruction)' |
43 |
+ epytest -n "$(makeopts_jobs)" -k 'not (TestOptions and test_copy) and not TestUnitarySynthesisPlugin and not test_transpiler_equivalence and not (TestPauliSumOp and test_to_instruction)' |
44 |
|
45 |
mv qiskit.hidden qiskit || die |
46 |
} |