Gentoo Archives: gentoo-commits

From: Brian Dolbec <dolsen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-cov/, dev-python/pytest-cov/files/
Date: Fri, 07 Oct 2016 18:11:37
Message-Id: 1475863875.a48a999f771f52e39bce7c2b5c537df1cbc99189.dolsen@gentoo
1 commit: a48a999f771f52e39bce7c2b5c537df1cbc99189
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 6 00:39:03 2016 +0000
4 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 7 18:11:15 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a48a999f
7
8 dev-python/pytest-cov: Version bump, adds a new pkg dep
9
10 New dep added: dev-python/sphinx-pydoc-enhanced-theme
11 The new dep is the reason for the keywords being dropped.
12
13 Package-Manager: portage-2.3.1_p8
14
15 dev-python/pytest-cov/Manifest | 1 +
16 .../files/fix-for-deprecation-warnings.patch | 16 ++++++
17 dev-python/pytest-cov/pytest-cov-2.3.1.ebuild | 61 ++++++++++++++++++++++
18 3 files changed, 78 insertions(+)
19
20 diff --git a/dev-python/pytest-cov/Manifest b/dev-python/pytest-cov/Manifest
21 index eb6f008..b1359b1 100644
22 --- a/dev-python/pytest-cov/Manifest
23 +++ b/dev-python/pytest-cov/Manifest
24 @@ -3,3 +3,4 @@ DIST pytest-cov-1.8.1.tar.gz 8649 SHA256 31e5198c06f290e1e813d30ddd063a0401d9e3a
25 DIST pytest-cov-2.1.0.tar.gz 25992 SHA256 6e86c3ae3be9930fa3f1402651819b00169fb5e963d29ed03d390d152a608506 SHA512 f763e611b19f6769183583d275e28467f7cc5cc8a8fe5a4d3eb798ddf8d4e008732ec8c29b757aaf0fba0f5a660d92729499f3d388693f631ba73cc7a570d738 WHIRLPOOL 1ece60dea2fc1ff2da342313a0e67ee63a63cf35ece930f92b59c2283522698df0be4c10fb6951d3afff9fb1acffd37d207dcc4f0400109cb4f8c830d69a5857
26 DIST pytest-cov-2.2.0.tar.gz 29965 SHA256 2231d43f07760d6904dadceabca53ab16ef95ba58fff393861b64c0cab96c9d1 SHA512 3e6a2b648b12eff3d8f0aad12dda35a05820f6073e7f87e9c92ed6cca00fe031750da8f6c37eb81cf6ca7b2e4975dafffd7e3e901cb7b91e5c53c83b6e6b8420 WHIRLPOOL 9feff5557af5f4101e9ae508febf3479472781544b54345d5f53f0f19df5f40eb5af4ada2b44037f590445761ee9d3bffe14d729c465f880951d714eeb6ae491
27 DIST pytest-cov-2.2.1.tar.gz 33154 SHA256 a8b22e53e7f3b971454c35df99dffe21f4749f539491e935c55d3ff7e1b284fa SHA512 8f20cf1c42b4415c7decf8407582e64045c599aedf1970160d02e35e723f56fa095af26ee4390eabf2d32e209898b0a3dae8b7212ac81ecda64d6dbc7c83f790 WHIRLPOOL 92386bd1ff532e0c98f1dc01b3583315a626a030fb4f38e39eb4f8755e83f3901873fdcd406f9c8bc6393040fa198cc416dae5e176e88084ed6fb16264d3c056
28 +DIST pytest-cov-2.3.1.tar.gz 35378 SHA256 fa0a212283cdf52e2eecc24dd6459bb7687cc29adb60cb84258fab73be8dda0f SHA512 79770beb53fbb43b5d68311c2efd0accbfd890ab6dad299da8c1c0b3d26b54d984807313b1507900cda7004bfb50fedc0bd4341cfcfce47849a4f24fc8184f11 WHIRLPOOL 8b0fe223f0cbae0bb9c85b3d8d7f80456e164f3565bd7ba146b0eb34c1fd06c0447405dccd2642f0a4aec1819ff74277d2eb9b076e61438fbf69b35c472755e0
29
30 diff --git a/dev-python/pytest-cov/files/fix-for-deprecation-warnings.patch b/dev-python/pytest-cov/files/fix-for-deprecation-warnings.patch
31 new file mode 100644
32 index 00000000..a555ca5
33 --- /dev/null
34 +++ b/dev-python/pytest-cov/files/fix-for-deprecation-warnings.patch
35 @@ -0,0 +1,16 @@
36 +diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py
37 +index 6cbf341..614e53c 100644
38 +--- a/tests/test_pytest_cov.py
39 ++++ b/tests/test_pytest_cov.py
40 +@@ -337,7 +337,10 @@ def test_central_nonspecific(testdir):
41 + ])
42 +
43 + # multi-module coverage report
44 +- assert any(line.startswith('TOTAL ') for line in result.stdout.lines[-4:])
45 ++ # Fix test failure due to pytest deprecation warnings being
46 ++ # added to the expected output. Look in entire output lines instead.
47 ++ # assert any(line.startswith('TOTAL ') for line in result.stdout.lines[-4:])
48 ++ assert any(line.startswith('TOTAL ') for line in result.stdout.lines[-10:])
49 +
50 + assert result.ret == 0
51 +
52
53 diff --git a/dev-python/pytest-cov/pytest-cov-2.3.1.ebuild b/dev-python/pytest-cov/pytest-cov-2.3.1.ebuild
54 new file mode 100644
55 index 00000000..bcd9ef4
56 --- /dev/null
57 +++ b/dev-python/pytest-cov/pytest-cov-2.3.1.ebuild
58 @@ -0,0 +1,61 @@
59 +# Copyright 1999-2016 Gentoo Foundation
60 +# Distributed under the terms of the GNU General Public License v2
61 +# $Id$
62 +
63 +EAPI=6
64 +
65 +PYTHON_COMPAT=( python{2_7,3_{4,5}} pypy )
66 +
67 +inherit distutils-r1
68 +
69 +DESCRIPTION="py.test plugin for coverage reporting"
70 +HOMEPAGE="https://github.com/pytest-dev/pytest-cov https://pypi.python.org/pypi/pytest-cov"
71 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
72 +
73 +LICENSE="MIT"
74 +SLOT="0"
75 +KEYWORDS="~amd64 ~x86"
76 +IUSE="doc test"
77 +
78 +RDEPEND="
79 + >=dev-python/py-1.4.22[${PYTHON_USEDEP}]
80 + >=dev-python/pytest-2.7.3[${PYTHON_USEDEP}]
81 + >=dev-python/cov-core-1.14.0[${PYTHON_USEDEP}]
82 + >=dev-python/coverage-3.7.1[${PYTHON_USEDEP}]
83 + doc? (
84 + dev-python/sphinx[${PYTHON_USEDEP}]
85 + dev-python/sphinx-py3doc-enhanced-theme[${PYTHON_USEDEP}]
86 + )
87 +"
88 +DEPEND="
89 + dev-python/setuptools[${PYTHON_USEDEP}]
90 + test? (
91 + dev-python/virtualenv[${PYTHON_USEDEP}]
92 + dev-python/process-tests[${PYTHON_USEDEP}]
93 + || (
94 + >=dev-python/pytest-2.8.0[${PYTHON_USEDEP}]
95 + dev-python/pytest-cache[${PYTHON_USEDEP}]
96 + )
97 + =dev-python/pytest-xdist-1.15.0[${PYTHON_USEDEP}]
98 + dev-python/pytest-capturelog[${PYTHON_USEDEP}]
99 + )
100 +"
101 +
102 +PATCHES=(
103 + "${FILESDIR}/fix-for-deprecation-warnings.patch"
104 +)
105 +
106 +python_compile_all() {
107 + use doc && sphinx-build -b html docs _build/html
108 +}
109 +
110 +python_test() {
111 + PYTHONPATH="${S}/tests:${BUILD_DIR}/lib" \
112 + PYTEST_PLUGINS=${PN/-/_} \
113 + py.test -v -v -x || die "Tests failed under ${EPYTHON}"
114 +}
115 +
116 +python_install_all() {
117 + use doc && HTML_DOCS=( _build/html/. )
118 + distutils-r1_python_install_all
119 +}