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 3EA32158090 for ; Tue, 10 May 2022 10:07:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C2A69E0954; Tue, 10 May 2022 10:07:05 +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 677C2E0954 for ; Tue, 10 May 2022 10:07:05 +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 3FF9C341503 for ; Tue, 10 May 2022 10:07:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A25D746D for ; Tue, 10 May 2022 10:07:00 +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: <1652177214.1ff14a8839e351ec88f03f61fb155e4fd697ecd0.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/flaky/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/flaky/flaky-3.7.0-r2.ebuild X-VCS-Directories: dev-python/flaky/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 1ff14a8839e351ec88f03f61fb155e4fd697ecd0 X-VCS-Branch: master Date: Tue, 10 May 2022 10:07:00 +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: fa7dc3ee-4521-4b8c-9b63-3166e066c954 X-Archives-Hash: 963dac306e9932db8b8d77ac95667432 commit: 1ff14a8839e351ec88f03f61fb155e4fd697ecd0 Author: Michał Górny gentoo org> AuthorDate: Tue May 10 09:44:55 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue May 10 10:06:54 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ff14a88 dev-python/flaky: Enable py3.11 Signed-off-by: Michał Górny gentoo.org> dev-python/flaky/flaky-3.7.0-r2.ebuild | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/dev-python/flaky/flaky-3.7.0-r2.ebuild b/dev-python/flaky/flaky-3.7.0-r2.ebuild index 0fc2e88f1e60..b5f07b9b77d0 100644 --- a/dev-python/flaky/flaky-3.7.0-r2.ebuild +++ b/dev-python/flaky/flaky-3.7.0-r2.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} pypy3 ) +PYTHON_COMPAT=( python3_{8..11} pypy3 ) inherit distutils-r1 @@ -22,15 +22,21 @@ DEPEND=" test? ( dev-python/genty[${PYTHON_USEDEP}] dev-python/mock[${PYTHON_USEDEP}] - dev-python/nose[${PYTHON_USEDEP}] dev-python/pytest[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/nose[${PYTHON_USEDEP}] + ' python3_{8..10} pypy3) ) " python_test() { - nosetests --with-flaky --exclude="test_nose_options_example" test/test_nose/ || die epytest -k 'example and not options' --doctest-modules test/test_pytest/ || die epytest -p no:flaky test/test_pytest/test_flaky_pytest_plugin.py || die - nosetests --with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py || die epytest --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py || die + + # please keep this in sync with python_gen_cond_dep! + if has "${EPYTHON}" python3_{8..10} pypy3; then + "${EPYTHON}" -m nose --with-flaky --exclude="test_nose_options_example" test/test_nose/ || die + "${EPYTHON}" -m nose --with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py || die + fi }