1 |
commit: 58325a1cdeb0de9ffe9b87a1b6edcea422c9ebff |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 26 14:59:52 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 27 20:45:08 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58325a1c |
7 |
|
8 |
dev-python/coverage: Bump to 5.1, py3.9 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/coverage/Manifest | 1 + |
13 |
dev-python/coverage/coverage-5.1.ebuild | 67 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 68 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/coverage/Manifest b/dev-python/coverage/Manifest |
17 |
index 23bb7b0dffe..38894af7959 100644 |
18 |
--- a/dev-python/coverage/Manifest |
19 |
+++ b/dev-python/coverage/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST coverage-4.5.2.tar.gz 384845 BLAKE2B a7b4f249a68e025449d26ef8ee2194b9ce355c979d1f5192a7863a0ab0089f9deb3a8e63a39bef528ed7c58fbcc7cd4bc193fea3a135f5996a6655268a6b7a93 SHA512 0d98c8118648a319ac6f3b4c4c6f1ff8a92085bbe8276dd5504c8df4638933f920d7382d8e6de8e16bff43b62091310e0eab7b7722c6d28c976baedbfae3d03e |
22 |
DIST coverage-4.5.4.tar.gz 385185 BLAKE2B 9d040bff13cebd1cb7147f15c3ec03bb08648cf801b5b2bb046a6b5bcadb3d3886be8bf0a624d225f25d10a5ca82fe5fb88f55e44e92a0a3285836b837972970 SHA512 ba534e04fe35cbadc4b16735f25c08f579a49a6677ec106680f222f2dfb3d0f1e011d0962f1c2108c375173ac4588bea1619ecda05ff9ba6fd888daddfd27b0e |
23 |
DIST coverage-5.0.3.tar.gz 679171 BLAKE2B b87b256ecdae0b63ae08ed1aea9ff1f4177ec5da63c18615d66f207c3b7c71da4730432bfbdb66a8b55fa2056016226b09befdfc5d0fae57ccc56f08b2690b38 SHA512 51c648b4529cc84534865ee804bcd3dd35a6dcb23f20feb3c4702025b924de3a010fd8d08238eea926ae1874c5510ff006bc120e10d01db795ea0af6fb82834c |
24 |
+DIST coverage-5.1.tar.gz 687427 BLAKE2B f4eee548cd6fb58c4a527b9e0ac5ee4133c984358f42ca0c87301f95eb60253a2748ccf9d4e88358941d7897998e68e3c5e70e6dc7387bf5e60eda950f4a679c SHA512 7bd3ca158fe2eab1946c52161fb877623d4ed0382de193aa6eb267443fdda86089ec7aaae518115d6a3b5487fd1400320eb503b9afe83182fb3c3621ccbfb6d7 |
25 |
|
26 |
diff --git a/dev-python/coverage/coverage-5.1.ebuild b/dev-python/coverage/coverage-5.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..b0e701db5f0 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/coverage/coverage-5.1.ebuild |
31 |
@@ -0,0 +1,67 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 ) |
37 |
+PYTHON_REQ_USE="threads(+)" |
38 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
39 |
+ |
40 |
+inherit distutils-r1 |
41 |
+ |
42 |
+DESCRIPTION="Code coverage measurement for Python" |
43 |
+HOMEPAGE="https://coverage.readthedocs.io/en/latest/ https://pypi.org/project/coverage/" |
44 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="BSD" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc" |
49 |
+#IUSE="test" |
50 |
+# The tests are impossible to appease. Please run them externally |
51 |
+# via tox. Or fix the ebuild if you have hours of time to spend |
52 |
+# on something utterly useless. |
53 |
+RESTRICT="test" |
54 |
+ |
55 |
+#BDEPEND=" |
56 |
+# test? ( |
57 |
+# dev-python/PyContracts[${PYTHON_USEDEP}] |
58 |
+# dev-python/flaky[${PYTHON_USEDEP}] |
59 |
+# dev-python/mock[${PYTHON_USEDEP}] |
60 |
+# >=dev-python/unittest-mixins-1.4[${PYTHON_USEDEP}] |
61 |
+# ) |
62 |
+#" |
63 |
+ |
64 |
+src_prepare() { |
65 |
+ # avoid the dep on xdist, run tests verbosely |
66 |
+ sed -i -e '/^addopts/s:-n3:-v:' setup.cfg || die |
67 |
+ distutils-r1_src_prepare |
68 |
+} |
69 |
+ |
70 |
+python_compile() { |
71 |
+ if [[ ${EPYTHON} == python2.7 ]]; then |
72 |
+ local CFLAGS="${CFLAGS} -fno-strict-aliasing" |
73 |
+ export CFLAGS |
74 |
+ fi |
75 |
+ |
76 |
+ distutils-r1_python_compile |
77 |
+} |
78 |
+ |
79 |
+python_test() { |
80 |
+ distutils_install_for_testing |
81 |
+ local bindir=${TEST_DIR}/scripts |
82 |
+ |
83 |
+ pushd tests/eggsrc >/dev/null || die |
84 |
+ distutils_install_for_testing |
85 |
+ popd >/dev/null || die |
86 |
+ |
87 |
+ "${EPYTHON}" igor.py zip_mods || die |
88 |
+ PATH="${bindir}:${PATH}" "${EPYTHON}" igor.py test_with_tracer py || die |
89 |
+ |
90 |
+ # No C extensions under pypy |
91 |
+ if [[ ${EPYTHON} != pypy* ]]; then |
92 |
+ cp -l -- "${TEST_DIR}"/lib/*/coverage/*.so coverage/ || die |
93 |
+ PATH="${bindir}:${PATH}" "${EPYTHON}" igor.py test_with_tracer c || die |
94 |
+ fi |
95 |
+ |
96 |
+ # clean up leftover "egg1" directory |
97 |
+ rm -rf build/lib/egg1 || die |
98 |
+} |