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 E8518139337 for ; Mon, 2 Aug 2021 08:17:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F2223E093E; Mon, 2 Aug 2021 08:17:13 +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 D75EBE093E for ; Mon, 2 Aug 2021 08:17:13 +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 0592C34326F for ; Mon, 2 Aug 2021 08:17:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9600B823 for ; Mon, 2 Aug 2021 08:17:10 +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: <1627892199.8d0d06badb7fd3aa25e28fd925adb5a7b496ce2a.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/pytextile/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/pytextile/pytextile-4.0.1.ebuild X-VCS-Directories: app-text/pytextile/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 8d0d06badb7fd3aa25e28fd925adb5a7b496ce2a X-VCS-Branch: master Date: Mon, 2 Aug 2021 08:17:10 +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: 6cb0bad9-1e29-43c4-bfe5-f1fab6569a9f X-Archives-Hash: 64c6f802248afa1ed81b1e01fc1ec491 commit: 8d0d06badb7fd3aa25e28fd925adb5a7b496ce2a Author: Arthur Zamarin gmail com> AuthorDate: Fri Jul 30 11:19:04 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Aug 2 08:16:39 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d0d06ba app-text/pytextile: use distutils_enable_tests for tests Signed-off-by: Arthur Zamarin gmail.com> Signed-off-by: Michał Górny gentoo.org> app-text/pytextile/pytextile-4.0.1.ebuild | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/app-text/pytextile/pytextile-4.0.1.ebuild b/app-text/pytextile/pytextile-4.0.1.ebuild index 5e40cece116..917f4fe616e 100644 --- a/app-text/pytextile/pytextile-4.0.1.ebuild +++ b/app-text/pytextile/pytextile-4.0.1.ebuild @@ -17,39 +17,30 @@ SRC_URI="https://github.com/textile/python-textile/archive/${PV}.tar.gz -> ${P}. LICENSE="BSD" SLOT="0" KEYWORDS="amd64 ppc ppc64 sparc x86" -IUSE="test" -RESTRICT="!test? ( test )" RDEPEND=" dev-python/html5lib[${PYTHON_USEDEP}] dev-python/regex[${PYTHON_USEDEP}] dev-python/six[${PYTHON_USEDEP}]" -DEPEND=" - test? ( - ${RDEPEND} - dev-python/pytest[${PYTHON_USEDEP}] - )" S="${WORKDIR}/${MY_P}" +distutils_enable_tests pytest + src_prepare() { default # remove useless --cov arg injection rm pytest.ini || die # remove useless pytest-runner dep sed -e "s/pytest-runner//g" -i setup.py || die - - # remove tests that need network access - local my_drop_tests=( - test_getimagesize.py - test_imagesize.py - test_textile.py - ) - for test in ${my_drop_tests[@]}; - do rm "tests/$test" || die - done } python_test() { - pytest || die "Testsuite failed under ${EPYTHON}" + local deselect=( + # tests that need network access + tests/test_getimagesize.py + tests/test_imagesize.py + tests/test_textile.py + ) + epytest ${deselect[@]/#/--deselect } }