1 |
commit: df94abc7f98124e113996a6f5c2ff5e5d4ae8e3a |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 1 10:39:44 2020 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 1 10:40:29 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df94abc7 |
7 |
|
8 |
dev-python/pytest-cov: bump to 2.10.1 |
9 |
|
10 |
Package-Manager: Portage-3.0.10, Repoman-3.0.2 |
11 |
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org> |
12 |
|
13 |
dev-python/pytest-cov/Manifest | 1 + |
14 |
dev-python/pytest-cov/pytest-cov-2.10.1.ebuild | 51 ++++++++++++++++++++++++++ |
15 |
2 files changed, 52 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pytest-cov/Manifest b/dev-python/pytest-cov/Manifest |
18 |
index 89a5464f923..95a1cc552cf 100644 |
19 |
--- a/dev-python/pytest-cov/Manifest |
20 |
+++ b/dev-python/pytest-cov/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
+DIST pytest-cov-2.10.1.tar.gz 56822 BLAKE2B 45eba205a2c6687882445d3554cedc04ad556854f5eac8eb0fab7fda84cdf2736b034dfdceb664293d1add153a5271403eb94585a863676ccfef9ab09727d165 SHA512 2dd575141754a417f34b414ba7e07291c273abdc63a6b7dc72d317c6ec10076b83c2ad78eeefdda7cee1fd6f56932d838602da4dd760a1c0d12095be94c22568 |
23 |
DIST pytest-cov-2.8.1.tar.gz 47661 BLAKE2B 590fd50b69d01a71b20982d8cdbed0698ebe24c290d791bb44c96aa1aaaf77cf1f379d565eb775864c6945facf6d271115236cb44b95e4a4c9bb7cc6fd591acf SHA512 769a17c2095dbe990df148a0105c9e3dc88ac2265ac77ac31448dab6abf6d8cc0d54f5c6ff01fd708bd38700bfea93f57d3bb702bd9bb0a708257d094b2376ec |
24 |
|
25 |
diff --git a/dev-python/pytest-cov/pytest-cov-2.10.1.ebuild b/dev-python/pytest-cov/pytest-cov-2.10.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..3b5c7c30a5e |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pytest-cov/pytest-cov-2.10.1.ebuild |
30 |
@@ -0,0 +1,51 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
37 |
+PYTHON_COMPAT=( python3_{6..9} pypy3 ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="py.test plugin for coverage reporting" |
42 |
+HOMEPAGE="https://github.com/pytest-dev/pytest-cov https://pypi.org/project/pytest-cov/" |
43 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="MIT" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
48 |
+IUSE="test" |
49 |
+RESTRICT="!test? ( test )" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ >=dev-python/py-1.4.22[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/pytest-3.6[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/coverage-4.4[${PYTHON_USEDEP}] |
55 |
+" |
56 |
+DEPEND=" |
57 |
+ test? ( |
58 |
+ dev-python/virtualenv[${PYTHON_USEDEP}] |
59 |
+ dev-python/fields[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/process-tests-2.0.2[${PYTHON_USEDEP}] |
61 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
62 |
+ ) |
63 |
+" |
64 |
+ |
65 |
+#PATCHES=( |
66 |
+# # Bug 597708 |
67 |
+# "${FILESDIR}/${PN}-2.8.1-disable-broken-tests.patch" |
68 |
+# "${FILESDIR}/${PN}-2.8.1-latest-setuptools.patch" |
69 |
+# # https://github.com/pytest-dev/pytest-cov/issues/365 |
70 |
+# "${FILESDIR}/pytest-cov-2.8.1-python38.patch" |
71 |
+#) |
72 |
+ |
73 |
+distutils_enable_sphinx docs \ |
74 |
+ dev-python/sphinx-py3doc-enhanced-theme |
75 |
+ |
76 |
+python_test() { |
77 |
+ distutils_install_for_testing |
78 |
+ PYTHONPATH="${S}/tests:${BUILD_DIR}/lib:${PYTHONPATH}" \ |
79 |
+ PYTEST_PLUGINS=${PN/-/_} \ |
80 |
+ pytest -vv || die "Tests failed under ${EPYTHON}" |
81 |
+} |