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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E40ED13933E for ; Thu, 1 Jul 2021 14:45:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 44F97E08AD; Thu, 1 Jul 2021 14:45:31 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2BD05E08AD for ; Thu, 1 Jul 2021 14:45:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 50A4C335D20 for ; Thu, 1 Jul 2021 14:45:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E92087C0 for ; Thu, 1 Jul 2021 14:45:28 +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: <1625150683.0202da4e5c38bcce267b8af0591cba4017fa899d.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/ipython/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/ipython/ipython-7.25.0.ebuild X-VCS-Directories: dev-python/ipython/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 0202da4e5c38bcce267b8af0591cba4017fa899d X-VCS-Branch: master Date: Thu, 1 Jul 2021 14:45:28 +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: fb2dd1d9-53e8-40ff-a82b-1d801a9eb30a X-Archives-Hash: be34ff50b874ae47c048d6eec0802969 commit: 0202da4e5c38bcce267b8af0591cba4017fa899d Author: Michał Górny gentoo org> AuthorDate: Thu Jul 1 12:44:19 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Jul 1 14:44:43 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0202da4e dev-python/ipython: Port to py3.10 Signed-off-by: Michał Górny gentoo.org> dev-python/ipython/ipython-7.25.0.ebuild | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/dev-python/ipython/ipython-7.25.0.ebuild b/dev-python/ipython/ipython-7.25.0.ebuild index 5297ddabde6..b02a0118d37 100644 --- a/dev-python/ipython/ipython-7.25.0.ebuild +++ b/dev-python/ipython/ipython-7.25.0.ebuild @@ -4,7 +4,7 @@ EAPI=7 DISTUTILS_USE_SETUPTOOLS=no -PYTHON_COMPAT=( python3_{8..9} ) +PYTHON_COMPAT=( python3_{8..10} ) PYTHON_REQ_USE='readline,sqlite,threads(+)' inherit distutils-r1 optfeature virtualx @@ -57,12 +57,18 @@ BDEPEND=" distutils_enable_tests pytest RDEPEND+=" - nbconvert? ( dev-python/nbconvert[${PYTHON_USEDEP}] )" + nbconvert? ( + $(python_gen_cond_dep ' + dev-python/nbconvert[${PYTHON_USEDEP}] + ' python3_{8..9}) + )" PDEPEND=" notebook? ( - dev-python/notebook[${PYTHON_USEDEP}] - dev-python/ipywidgets[${PYTHON_USEDEP}] - dev-python/widgetsnbextension[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/notebook[${PYTHON_USEDEP}] + dev-python/ipywidgets[${PYTHON_USEDEP}] + dev-python/widgetsnbextension[${PYTHON_USEDEP}] + ' python3_{8..9}) ) qt5? ( dev-python/qtconsole[${PYTHON_USEDEP}] ) smp? ( @@ -98,8 +104,15 @@ python_compile_all() { fi } -src_test() { - virtx distutils-r1_src_test +python_test() { + local deselect=() + [[ ${EPYTHON} == python3.10 ]] && deselect+=( + # fails due to changed argparse output + IPython/core/tests/test_magic_arguments.py::test_magic_arguments + # py3.10 API incompat, doesn't look important + IPython/lib/tests/test_pretty.py::test_pprint_heap_allocated_type + ) + virtx epytest ${deselect[@]/#/--deselect } } python_install() {