1 |
commit: 64b0afe699e5d1c8b8e3c0fdcb9750e0ee4d976a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 10 09:57:55 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 10 10:06:56 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64b0afe6 |
7 |
|
8 |
dev-python/coverage: Enable py3.11 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/coverage/coverage-6.3.2-r1.ebuild | 11 ++++++++--- |
13 |
1 file changed, 8 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/coverage/coverage-6.3.2-r1.ebuild b/dev-python/coverage/coverage-6.3.2-r1.ebuild |
16 |
index a63b4c881035..ab6c7ce5e9a9 100644 |
17 |
--- a/dev-python/coverage/coverage-6.3.2-r1.ebuild |
18 |
+++ b/dev-python/coverage/coverage-6.3.2-r1.ebuild |
19 |
@@ -4,7 +4,7 @@ |
20 |
EAPI=8 |
21 |
|
22 |
DISTUTILS_USE_PEP517=setuptools |
23 |
-PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
24 |
+PYTHON_COMPAT=( python3_{8..11} pypy3 ) |
25 |
PYTHON_REQ_USE="threads(+),sqlite(+)" |
26 |
|
27 |
inherit distutils-r1 |
28 |
@@ -48,8 +48,13 @@ python_test() { |
29 |
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 |
30 |
local -x PYTEST_PLUGINS=_hypothesis_pytestplugin,flaky.flaky_pytest_plugin,xdist.plugin |
31 |
|
32 |
- if [[ ${EPYTHON} != pypy* ]]; then |
33 |
- cp "${BUILD_DIR}/install$(python_get_sitedir)"/coverage/*.so \ |
34 |
+ local prev_opt=$(shopt -p nullglob) |
35 |
+ shopt -s nullglob |
36 |
+ local c_ext=( "${BUILD_DIR}/install$(python_get_sitedir)"/coverage/*.so ) |
37 |
+ ${prev_opt} |
38 |
+ |
39 |
+ if [[ -n ${c_ext} ]]; then |
40 |
+ cp "${c_ext}" \ |
41 |
coverage/ || die |
42 |
test_tracer c |
43 |
rm coverage/*.so || die |