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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1E28D13835D for ; Tue, 29 Dec 2020 11:46:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5FD59E0C37; Tue, 29 Dec 2020 11:46:07 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 425A1E0C24 for ; Tue, 29 Dec 2020 11:46:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5B2813410C5 for ; Tue, 29 Dec 2020 11:46:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A4A04489 for ; Tue, 29 Dec 2020 11:46:03 +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: <1609242359.bbc99d9e26800f182e698062bd5a02a0d8a17dc1.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/setuptools/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/setuptools/setuptools-51.1.1.ebuild X-VCS-Directories: dev-python/setuptools/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: bbc99d9e26800f182e698062bd5a02a0d8a17dc1 X-VCS-Branch: master Date: Tue, 29 Dec 2020 11:46:03 +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: 0371f7f2-427b-42d9-96ad-ee49b7b6f110 X-Archives-Hash: 87e0c1530786fb3e17c31fb818c9421e commit: bbc99d9e26800f182e698062bd5a02a0d8a17dc1 Author: Michał Górny gentoo org> AuthorDate: Tue Dec 29 09:30:57 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Dec 29 11:45:59 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbc99d9e dev-python/setuptools: Use pytest-xdist Signed-off-by: Michał Górny gentoo.org> dev-python/setuptools/setuptools-51.1.1.ebuild | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dev-python/setuptools/setuptools-51.1.1.ebuild b/dev-python/setuptools/setuptools-51.1.1.ebuild index 81b6a41f833..69dc6ffd79a 100644 --- a/dev-python/setuptools/setuptools-51.1.1.ebuild +++ b/dev-python/setuptools/setuptools-51.1.1.ebuild @@ -7,7 +7,7 @@ DISTUTILS_USE_SETUPTOOLS=manual PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 ) PYTHON_REQ_USE="xml(+)" -inherit distutils-r1 +inherit distutils-r1 multiprocessing DESCRIPTION="Collection of extensions to Distutils" HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/" @@ -24,6 +24,7 @@ BDEPEND=" dev-python/pip[${PYTHON_USEDEP}] dev-python/pytest-fixture-config[${PYTHON_USEDEP}] dev-python/pytest-virtualenv[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] >=dev-python/virtualenv-20[${PYTHON_USEDEP}] dev-python/wheel[${PYTHON_USEDEP}] ) @@ -42,12 +43,17 @@ DOCS=( {CHANGES,README}.rst ) python_test() { distutils_install_for_testing --via-root local deselect=( + # TODO setuptools/tests/test_easy_install.py::TestSetupRequires::test_setup_requires_with_allow_hosts + # this one's unhappy about pytest-xdist but one test is not worth + # losing the speed gain + setuptools/tests/test_build_meta.py::TestBuildMetaBackend::test_build_sdist_relative_path_import ) # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg # It tries to sandbox the test in a tempdir - HOME="${PWD}" pytest -vv setuptools ${deselect[@]/#/--deselect } || - die "Tests failed under ${EPYTHON}" + HOME="${PWD}" pytest -vv ${deselect[@]/#/--deselect } \ + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" \ + setuptools || die "Tests failed under ${EPYTHON}" } python_install() {