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 1EACD15806E for ; Sat, 27 May 2023 13:21:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E03D9E0872; Sat, 27 May 2023 13:21:08 +0000 (UTC) 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 pigeon.gentoo.org (Postfix) with ESMTPS id BB053E0872 for ; Sat, 27 May 2023 13:21:08 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B143A3410BC for ; Sat, 27 May 2023 13:21:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 631F4A8C for ; Sat, 27 May 2023 13:21:04 +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: <1685193654.3edd8f63560250a35e3bfa02d6fd6d5e2d64f27c.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/poetry-core/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/poetry-core/poetry-core-1.6.0.ebuild X-VCS-Directories: dev-python/poetry-core/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 3edd8f63560250a35e3bfa02d6fd6d5e2d64f27c X-VCS-Branch: master Date: Sat, 27 May 2023 13:21:04 +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: d6149733-9d95-4c6e-83cb-dc46d6f3a93b X-Archives-Hash: 95bc3628848848ae516437a30cfaa3c2 commit: 3edd8f63560250a35e3bfa02d6fd6d5e2d64f27c Author: Michał Górny gentoo org> AuthorDate: Sat May 27 12:54:49 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat May 27 13:20:54 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3edd8f63 dev-python/poetry-core: Enable py3.12 Signed-off-by: Michał Górny gentoo.org> dev-python/poetry-core/poetry-core-1.6.0.ebuild | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/dev-python/poetry-core/poetry-core-1.6.0.ebuild b/dev-python/poetry-core/poetry-core-1.6.0.ebuild index afab1fc77810..6861aeaf72b5 100644 --- a/dev-python/poetry-core/poetry-core-1.6.0.ebuild +++ b/dev-python/poetry-core/poetry-core-1.6.0.ebuild @@ -4,7 +4,8 @@ EAPI=8 DISTUTILS_USE_PEP517=standalone -PYTHON_COMPAT=( pypy3 python3_{10..11} ) +PYTHON_TESTED=( pypy3 python3_{10..11} ) +PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_12 ) inherit distutils-r1 @@ -35,11 +36,13 @@ RDEPEND=" BDEPEND=" ${RDEPEND} test? ( - dev-python/build[${PYTHON_USEDEP}] - dev-python/pytest-mock[${PYTHON_USEDEP}] - dev-python/tomli-w[${PYTHON_USEDEP}] - dev-python/virtualenv[${PYTHON_USEDEP}] - dev-vcs/git + $(python_gen_cond_dep ' + dev-python/build[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/tomli-w[${PYTHON_USEDEP}] + dev-python/virtualenv[${PYTHON_USEDEP}] + dev-vcs/git + ' "${PYTHON_TESTED[@]}") ) " @@ -61,6 +64,11 @@ src_prepare() { } python_test() { + if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then + einfo "Skippin tests on ${EPYTHON} (unported deps)" + return + fi + # needed for migration from <1.1 distutils_write_namespace poetry epytest