mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-25 21:08:35 -07:00
dev-python/coverage: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST coverage-6.1.2.tar.gz 677391 BLAKE2B eb9b129282446ed536765fcbd8b31f863be315c8eb27087473608b1412014e5807a26b8bcbdeea98f7a89481198bb7475dc775e68fee53ca297d16332edb7ea8 SHA512 41b5bc881eba97308ff702024dd1873fe527c941fe1b45c36a6210819e0b6b9e6dcdf0ad31659e88ea25a3ebd84e90858694f54d2d7585c61b319edb9afbf07e
|
||||
DIST coverage-6.2.tar.gz 678664 BLAKE2B 98fe2e5d85db042d95a791838b121a4aeb0edc09f15e5454943d6d1ca3cafdbf0127e8683ddcb5c1f6372b18205bf92e24a803533f19d1bdd5e0477b669cf99f SHA512 e8ef5f2483b2e6d12f0f9801d63a0cd0b81395ea0c88b3cdaf6f6758e1fc1b381f803b0f58345c94007de175d0c2a24559dec93f51db8786f801a2a2d48d6b8f
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
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, run tests verbosely
|
||||
sed -i -e '/^addopts/s:-n3:-v:' setup.cfg || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
|
||||
"${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
|
||||
}
|
||||
Reference in New Issue
Block a user