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 C361E138206 for ; Wed, 3 Jan 2018 09:25:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 08558E0845; Wed, 3 Jan 2018 09:25:33 +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 D8733E0845 for ; Wed, 3 Jan 2018 09:25:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 A97E6335C09 for ; Wed, 3 Jan 2018 09:25:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F3B46195 for ; Wed, 3 Jan 2018 09:25:29 +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: <1514971522.4477c3130e1b0d94f0d377dda8ca9701f052890f.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-cov/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pytest-cov/pytest-cov-2.5.1-r1.ebuild X-VCS-Directories: dev-python/pytest-cov/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 4477c3130e1b0d94f0d377dda8ca9701f052890f X-VCS-Branch: master Date: Wed, 3 Jan 2018 09:25:29 +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: 332c646d-c418-4e92-bd3e-e9a7ac0cad8e X-Archives-Hash: 72a96e12af27376ca3e187afb36dd190 commit: 4477c3130e1b0d94f0d377dda8ca9701f052890f Author: Michał Górny gentoo org> AuthorDate: Wed Jan 3 09:16:20 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Jan 3 09:25:22 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4477c313 dev-python/pytest-cov: Add missing test-dep on dev-python/fields dev-python/pytest-cov/pytest-cov-2.5.1-r1.ebuild | 57 ++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/dev-python/pytest-cov/pytest-cov-2.5.1-r1.ebuild b/dev-python/pytest-cov/pytest-cov-2.5.1-r1.ebuild new file mode 100644 index 00000000000..41e16e50229 --- /dev/null +++ b/dev-python/pytest-cov/pytest-cov-2.5.1-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) + +inherit distutils-r1 + +DESCRIPTION="py.test plugin for coverage reporting" +HOMEPAGE="https://github.com/pytest-dev/pytest-cov https://pypi.python.org/pypi/pytest-cov" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +RDEPEND=" + >=dev-python/py-1.4.22[${PYTHON_USEDEP}] + >=dev-python/pytest-2.7.3[${PYTHON_USEDEP}] + >=dev-python/cov-core-1.14.0[${PYTHON_USEDEP}] + >=dev-python/coverage-3.7.1[${PYTHON_USEDEP}] + doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx-py3doc-enhanced-theme[${PYTHON_USEDEP}] + ) +" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/virtualenv[${PYTHON_USEDEP}] + dev-python/fields[${PYTHON_USEDEP}] + dev-python/process-tests[${PYTHON_USEDEP}] + || ( + >=dev-python/pytest-2.8.0[${PYTHON_USEDEP}] + dev-python/pytest-cache[${PYTHON_USEDEP}] + ) + =dev-python/pytest-xdist-1.15.0[${PYTHON_USEDEP}] + dev-python/pytest-capturelog[${PYTHON_USEDEP}] + ) +" + +python_compile_all() { + use doc && sphinx-build -b html docs _build/html +} + +python_test() { + PYTHONPATH="${S}/tests:${BUILD_DIR}/lib" \ + PYTEST_PLUGINS=${PN/-/_} \ + py.test -v -v -x || die "Tests failed under ${EPYTHON}" +} + +python_install_all() { + use doc && HTML_DOCS=( _build/html/. ) + distutils-r1_python_install_all +}