Skip to content

Commit 6ff204b

Browse files
committed
dev-python/coverage: re-add 7.5.0 from Gentoo archive
Closes: https://git.edevau.net/onkelbeh/HomeAssistantRepository/issues/3520 Signed-off-by: Andreas Billmeier <[email protected]>
1 parent 33f0b4a commit 6ff204b

File tree

4 files changed

+104
-4
lines changed

4 files changed

+104
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,14 +606,14 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
606606

607607
## Licenses
608608
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.
609-
There are 1945 Ebuilds in total, 1934 of them have in total 1957 (42 different) licenses assigned.
609+
There are 1946 Ebuilds in total, 1935 of them have in total 1958 (42 different) licenses assigned.
610610

611611
|License| Ebuilds using it|
612612
|-------|-----|
613613
|MIT|1121|
614614
|Apache-2.0|434|
615615
|GPL-3|114|
616-
|BSD|110|
616+
|BSD|111|
617617
|LGPL-3|25|
618618
|GPL-2|22|
619619
|GPL-3+|16|

dev-python/coverage/Manifest

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
DIST coverage-7.3.4.tar.gz 769564 BLAKE2B 6fb3faac8703f95632e53b4a2e3ad5544488e19cb3ea96a288cded02ac8aaf434ee8fba8c1ed3cdf89265113ae45cb7b9882202dc230dc6a416487f09317ba82 SHA512 74c371b24ff5959f9c5d100f35b09ce10c70c03f3713c29aa251c1ce4244e302c29e0cc2f54f6ff6909634a363896bfbd61abe871c062c8b78c892efbc1d2d79
2-
EBUILD coverage-7.3.4.ebuild 2004 BLAKE2B e874897a9f8e061adf921ce74acde82254cc595d5925a00a88ec024d0878f6bb8ea3309e524ac83a932dca4090bfb1300fd91a010134fe88204c0ec01e3c8298 SHA512 370cf6a000d082e64e09d85655ad89cd8b52f3c979363499f0b740396a82fed52dc5fd4567656988c926167946852052bc5bfb2ec2d81dd193a2652953db95e2
2+
DIST coverage-7.5.0.tar.gz 798314 BLAKE2B 6f7b80d1a46fb88f92571bc23fa2e061680e4e72e6339332f135ace6072570776abbfdce7654d34599ccd1dff920fb1d7cbdc7039a341d10e130408d554e6f83 SHA512 1332f630e6f6ed9a2445f93a3826f22151cf4eff2491163a6d01ef1ce468928a52871ee71aeeb716e8e4f04542524ae25213a37bdb874c4a663cbc581482530d
3+
EBUILD coverage-7.3.4.ebuild 2004 BLAKE2B 645abf1f4d925c214a72e4cf55722c40a91dde35297866a49d0a89cf6f584867ba7fb56ce4304dd2565a2ad27e8e9894e3738f56d250564d30d36ae4595da7eb SHA512 f7061001750fd6ab7314f1741a90e3df06dcf45106ca170dd5a61f4aa37c4ed27dd755fa18d82a5a726e1ec9e127f4d830daa2fe951c5e76996319e8741646df
4+
EBUILD coverage-7.5.0.ebuild 2385 BLAKE2B 8a4aff91244840975775b36420f24e51aa4ff972d4ca7cae9347710991f313213296fa3ad049e5273c4edd0e2a5ce0b076f2cdd43a1c08897ffaf51c5e59dc28 SHA512 feeb431ee71ce682611f6feb2fe7aaaead043b52a4a772ad830ed4814d75dbc26ae7cd8e30fc115a14d24f1af3ef657f5fdd740356b5062f9be016076f4ed5f9
35
MISC metadata.xml 530 BLAKE2B 97ee7aff55910b2be221f1294c796c5bd261cc5d5eeeeb18bd1d434e3b9aa8ebe0fe5d62967095fe011426bf33db4ab331fe690ec1112da93f2f38de702e363a SHA512 5d9dfed8a5b698e615c316f2fafbe3fc46a48bfd79678c3f3d343b84ca125cb3bef6eae78b15728aa05a0693c3231edf23f15999b4ebef09a4efa31eb011a3a2

dev-python/coverage/coverage-7.3.4.ebuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ EAPI=8
55

66
DISTUTILS_EXT=1
77
DISTUTILS_USE_PEP517=setuptools
8-
PYTHON_COMPAT=( python3_{10..12} )
8+
PYTHON_COMPAT=( python3_{11..13} )
99
PYTHON_REQ_USE="threads(+),sqlite(+)"
1010

1111
inherit distutils-r1 pypi
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# Copyright 1999-2024 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
DISTUTILS_EXT=1
7+
DISTUTILS_USE_PEP517=setuptools
8+
PYTHON_COMPAT=( python3_{11..13} )
9+
PYTHON_REQ_USE="threads(+),sqlite(+)"
10+
11+
inherit distutils-r1 pypi
12+
13+
DESCRIPTION="Code coverage measurement for Python"
14+
HOMEPAGE="
15+
https://coverage.readthedocs.io/en/latest/
16+
https://github.com/nedbat/coveragepy/
17+
https://pypi.org/project/coverage/
18+
"
19+
20+
LICENSE="BSD"
21+
SLOT="0"
22+
KEYWORDS="amd64 arm arm64 x86"
23+
24+
RDEPEND="
25+
$(python_gen_cond_dep '
26+
dev-python/tomli[${PYTHON_USEDEP}]
27+
' 3.{9..10})
28+
"
29+
BDEPEND="
30+
test? (
31+
dev-python/flaky[${PYTHON_USEDEP}]
32+
dev-python/hypothesis[${PYTHON_USEDEP}]
33+
dev-python/pytest-xdist[${PYTHON_USEDEP}]
34+
>=dev-python/unittest-mixins-1.4[${PYTHON_USEDEP}]
35+
)
36+
"
37+
38+
distutils_enable_tests pytest
39+
40+
src_prepare() {
41+
sed -i -e '/addopts/s:-q -n auto::' pyproject.toml || die
42+
distutils-r1_src_prepare
43+
}
44+
45+
test_tracer() {
46+
local -x COVERAGE_CORE=${1}
47+
einfo " Testing with the ${COVERAGE_CORE} core ..."
48+
epytest -p flaky -p hypothesis -p xdist tests
49+
}
50+
51+
python_test() {
52+
local EPYTEST_DESELECT=(
53+
# TODO: fails because of additional "Terminated" print on SIGTERM
54+
tests/test_concurrency.py::SigtermTest::test_sigterm_threading_saves_data
55+
# broken because of pytest plugins explicity loaded
56+
tests/test_debug.py::ShortStackTest::test_short_stack{,_skip}
57+
# these expect specific availability of C extension matching
58+
# COVERAGE_CORE (which breaks testing pytracer on CPython)
59+
tests/test_cmdline.py::CmdLineStdoutTest::test_version
60+
tests/test_debug.py::DebugTraceTest::test_debug_sys_ctracer
61+
)
62+
local EPYTEST_IGNORE=(
63+
# pip these days insists on fetching build deps from Internet
64+
tests/test_venv.py
65+
)
66+
67+
"${EPYTHON}" igor.py zip_mods || die
68+
69+
local -x COVERAGE_TESTING=True
70+
# TODO: figure out why they can't be imported inside test env
71+
local -x COVERAGE_NO_CONTRACTS=1
72+
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
73+
74+
local prev_opt=$(shopt -p nullglob)
75+
shopt -s nullglob
76+
local c_ext=( "${BUILD_DIR}/install$(python_get_sitedir)"/coverage/*.so )
77+
${prev_opt}
78+
79+
if [[ -n ${c_ext} ]]; then
80+
cp "${c_ext}" coverage/ || die
81+
test_tracer ctrace
82+
fi
83+
84+
test_tracer pytrace
85+
86+
case ${EPYTHON} in
87+
python3.1[01]|pypy3)
88+
;;
89+
*)
90+
# available since Python 3.12
91+
test_tracer sysmon
92+
;;
93+
esac
94+
95+
if [[ -n ${c_ext} ]]; then
96+
rm coverage/*.so || die
97+
fi
98+
}

0 commit comments

Comments
 (0)