dev-python/coverage: new package, add 7.3.4
Closes: #2731 Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
parent
6962beb695
commit
4273a70a24
@ -617,14 +617,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 1674 Ebuilds in total, 1663 of them have in total 1682 (42 different) licenses assigned.
|
||||
There are 1675 Ebuilds in total, 1664 of them have in total 1683 (42 different) licenses assigned.
|
||||
|
||||
|License| Ebuilds using it|
|
||||
|-------|-----|
|
||||
|MIT|954|
|
||||
|Apache-2.0|365|
|
||||
|GPL-3|112|
|
||||
|BSD|94|
|
||||
|BSD|95|
|
||||
|LGPL-3|23|
|
||||
|GPL-2|20|
|
||||
|all-rights-reserved|13|
|
||||
|
3
dev-python/coverage/Manifest
Normal file
3
dev-python/coverage/Manifest
Normal file
@ -0,0 +1,3 @@
|
||||
DIST coverage-7.3.4.tar.gz 769564 BLAKE2B 6fb3faac8703f95632e53b4a2e3ad5544488e19cb3ea96a288cded02ac8aaf434ee8fba8c1ed3cdf89265113ae45cb7b9882202dc230dc6a416487f09317ba82 SHA512 74c371b24ff5959f9c5d100f35b09ce10c70c03f3713c29aa251c1ce4244e302c29e0cc2f54f6ff6909634a363896bfbd61abe871c062c8b78c892efbc1d2d79
|
||||
EBUILD coverage-7.3.4.ebuild 2004 BLAKE2B e874897a9f8e061adf921ce74acde82254cc595d5925a00a88ec024d0878f6bb8ea3309e524ac83a932dca4090bfb1300fd91a010134fe88204c0ec01e3c8298 SHA512 370cf6a000d082e64e09d85655ad89cd8b52f3c979363499f0b740396a82fed52dc5fd4567656988c926167946852052bc5bfb2ec2d81dd193a2652953db95e2
|
||||
MISC metadata.xml 530 BLAKE2B 97ee7aff55910b2be221f1294c796c5bd261cc5d5eeeeb18bd1d434e3b9aa8ebe0fe5d62967095fe011426bf33db4ab331fe690ec1112da93f2f38de702e363a SHA512 5d9dfed8a5b698e615c316f2fafbe3fc46a48bfd79678c3f3d343b84ca125cb3bef6eae78b15728aa05a0693c3231edf23f15999b4ebef09a4efa31eb011a3a2
|
83
dev-python/coverage/coverage-7.3.4.ebuild
Normal file
83
dev-python/coverage/coverage-7.3.4.ebuild
Normal file
@ -0,0 +1,83 @@
|
||||
# Copyright 1999-2024 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_{10..12} )
|
||||
PYTHON_REQ_USE="threads(+),sqlite(+)"
|
||||
|
||||
inherit distutils-r1 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"
|
||||
|
||||
RDEPEND="
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/tomli[${PYTHON_USEDEP}]
|
||||
' 3.{9..10})
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/flaky[${PYTHON_USEDEP}]
|
||||
dev-python/hypothesis[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
>=dev-python/unittest-mixins-1.4[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e '/addopts/s:-q -n auto::' pyproject.toml || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
test_tracer() {
|
||||
local -x COVERAGE_TEST_TRACER=${1}
|
||||
einfo " Testing with the ${COVERAGE_TEST_TRACER} tracer ..."
|
||||
epytest -p flaky -p hypothesis -p xdist tests
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# TODO: fails because of additional "Terminated" print on SIGTERM
|
||||
tests/test_concurrency.py::SigtermTest::test_sigterm_threading_saves_data
|
||||
# broken because of pytest plugins explicity loaded
|
||||
tests/test_debug.py::ShortStackTest::test_short_stack{,_skip}
|
||||
)
|
||||
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 -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||
|
||||
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
|
||||
else
|
||||
test_tracer py
|
||||
fi
|
||||
}
|
16
dev-python/coverage/metadata.xml
Normal file
16
dev-python/coverage/metadata.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>b@edevau.net</email>
|
||||
<name>Andreas Billmeier</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">coverage</remote-id>
|
||||
<remote-id type="github">nedbat/coveragepy</remote-id>
|
||||
<maintainer status="unknown">
|
||||
<email>ned@nedbatchelder.com</email>
|
||||
<name>Ned Batchelder and 222 others</name>
|
||||
</maintainer>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
x
Reference in New Issue
Block a user