From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9FC85158020 for ; Sun, 6 Nov 2022 14:06:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6D253E0921; Sun, 6 Nov 2022 14:06:33 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 58015E0921 for ; Sun, 6 Nov 2022 14:06:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9A432340B9C for ; Sun, 6 Nov 2022 14:06:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CFCEB703 for ; Sun, 6 Nov 2022 14:06:30 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1667743587.31950d58c54ab9c23f1b5487ab9db2d0b3c5aaec.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit-terra/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/qiskit-terra/qiskit-terra-0.22.0-r1.ebuild X-VCS-Directories: dev-python/qiskit-terra/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 31950d58c54ab9c23f1b5487ab9db2d0b3c5aaec X-VCS-Branch: master Date: Sun, 6 Nov 2022 14:06:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e407bef5-d126-404e-8634-373b79dbc295 X-Archives-Hash: a13fecf01acbaab459aa89431579226c commit: 31950d58c54ab9c23f1b5487ab9db2d0b3c5aaec Author: Michał Górny gentoo org> AuthorDate: Sun Nov 6 14:03:59 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Nov 6 14:06:27 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31950d58 dev-python/qiskit-terra: Use EPYTEST_*, fix tests Signed-off-by: Michał Górny gentoo.org> .../qiskit-terra/qiskit-terra-0.22.0-r1.ebuild | 25 ++++++++++------------ 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/dev-python/qiskit-terra/qiskit-terra-0.22.0-r1.ebuild b/dev-python/qiskit-terra/qiskit-terra-0.22.0-r1.ebuild index fd442eceacd3..b25eb56cf16e 100644 --- a/dev-python/qiskit-terra/qiskit-terra-0.22.0-r1.ebuild +++ b/dev-python/qiskit-terra/qiskit-terra-0.22.0-r1.ebuild @@ -123,25 +123,22 @@ BDEPEND=" distutils_enable_tests pytest -# Small issues with the tests. -# qiskit.Aer module depends on qiskit-terra, it cannot be used, -# and an exact comparison of float switched to approximate comparison. -#PATCHES=( "${FILESDIR}/qiskit-terra-0.19.2-test-corrections.patch" ) - src_prepare() { find -name '*.py' -exec sed -i -e 's:retworkx:rustworkx:' {} + || die distutils-r1_src_prepare } python_test() { - # We have to hide the source code directory so tests - # do not use these, but instead the compiled library. - mv qiskit qiskit.hidden || die - - # Some small tests are failing which test optional features. - # Why they fail is still under investigation. - # transpiler_equivalence tests take too long time, they are also skipped. - 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)' + local EPYTEST_DESELECT=( + # TODO + test/python/transpiler/test_unitary_synthesis_plugin.py::TestUnitarySynthesisPlugin + test/python/transpiler/test_unitary_synthesis.py::TestUnitarySynthesis::test_two_qubit_synthesis_not_pulse_optimal + ) + local EPYTEST_IGNORE=( + # TODO, also apparently slow + test/randomized/test_transpiler_equivalence.py + ) - mv qiskit.hidden qiskit || die + rm -rf qiskit || die + epytest -p xdist -n "$(makeopts_jobs)" }