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 (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DF76A158042 for ; Sat, 16 Nov 2024 13:12:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 37D0CE087B; Sat, 16 Nov 2024 13:12:49 +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 1DA85E087B for ; Sat, 16 Nov 2024 13:12:49 +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 3BAA7340DE6 for ; Sat, 16 Nov 2024 13:12:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CF2DDAE7 for ; Sat, 16 Nov 2024 13:12:46 +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: <1731762764.5d317f7ac973875931dac437daba4fc388e4a359.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mypy/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/mypy/mypy-1.13.0.ebuild X-VCS-Directories: dev-python/mypy/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 5d317f7ac973875931dac437daba4fc388e4a359 X-VCS-Branch: master Date: Sat, 16 Nov 2024 13:12:46 +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: 108b9474-6fc9-4c1e-a77f-ae069a9467b9 X-Archives-Hash: 4da9f786f6250e1cba78adf412bc3b99 commit: 5d317f7ac973875931dac437daba4fc388e4a359 Author: Michał Górny gentoo org> AuthorDate: Sat Nov 16 13:12:23 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Nov 16 13:12:44 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d317f7a dev-python/mypy: Fix testing with EPYTEST_JOBS=1 Signed-off-by: Michał Górny gentoo.org> dev-python/mypy/mypy-1.13.0.ebuild | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dev-python/mypy/mypy-1.13.0.ebuild b/dev-python/mypy/mypy-1.13.0.ebuild index efcb38ff536c..11cd237cb444 100644 --- a/dev-python/mypy/mypy-1.13.0.ebuild +++ b/dev-python/mypy/mypy-1.13.0.ebuild @@ -56,6 +56,13 @@ distutils_enable_tests pytest # test files (https://github.com/mypyc/mypyc/issues/1014) export CCACHE_DISABLE=1 +src_prepare() { + distutils-r1_src_prepare + + # don't force pytest-xdist, in case user asked for EPYTEST_JOBS=1 + sed -i -e '/addopts/s:-nauto::' pyproject.toml || die +} + python_compile() { local -x MYPY_USE_MYPYC=$(usex native-extensions 1 0) case ${EPYTHON} in