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 B3CBD1581FB for ; Sun, 25 Aug 2024 15:34:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 04C56E2A5C; Sun, 25 Aug 2024 15:33:51 +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 A7A87E2A59 for ; Sun, 25 Aug 2024 15:33:50 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 3/4] distutils-r1.eclass: Print pytest version as well (if used) Date: Sun, 25 Aug 2024 17:33:40 +0200 Message-ID: <20240825153341.21121-3-mgorny@gentoo.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240825153341.21121-1-mgorny@gentoo.org> References: <20240825153341.21121-1-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 5b9909a5-f3e0-4e4e-96f7-c9c7d2664b1c X-Archives-Hash: 926daf57fbf386d02da361729bf68403 Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 56fccd03f49e..02c988dc0cc4 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -919,6 +919,27 @@ _distutils-r1_print_package_versions() { esac fi + case ${_DISTUTILS_TEST_RUNNER} in + import-check) + packages+=( + dev-python/pytest + dev-python/pytest-import-check + ) + ;; + pytest) + packages+=( + dev-python/pytest + dev-python/pytest-asyncio + ) + if [[ -n ${EPYTEST_TIMEOUT} ]]; then + packages+=( dev-python/pytest-timeout ) + fi + if [[ ${EPYTEST_XDIST} ]]; then + packages+=( dev-python/pytest-xdist ) + fi + ;; + esac + local pkg einfo "Build system packages:" for pkg in "${packages[@]}"; do -- 2.46.0