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 E7943138351 for ; Sun, 29 Mar 2020 13:21:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A84E4E0B7D; Sun, 29 Mar 2020 13:21:40 +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 8D51EE0B89 for ; Sun, 29 Mar 2020 13:21:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 D912034FB1F for ; Sun, 29 Mar 2020 13:21:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E5C271BE for ; Sun, 29 Mar 2020 13:21:33 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1585483306.57fe81e30629df5f2bee32aa4cf834022fe67fbe.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-benchmark/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild X-VCS-Directories: dev-python/pytest-benchmark/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 57fe81e30629df5f2bee32aa4cf834022fe67fbe X-VCS-Branch: master Date: Sun, 29 Mar 2020 13:21:33 +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: 23dea6af-7beb-4ab7-9851-95fb696d366a X-Archives-Hash: 7008a04b9b0b7759fd03a1c50867d0b1 Message-ID: <20200329132133.MhswVZdJswsfKrTJg5ZkOwrraM95V-vBtm44Sg-wmgM@z> commit: 57fe81e30629df5f2bee32aa4cf834022fe67fbe Author: Andrew Ammerlaan riseup net> AuthorDate: Sun Mar 29 12:01:46 2020 +0000 Commit: Andrew Ammerlaan riseup net> CommitDate: Sun Mar 29 12:01:46 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=57fe81e3 dev-python/pytest-benchmark: tried and failed to fix tests Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan riseup.net> dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild index 82b9e64..5652413 100644 --- a/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild +++ b/dev-python/pytest-benchmark/pytest-benchmark-3.2.3.ebuild @@ -3,7 +3,7 @@ EAPI="7" -#DISTUTILS_USE_SETUPTOOLS=rdepend +DISTUTILS_USE_SETUPTOOLS=rdepend PYTHON_COMPAT=( python3_6 ) inherit distutils-r1 @@ -19,6 +19,11 @@ LICENSE="BSD-2" SLOT="0" KEYWORDS="~amd64 ~x86" +# during tests import fails because conflict with the already installed files +# not sure how to fix, it would require setting some python variables but that would +# probably lead to all other packages being unfindable by the tests +RESTRICT="test" + RDEPEND=" dev-python/py-cpuinfo[${PYTHON_USEDEP}] " @@ -39,3 +44,10 @@ BDEPEND=" distutils_enable_tests pytest distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme + +python_test() { + # has to be run in source dir + PYTHONPATH="${S}" + cd "${S}" || die + pytest -vv || die "Tests fail with ${EPYTHON}" +}