1 |
commit: 4477c3130e1b0d94f0d377dda8ca9701f052890f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 3 09:16:20 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 3 09:25:22 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4477c313 |
7 |
|
8 |
dev-python/pytest-cov: Add missing test-dep on dev-python/fields |
9 |
|
10 |
dev-python/pytest-cov/pytest-cov-2.5.1-r1.ebuild | 57 ++++++++++++++++++++++++ |
11 |
1 file changed, 57 insertions(+) |
12 |
|
13 |
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 |
14 |
new file mode 100644 |
15 |
index 00000000000..41e16e50229 |
16 |
--- /dev/null |
17 |
+++ b/dev-python/pytest-cov/pytest-cov-2.5.1-r1.ebuild |
18 |
@@ -0,0 +1,57 @@ |
19 |
+# Copyright 1999-2018 Gentoo Foundation |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+ |
22 |
+EAPI=6 |
23 |
+ |
24 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) |
25 |
+ |
26 |
+inherit distutils-r1 |
27 |
+ |
28 |
+DESCRIPTION="py.test plugin for coverage reporting" |
29 |
+HOMEPAGE="https://github.com/pytest-dev/pytest-cov https://pypi.python.org/pypi/pytest-cov" |
30 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
31 |
+ |
32 |
+LICENSE="MIT" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~amd64 ~x86" |
35 |
+IUSE="doc test" |
36 |
+ |
37 |
+RDEPEND=" |
38 |
+ >=dev-python/py-1.4.22[${PYTHON_USEDEP}] |
39 |
+ >=dev-python/pytest-2.7.3[${PYTHON_USEDEP}] |
40 |
+ >=dev-python/cov-core-1.14.0[${PYTHON_USEDEP}] |
41 |
+ >=dev-python/coverage-3.7.1[${PYTHON_USEDEP}] |
42 |
+ doc? ( |
43 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
44 |
+ dev-python/sphinx-py3doc-enhanced-theme[${PYTHON_USEDEP}] |
45 |
+ ) |
46 |
+" |
47 |
+DEPEND=" |
48 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
49 |
+ test? ( |
50 |
+ dev-python/virtualenv[${PYTHON_USEDEP}] |
51 |
+ dev-python/fields[${PYTHON_USEDEP}] |
52 |
+ dev-python/process-tests[${PYTHON_USEDEP}] |
53 |
+ || ( |
54 |
+ >=dev-python/pytest-2.8.0[${PYTHON_USEDEP}] |
55 |
+ dev-python/pytest-cache[${PYTHON_USEDEP}] |
56 |
+ ) |
57 |
+ =dev-python/pytest-xdist-1.15.0[${PYTHON_USEDEP}] |
58 |
+ dev-python/pytest-capturelog[${PYTHON_USEDEP}] |
59 |
+ ) |
60 |
+" |
61 |
+ |
62 |
+python_compile_all() { |
63 |
+ use doc && sphinx-build -b html docs _build/html |
64 |
+} |
65 |
+ |
66 |
+python_test() { |
67 |
+ PYTHONPATH="${S}/tests:${BUILD_DIR}/lib" \ |
68 |
+ PYTEST_PLUGINS=${PN/-/_} \ |
69 |
+ py.test -v -v -x || die "Tests failed under ${EPYTHON}" |
70 |
+} |
71 |
+ |
72 |
+python_install_all() { |
73 |
+ use doc && HTML_DOCS=( _build/html/. ) |
74 |
+ distutils-r1_python_install_all |
75 |
+} |