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 84FFF139695 for ; Sun, 7 May 2017 18:43:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D16B021C091; Sun, 7 May 2017 18:43:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A90E321C090 for ; Sun, 7 May 2017 18:43:35 +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 D27033416D5 for ; Sun, 7 May 2017 18:43:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 394877454 for ; Sun, 7 May 2017 18:43:32 +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: <1494182604.743b5c504e058d36b47e1574b5fe6f82dcf4118c.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/zc-buildout/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/zc-buildout/zc-buildout-2.5.3.ebuild X-VCS-Directories: dev-python/zc-buildout/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 743b5c504e058d36b47e1574b5fe6f82dcf4118c X-VCS-Branch: master Date: Sun, 7 May 2017 18:43:32 +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-Archives-Salt: 359fa0c1-8f4b-4928-a2d1-9dacc46761aa X-Archives-Hash: 4cbc1ae17110a8d45b5073c267c46ef3 commit: 743b5c504e058d36b47e1574b5fe6f82dcf4118c Author: Michał Górny gentoo org> AuthorDate: Thu May 4 18:50:16 2017 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun May 7 18:43:24 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=743b5c50 dev-python/zc-buildout: Partially enable tests Add missing test dependencies and python_test() implementation. Sadly, the tests fail hard with Python 3. dev-python/zc-buildout/zc-buildout-2.5.3.ebuild | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/dev-python/zc-buildout/zc-buildout-2.5.3.ebuild b/dev-python/zc-buildout/zc-buildout-2.5.3.ebuild index a49133684c6..a5324fbf46e 100644 --- a/dev-python/zc-buildout/zc-buildout-2.5.3.ebuild +++ b/dev-python/zc-buildout/zc-buildout-2.5.3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 @@ -16,18 +16,28 @@ SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" LICENSE="ZPL" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="test" RDEPEND=">=dev-python/setuptools-3.3[${PYTHON_USEDEP}]" -DEPEND="${RDEPEND}" +DEPEND="${RDEPEND} + test? ( dev-python/zope-testing[${PYTHON_USEDEP}] )" S="${WORKDIR}"/${MY_P} DOCS=( README.rst doc/tutorial.txt ) -# Tests require zope packages absent from portage # Prevent incorrect installation of data file python_prepare_all() { sed -e '/^ include_package_data/d' -i setup.py || die distutils-r1_python_prepare_all } + +python_test() { + if python_is_python3; then + ewarn "Tests are broken for ${EPYTHON}, skipping" + continue + fi + + distutils_install_for_testing + "${PYTHON}" src/zc/buildout/tests.py || die "Tests fail with ${EPYTHON}" +}