From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 finch.gentoo.org (Postfix) with ESMTPS id A038215806C for ; Fri, 11 Jul 2025 04:03:55 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 6D548342196 for ; Fri, 11 Jul 2025 04:03:55 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 95D7D11055B; Fri, 11 Jul 2025 04:03:52 +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) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 8CD0811055B for ; Fri, 11 Jul 2025 04:03:52 +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 131D234205D for ; Fri, 11 Jul 2025 04:03:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7D9322F38 for ; Fri, 11 Jul 2025 04:03:50 +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: <1752206627.e9eb0e719037aae9363373ef1808e2cbcb9deb22.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/qiskit/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/qiskit/Manifest dev-python/qiskit/qiskit-2.1.1.ebuild X-VCS-Directories: dev-python/qiskit/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: e9eb0e719037aae9363373ef1808e2cbcb9deb22 X-VCS-Branch: master Date: Fri, 11 Jul 2025 04:03:50 +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: cf079d05-d4a1-4ba1-843e-904658524445 X-Archives-Hash: 21b0343d40bbb2a508327f4ea0ddab1f commit: e9eb0e719037aae9363373ef1808e2cbcb9deb22 Author: Michał Górny gentoo org> AuthorDate: Fri Jul 11 03:27:40 2025 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Jul 11 04:03:47 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9eb0e71 dev-python/qiskit: Bump to 2.1.1 Signed-off-by: Michał Górny gentoo.org> dev-python/qiskit/Manifest | 2 + dev-python/qiskit/qiskit-2.1.1.ebuild | 110 ++++++++++++++++++++++++++++++++++ 2 files changed, 112 insertions(+) diff --git a/dev-python/qiskit/Manifest b/dev-python/qiskit/Manifest index 70069b4872f5..5e51a62c55bd 100644 --- a/dev-python/qiskit/Manifest +++ b/dev-python/qiskit/Manifest @@ -1,2 +1,4 @@ DIST qiskit-2.1.0-crates.tar.xz 15412164 BLAKE2B 24a65f0ec256c2f848102c039106ef0fecb33be0fb00494f0ca707285e224ade0efd1a4a6a557dc5dd7d2224924e2b94a4a4585d8a9030a310f0f1a999ac0713 SHA512 779aca54c2da20f2558f5fab2de0ee22c861f2edd88dea17e79d1f7f796eda9612bcf45a08a0647032049e67e9c467236b493cb02efcf199e2951109c316e53a DIST qiskit-2.1.0.gh.tar.gz 7093669 BLAKE2B 9168e31826e1fa83a4424eadbdd6af5e87c88f1828d0a4a70db00fc00e94056233c530b384ce4d17947feb4610aa238518f6f05393b5d644fb038d9cccf0827d SHA512 18bf63c6ac381f1fd110cf08de0b0b7a4ea14c15c86835d6bd006d7e831d5623aec2b0cf17f4f3ac5aeb18e60d33ef245e8dd6aff4c219d3bd5033043e8900e0 +DIST qiskit-2.1.1-crates.tar.xz 15412164 BLAKE2B 24a65f0ec256c2f848102c039106ef0fecb33be0fb00494f0ca707285e224ade0efd1a4a6a557dc5dd7d2224924e2b94a4a4585d8a9030a310f0f1a999ac0713 SHA512 779aca54c2da20f2558f5fab2de0ee22c861f2edd88dea17e79d1f7f796eda9612bcf45a08a0647032049e67e9c467236b493cb02efcf199e2951109c316e53a +DIST qiskit-2.1.1.gh.tar.gz 7095152 BLAKE2B fa611f4a5e772ba66bc58bc2832f6779dee514b1956adfea03dc92f7745f607e0f7654d018f3b501f9f1ce740875c60b14c2d3c92142240ce324a6b91daa8f6a SHA512 7eade06c30c264979ceaffb2cd948dfea358973351165a66472150ab8e6bfc73e6c2c5107b4024352efcc01bea9beea897ac4fbc389e81df79e07e54f2673851 diff --git a/dev-python/qiskit/qiskit-2.1.1.ebuild b/dev-python/qiskit/qiskit-2.1.1.ebuild new file mode 100644 index 000000000000..d337e2bbd686 --- /dev/null +++ b/dev-python/qiskit/qiskit-2.1.1.ebuild @@ -0,0 +1,110 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..13} ) + +CRATES=" +" + +inherit cargo distutils-r1 + +MY_P=${P/_} +DESCRIPTION="An open-source SDK for working with quantum computers" +HOMEPAGE=" + https://github.com/Qiskit/qiskit/ + https://pypi.org/project/qiskit/ +" +SRC_URI=" + https://github.com/Qiskit/qiskit/archive/${PV/_}.tar.gz + -> ${MY_P}.gh.tar.gz + ${CARGO_CRATE_URIS} + https://github.com/gentoo-crate-dist/qiskit/releases/download/${PV/_}/${MY_P}-crates.tar.xz +" +S=${WORKDIR}/${MY_P} + +LICENSE="Apache-2.0" +# Dependent crate licenses +LICENSE+=" + Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 MIT MPL-2.0 + Unicode-3.0 ZLIB +" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+visualization" + +RDEPEND=" + >=dev-python/dill-0.3[${PYTHON_USEDEP}] + >=dev-python/numpy-1.17[${PYTHON_USEDEP}] + >=dev-python/python-constraint-1.4[${PYTHON_USEDEP}] + >=dev-python/rustworkx-0.15.0[${PYTHON_USEDEP}] + >=dev-python/scipy-1.5[${PYTHON_USEDEP}] + >=dev-python/stevedore-3.0.0[${PYTHON_USEDEP}] + visualization? ( + >=dev-python/matplotlib-3.3[${PYTHON_USEDEP}] + dev-python/pydot[${PYTHON_USEDEP}] + >=dev-python/pillow-4.2.1[${PYTHON_USEDEP}] + >=dev-python/pylatexenc-1.4[${PYTHON_USEDEP}] + >=dev-python/seaborn-0.9.0[${PYTHON_USEDEP}] + =dev-python/symengine-0.11.0[${PYTHON_USEDEP}] + >=dev-python/sympy-1.3[${PYTHON_USEDEP}] + ) +" +BDEPEND=" + >=dev-python/cython-0.27.1[${PYTHON_USEDEP}] + test? ( + app-text/poppler[png] + >=dev-python/ddt-1.4.4[${PYTHON_USEDEP}] + >=dev-python/networkx-2.2[${PYTHON_USEDEP}] + >=dev-python/qiskit-aer-0.14[${PYTHON_USEDEP}] + >=dev-python/scikit-learn-0.20.0[${PYTHON_USEDEP}] + ) +" + +# Files built without CFLAGS/LDFLAGS, acceptable for rust +QA_FLAGS_IGNORED=" + usr/lib.*/py.*/site-packages/qiskit/_accelerate.*.so + usr/lib.*/py.*/site-packages/qiskit/_qasm2.*.so +" + +EPYTEST_PLUGINS=( hypothesis ) +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + distutils-r1_src_prepare + + # strip forcing -Werror from tests that also leaks to other packages + sed -i -e '/filterwarnings.*error/d' test/utils/base.py || die +} + +python_test() { + local EPYTEST_DESELECT=( + # TODO + test/python/circuit/test_equivalence.py::TestEquivalenceLibraryVisualization::test_equivalence_draw + test/python/transpiler/test_unitary_synthesis_plugin.py::TestUnitarySynthesisPlugin + test/python/visualization/test_dag_drawer.py::TestDagDrawer::test_dag_drawer_no_register + # tiny image differences, sigh + test/python/visualization/test_gate_map.py::TestGateMap::test_plot_error_map_over_100_qubit + # TODO: failures from dill + test/python/circuit/test_parameters.py::TestParameters::test_transpiling_multiple_parameterized_circuits + test/python/compiler/test_transpiler.py::TestTranspile::test_delay_converts_expr_to_dt + test/python/compiler/test_transpiler.py::TestTranspile::test_transpile_two + test/python/transpiler/test_naming_transpiled_circuits.py::TestNamingTranspiledCircuits::test_multiple_circuits_name_list + ) + + local EPYTEST_IGNORE=( + # Breaks xdist + test/python/qasm2/test_parse_errors.py + test/python/transpiler/test_preset_passmanagers.py + ) + + rm -rf qiskit || die + # Run the Python test suite rather than everything under test/ which + # includes the 'randomized' suite. Upstream run that in a separate CI job. + epytest test/python +}