diff options
author | 2022-01-25 20:18:59 +0200 | |
---|---|---|
committer | 2022-01-25 20:55:46 +0200 | |
commit | bf4108e6c74647e4ad8ad19d0b78940171788db9 (patch) | |
tree | 5ef8f748f3f379a9c1c8f67058395334004912f1 /dev-python/coverage | |
parent | dev-python/fasteners: add 0.17.3 (diff) | |
download | gentoo-bf4108e6c74647e4ad8ad19d0b78940171788db9.tar.gz gentoo-bf4108e6c74647e4ad8ad19d0b78940171788db9.tar.bz2 gentoo-bf4108e6c74647e4ad8ad19d0b78940171788db9.zip |
dev-python/coverage: add 6.3
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/coverage')
-rw-r--r-- | dev-python/coverage/Manifest | 1 | ||||
-rw-r--r-- | dev-python/coverage/coverage-6.3.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-python/coverage/Manifest b/dev-python/coverage/Manifest index 6b01ac2d16e5..7d7768f566d7 100644 --- a/dev-python/coverage/Manifest +++ b/dev-python/coverage/Manifest @@ -1 +1,2 @@ DIST coverage-6.2.tar.gz 678664 BLAKE2B 98fe2e5d85db042d95a791838b121a4aeb0edc09f15e5454943d6d1ca3cafdbf0127e8683ddcb5c1f6372b18205bf92e24a803533f19d1bdd5e0477b669cf99f SHA512 e8ef5f2483b2e6d12f0f9801d63a0cd0b81395ea0c88b3cdaf6f6758e1fc1b381f803b0f58345c94007de175d0c2a24559dec93f51db8786f801a2a2d48d6b8f +DIST coverage-6.3.tar.gz 705131 BLAKE2B bd2905f2872cd6b691fc1db3852ad84a27613a8a4c28158b7469408e8c38af5f1b8f6362a91d31c7d0ca9a20dbac0b7d1d8646322cd298f0284c6a5c2ab31050 SHA512 d011d479f49fa5e0036ab68d64361c1060468c3b20e791b18277edaf647858138417d35edaf2688232670f446df33d7a28b71f92467c08ae9b8923ef14eb3e7e diff --git a/dev-python/coverage/coverage-6.3.ebuild b/dev-python/coverage/coverage-6.3.ebuild new file mode 100644 index 000000000000..47b693e67167 --- /dev/null +++ b/dev-python/coverage/coverage-6.3.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} pypy3 ) +PYTHON_REQ_USE="threads(+),sqlite(+)" +inherit distutils-r1 + +DESCRIPTION="Code coverage measurement for Python" +HOMEPAGE="https://coverage.readthedocs.io/en/latest/ https://pypi.org/project/coverage/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +#IUSE="test" +# The tests are impossible to appease. Please run them externally +# via tox. Or fix the ebuild if you have hours of time to spend +# on something utterly useless. +RESTRICT="test" + +#BDEPEND=" +# test? ( +# dev-python/PyContracts[${PYTHON_USEDEP}] +# dev-python/flaky[${PYTHON_USEDEP}] +# dev-python/hypothesis[${PYTHON_USEDEP}] +# dev-python/mock[${PYTHON_USEDEP}] +# dev-python/pytest[${PYTHON_USEDEP}] +# >=dev-python/unittest-mixins-1.4[${PYTHON_USEDEP}] +# ) +#" + +src_prepare() { + # avoid the dep on xdist + sed -i -e '/^addopts/s:-q -n auto::' setup.cfg || die + distutils-r1_src_prepare +} + +python_test() { + "${EPYTHON}" igor.py zip_mods || die + "${EPYTHON}" igor.py test_with_tracer py || die + + # No C extensions under pypy + if [[ ${EPYTHON} != pypy* ]]; then + cp -l -- "${TEST_DIR}"/lib/*/coverage/*.so coverage/ || die + "${EPYTHON}" igor.py test_with_tracer c || die + fi + + # clean up leftover "egg1" directory + rm -rf build/lib/egg1 || die +} |