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 874C61382C5 for ; Sat, 19 Dec 2020 15:57:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A4F76E091B; Sat, 19 Dec 2020 15:57:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 8FE76E091B for ; Sat, 19 Dec 2020 15:57:24 +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 82558341157 for ; Sat, 19 Dec 2020 15:57:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1370E50 for ; Sat, 19 Dec 2020 15:57:22 +0000 (UTC) From: "Alfredo Tupone" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alfredo Tupone" Message-ID: <1608393429.659820a2c00645639e49e058018df06fe1c23089.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/funcy/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/funcy/funcy-1.14.ebuild X-VCS-Directories: dev-python/funcy/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: 659820a2c00645639e49e058018df06fe1c23089 X-VCS-Branch: master Date: Sat, 19 Dec 2020 15:57:22 +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: bbeb2f3f-a564-4375-b1b7-d60604af6aee X-Archives-Hash: ea5d8619edc685c1181fcca27fba05de commit: 659820a2c00645639e49e058018df06fe1c23089 Author: Alfredo Tupone gentoo org> AuthorDate: Sat Dec 19 15:57:09 2020 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Sat Dec 19 15:57:09 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=659820a2 dev-python/funcy: Add test Closes: https://bugs.gentoo.org/731832 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Alfredo Tupone gentoo.org> dev-python/funcy/funcy-1.14.ebuild | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/dev-python/funcy/funcy-1.14.ebuild b/dev-python/funcy/funcy-1.14.ebuild index dbae274d880..babc4c8350d 100644 --- a/dev-python/funcy/funcy-1.14.ebuild +++ b/dev-python/funcy/funcy-1.14.ebuild @@ -13,7 +13,19 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 x86" -IUSE="" +IUSE="test" +RESTRICT="!test? ( test )" DEPEND="" RDEPEND="${DEPEND}" +BDEPEND=" + ${RDEPEND} + test? ( + dev-python/whatever[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + )" + +python_test() { + distutils_install_for_testing --via-root + pytest || die "Tests fail with ${EPYTHON}" +}