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 7B64D1580EB for ; Fri, 23 May 2025 16:53:35 +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 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 54E363435D2 for ; Fri, 23 May 2025 16:53:35 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 6370211047D; Fri, 23 May 2025 16:53:32 +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) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 5996D11047D for ; Fri, 23 May 2025 16:53:32 +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 12C423435B2 for ; Fri, 23 May 2025 16:53:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 77FE0275F for ; Fri, 23 May 2025 16:53: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: <1748019147.32a5972280c1c9fbf8dd5af014df541fe110f0e6.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/selenium/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/selenium/selenium-4.32.0.ebuild X-VCS-Directories: dev-python/selenium/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 32a5972280c1c9fbf8dd5af014df541fe110f0e6 X-VCS-Branch: master Date: Fri, 23 May 2025 16:53: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: ca843bd8-10f2-4d5c-98f2-e46907bac8e6 X-Archives-Hash: 37de2e0b0f31ce670fca2f3d0d6c49cf commit: 32a5972280c1c9fbf8dd5af014df541fe110f0e6 Author: Michał Górny gentoo org> AuthorDate: Fri May 23 16:39:30 2025 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri May 23 16:52:27 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32a59722 dev-python/selenium: Add test deps only for PYTHON_TESTED impls Signed-off-by: Michał Górny gentoo.org> dev-python/selenium/selenium-4.32.0.ebuild | 34 +++++++++++++++++------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/dev-python/selenium/selenium-4.32.0.ebuild b/dev-python/selenium/selenium-4.32.0.ebuild index f630c84eed56..e0b4478aac9c 100644 --- a/dev-python/selenium/selenium-4.32.0.ebuild +++ b/dev-python/selenium/selenium-4.32.0.ebuild @@ -30,7 +30,8 @@ SRC_URI+=" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" -IUSE="test-rust" +IUSE="test test-rust" +RESTRICT="!test? ( test )" RDEPEND=" >=dev-python/certifi-2021.10.8[${PYTHON_USEDEP}] @@ -47,24 +48,25 @@ RDEPEND=" " BDEPEND=" test? ( - dev-python/filetype[${PYTHON_USEDEP}] - dev-python/pytest-mock[${PYTHON_USEDEP}] - test-rust? ( - dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - dev-util/selenium-manager - net-misc/geckodriver - || ( - www-client/firefox - www-client/firefox-bin + ${RDEPEND} + $(python_gen_cond_dep ' + dev-python/filetype[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + test-rust? ( + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-util/selenium-manager + net-misc/geckodriver + || ( + www-client/firefox + www-client/firefox-bin + ) ) - ) + ' "${PYTHON_TESTED[@]}") ) " -# xdist is causing random pytest crashes with high job numbers -distutils_enable_tests pytest - src_prepare() { distutils-r1_src_prepare @@ -74,6 +76,8 @@ src_prepare() { } python_test() { + # NB: xdist is causing random pytest crashes with high job numbers + if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then einfo "Skipping tests on ${EPYTHON}" return