diff options
| author | Michał Górny <mgorny@gentoo.org> | 2022-05-10 11:57:55 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2022-05-10 12:06:56 +0200 |
| commit | 64b0afe699e5d1c8b8e3c0fdcb9750e0ee4d976a (patch) | |
| tree | 15b3d278960b15d358aac36c7316bf4cbafc3226 /dev-python/coverage/coverage-6.3.2-r1.ebuild | |
| parent | 52b2e7333955912c5af039b9f6a6c8affcf8d503 (diff) | |
| download | gentoo-64b0afe699e5d1c8b8e3c0fdcb9750e0ee4d976a.tar.gz gentoo-64b0afe699e5d1c8b8e3c0fdcb9750e0ee4d976a.tar.bz2 gentoo-64b0afe699e5d1c8b8e3c0fdcb9750e0ee4d976a.zip | |
dev-python/coverage: Enable py3.11
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/coverage/coverage-6.3.2-r1.ebuild')
| -rw-r--r-- | dev-python/coverage/coverage-6.3.2-r1.ebuild | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/dev-python/coverage/coverage-6.3.2-r1.ebuild b/dev-python/coverage/coverage-6.3.2-r1.ebuild index a63b4c881035..ab6c7ce5e9a9 100644 --- a/dev-python/coverage/coverage-6.3.2-r1.ebuild +++ b/dev-python/coverage/coverage-6.3.2-r1.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} pypy3 ) +PYTHON_COMPAT=( python3_{8..11} pypy3 ) PYTHON_REQ_USE="threads(+),sqlite(+)" inherit distutils-r1 @@ -48,8 +48,13 @@ python_test() { local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 local -x PYTEST_PLUGINS=_hypothesis_pytestplugin,flaky.flaky_pytest_plugin,xdist.plugin - if [[ ${EPYTHON} != pypy* ]]; then - cp "${BUILD_DIR}/install$(python_get_sitedir)"/coverage/*.so \ + local prev_opt=$(shopt -p nullglob) + shopt -s nullglob + local c_ext=( "${BUILD_DIR}/install$(python_get_sitedir)"/coverage/*.so ) + ${prev_opt} + + if [[ -n ${c_ext} ]]; then + cp "${c_ext}" \ coverage/ || die test_tracer c rm coverage/*.so || die |
