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 A9385138334 for ; Mon, 4 Nov 2019 21:01:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 51351E0A45; Mon, 4 Nov 2019 21:00:42 +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 B3595E09FE for ; Mon, 4 Nov 2019 21:00:41 +0000 (UTC) Received: from localhost.localdomain (c134-66.icpnet.pl [85.221.134.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 7798B34C899; Mon, 4 Nov 2019 21:00:39 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: python@gentoo.org, =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 2/4] dev-python/cssselect: Example use of distutils_enable_tests Date: Mon, 4 Nov 2019 22:00:11 +0100 Message-Id: <20191104210013.49303-2-mgorny@gentoo.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191104210013.49303-1-mgorny@gentoo.org> References: <20191104210013.49303-1-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 9fe655a2-618e-492f-a7d4-2b1dcd4230cd X-Archives-Hash: 1c822cbaea0ba72ea2c4277dd5c710f5 Signed-off-by: Michał Górny --- dev-python/cssselect/cssselect-1.0.3.ebuild | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dev-python/cssselect/cssselect-1.0.3.ebuild b/dev-python/cssselect/cssselect-1.0.3.ebuild index 2d91e85a4ac2..d4216abcd6e7 100644 --- a/dev-python/cssselect/cssselect-1.0.3.ebuild +++ b/dev-python/cssselect/cssselect-1.0.3.ebuild @@ -23,7 +23,7 @@ DEPEND=" doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) test? ( dev-python/lxml[${PYTHON_USEDEP}] )" -RDEPEND="" +distutils_enable_tests unittest python_prepare_all() { # prevent non essential d'load of files in doc build @@ -37,10 +37,6 @@ python_compile_all() { fi } -python_test() { - "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}" -} - python_install_all() { use doc && local HTML_DOCS=( docs/_build/html/. ) distutils-r1_python_install_all -- 2.23.0