From 8f599e3828daa83c90972a8a2b34a295f19b2768 Mon Sep 17 00:00:00 2001 From: Andreas Billmeier Date: Sun, 24 Aug 2025 16:06:18 +0200 Subject: [PATCH] dev-python/coverage: re-add 7.10.0 from Gentoo's main archive Signed-off-by: Andreas Billmeier --- README.md | 4 +- dev-python/coverage/Manifest | 6 +- dev-python/coverage/coverage-7.10.0.ebuild | 109 +++++++++++++++++++++ dev-python/coverage/coverage-7.6.1.ebuild | 4 +- dev-python/coverage/coverage-7.6.8.ebuild | 4 +- 5 files changed, 119 insertions(+), 8 deletions(-) create mode 100644 dev-python/coverage/coverage-7.10.0.ebuild diff --git a/README.md b/README.md index f3d06f312..186856884 100644 --- a/README.md +++ b/README.md @@ -606,14 +606,14 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E ## Licenses This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted. -There are 2382 Ebuilds in total, 2364 of them have in total 2402 (43 different) licenses assigned. +There are 2383 Ebuilds in total, 2365 of them have in total 2403 (43 different) licenses assigned. |License| Ebuilds using it| |-------|-----| |MIT|1360| |Apache-2.0|545| |GPL-3|150| -|BSD|123| +|BSD|124| |GPL-2|28| |LGPL-3|24| |BSD-2|19| diff --git a/dev-python/coverage/Manifest b/dev-python/coverage/Manifest index e5faa5fac..971284ffe 100644 --- a/dev-python/coverage/Manifest +++ b/dev-python/coverage/Manifest @@ -1,5 +1,7 @@ +DIST coverage-7.10.0.tar.gz 819816 BLAKE2B 18e404a03b95a03fad0a4d1b51e3888dfc19e8664370bf89dcbd917969b8a240c4f80577b87231ee022d9bc10de9bdc248223ad531ac2ffafd78a4a5cbba3e74 SHA512 27575b11c3a14d8de73ffb1e56f64ba9c218bace54290685241ce347f2c246950b8ce30bc5c97497c5663196001b2dba5541ae05cf004552cf1f0a09b85fea08 DIST coverage-7.6.1.tar.gz 798791 BLAKE2B d4af7893e8b79703757ba14b1f01d998334f602901915b9380948bbfcaabaafee2754c803123441dd4fbbb5c0af89e2d90e0d5ae67ae0afcf160580e7acd201f SHA512 ff09783b3433ea72fc3cbc133a8c76236309c68ccd768cc3a849a5cc1215fe6db22d1e619a4062abc3c4f145ec93fd16ed5405b13960485628b1624e6b8adb16 DIST coverage-7.6.8.tar.gz 801425 BLAKE2B a1bfb660a0e079411c13d4fca28863085c6010cb696b4e0dd7d06686313baea1bb25c91373b095630854d737fdf003fd8ced67e91e356d807e2b9b4fc903398c SHA512 1d1aea6fba8511ebd0db1a5f528dccf79d40280b8f8a0531dfca293611346df2f82dba974a351a3ea1a17e648b30ea7ea6689cb646c56de84ac33778362b4b4c -EBUILD coverage-7.6.1.ebuild 2380 BLAKE2B 20d816782b00014608e04785ddcf57e2a3df44ca8b1345ef1f7432a434e8e948d9de6655d9ce9c100d5ce4e7da0e8d77beed49512d62c5c1b9b6db9bb567adf5 SHA512 217615c8764e6740e98f9cc56e304e804da17de94e5eafa2df3c1dafbec62e55892d67e46d50ef173915c829695f131774b7cfd6972594f8944a62c7bbd22cde -EBUILD coverage-7.6.8.ebuild 2593 BLAKE2B d51653c7959bae0478bb4eb149eb03aa6434d375f2c1fc9177bfdf05cc3a96d102ca41856fa44f9c6b614041b4189e7d9257941bcdc9b51b39d08c9d38f38d0f SHA512 a7eeda2e9c7f0887c2d7afe916d1ccd218c5ce826e2d6753d5f138650675bf7e612a5455fdac72550d90b00e6e1f0565df1ce3347e85faceea81a7e225ebba1d +EBUILD coverage-7.10.0.ebuild 2814 BLAKE2B 85fef11dbc00d10d80ba0948e9f6d4b40d0ea76d99ade2676ee42055e32fa784f07bb0c2c599433a873036d1ac92c7eedf909c6b6c9a3ca0d3fd747aec808c42 SHA512 991d3dda4bb85cd774c8db31956ae548ee4af666d9096c4161571316e2d488f695ac8543e2190977578613f9853ac3c6d56f708c4170576232f3756ffbc26157 +EBUILD coverage-7.6.1.ebuild 2389 BLAKE2B 33644c188eb7fca14d55a2fd7f7a09dc078f7ecb726c9fe0ab2229a2f2e7944617e95e96a9dbb3cbd54b6ca9284f15cea44e3c1629502c2610bf6ae4421e88d0 SHA512 448af258086798138fc5c4721e52a55278b3f255f9480eeb9c98fd7c016baeff63607a50f2c837be8a2c318ae8f366dd08a2f5d0032023fe4260a27687b54b03 +EBUILD coverage-7.6.8.ebuild 2602 BLAKE2B 86964aabeec0af41fee0d1a3d42f72710053a23f9a8b611305b246867b4fc1cb7f080ee66bbaae9b507d7780f00d5badc0dda01e76a8dc7a47653a25419488dc SHA512 90fbc6a03f1cd7b08df63c3dd0513d53830a0a76628e6f0352b1c45d5e4e0835c25536c5645fd8c40d7add1e42dd2d187b543d7659155c6fdd1153942f6cb79f MISC metadata.xml 530 BLAKE2B 97ee7aff55910b2be221f1294c796c5bd261cc5d5eeeeb18bd1d434e3b9aa8ebe0fe5d62967095fe011426bf33db4ab331fe690ec1112da93f2f38de702e363a SHA512 5d9dfed8a5b698e615c316f2fafbe3fc46a48bfd79678c3f3d343b84ca125cb3bef6eae78b15728aa05a0693c3231edf23f15999b4ebef09a4efa31eb011a3a2 diff --git a/dev-python/coverage/coverage-7.10.0.ebuild b/dev-python/coverage/coverage-7.10.0.ebuild new file mode 100644 index 000000000..6bf8d7179 --- /dev/null +++ b/dev-python/coverage/coverage-7.10.0.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3_11 python3_{11..14} ) +PYTHON_REQ_USE="threads(+),sqlite(+)" + +inherit distutils-r1 multiprocessing pypi + +DESCRIPTION="Code coverage measurement for Python" +HOMEPAGE=" + https://coverage.readthedocs.io/en/latest/ + https://github.com/nedbat/coveragepy/ + https://pypi.org/project/coverage/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm arm64 x86" +IUSE="+native-extensions" + +BDEPEND=" + test? ( + >=dev-python/unittest-mixins-1.4[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=( hypothesis pytest-{rerunfailures,xdist} ) +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_compile() { + if ! use native-extensions; then + local -x COVERAGE_DISABLE_EXTENSION=1 + fi + + distutils-r1_python_compile +} + +test_tracer() { + local -x COVERAGE_CORE=${1} + einfo " Testing with the ${COVERAGE_CORE} core ..." + epytest -o addopts= "${@:2}" tests +} + +python_test() { + local EPYTEST_DESELECT=( + # broken because of pytest plugins explicity loaded + tests/test_debug.py::ShortStackTest::test_short_stack{,_skip} + # these expect specific availability of C extension matching + # COVERAGE_CORE (which breaks testing pytracer on CPython) + tests/test_cmdline.py::CmdLineStdoutTest::test_version + tests/test_debug.py::DebugTraceTest::test_debug_sys_ctracer + # mismatch of expected concurrency in error message + # TODO: report upstream? + tests/test_concurrency.py::ConcurrencyTest::test_greenlet + tests/test_concurrency.py::ConcurrencyTest::test_greenlet_simple_code + # packaging tests, fragile to setuptools version + tests/test_setup.py + # looks like a difference in exit status reporting? + # https://github.com/nedbat/coveragepy/issues/2008 + tests/test_process.py::ProcessTest::test_save_signal_usr1 + ) + local EPYTEST_IGNORE=( + # pip these days insists on fetching build deps from Internet + tests/test_venv.py + ) + + "${EPYTHON}" igor.py zip_mods || die + + local -x COVERAGE_TESTING=True + # TODO: figure out why they can't be imported inside test env + local -x COVERAGE_NO_CONTRACTS=1 + + local jobs=${EPYTEST_JOBS:-$(makeopts_jobs)} + local xdist_args=() + if [[ ${jobs} -gt 1 ]]; then + # required upstream to avoid cross-test conflicts + xdist_args+=( --dist=loadgroup ) + fi + + 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 ctrace "${xdist_args[@]}" + fi + + test_tracer pytrace "${xdist_args[@]}" + + case ${EPYTHON} in + *3.11) + ;; + *) + # available since Python 3.12 + test_tracer sysmon "${xdist_args[@]}" + ;; + esac + + if [[ -n ${c_ext} ]]; then + rm coverage/*.so || die + fi +} diff --git a/dev-python/coverage/coverage-7.6.1.ebuild b/dev-python/coverage/coverage-7.6.1.ebuild index f27358bea..63581b434 100644 --- a/dev-python/coverage/coverage-7.6.1.ebuild +++ b/dev-python/coverage/coverage-7.6.1.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{11..13} ) +PYTHON_COMPAT=( pypy3_11 python3_{11..14} ) PYTHON_REQ_USE="threads(+),sqlite(+)" inherit distutils-r1 pypi diff --git a/dev-python/coverage/coverage-7.6.8.ebuild b/dev-python/coverage/coverage-7.6.8.ebuild index 334815bb2..12b3c7a1f 100644 --- a/dev-python/coverage/coverage-7.6.8.ebuild +++ b/dev-python/coverage/coverage-7.6.8.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{11..13} ) +PYTHON_COMPAT=( pypy3_11 python3_{11..14} ) PYTHON_REQ_USE="threads(+),sqlite(+)" inherit distutils-r1 pypi