several backports from deps
This commit is contained in:
2
dev-python/coverage/Manifest
Normal file
2
dev-python/coverage/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
DIST coverage-4.5.1.tar.gz 379675 BLAKE2B a3dd18b6c6512a2880f48e685c15eed33589d7d46ffaddedd69dad88b8baa383e1661e1cd232e44f466512e292f82638ee2fd198de01dbd1324cb01857b986cf SHA512 82742a572549400778cad99057b1ced4c36b61e917983148eccc86bfa6340de8cfefc4f743e79ff876b641e0b9d21307dd6bde78638a6b20dd8ad215068dda25
|
||||
EBUILD coverage-4.5.1.ebuild 1245 BLAKE2B 7261754c2561133e867b651e780ad794543e52c8c9c3a7e68924877ef293ca13a5cc48ae4fbd57ba9542161d7bc3a5438769710287eead2950cc2f4e362e2316 SHA512 e683690a3ad77aff3b4ca2d92aeea4c0b531f995f41958fe4c21eb83a8515552701193d222f0c02a4d07feee0c7524a061c72ee69dd032ca121552f2b95a88c4
|
||||
44
dev-python/coverage/coverage-4.5.1.ebuild
Normal file
44
dev-python/coverage/coverage-4.5.1.ebuild
Normal file
@@ -0,0 +1,44 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy pypy3 )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
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 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="
|
||||
>=dev-python/setuptools-18.4[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/PyContracts[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
python_compile() {
|
||||
if [[ ${EPYTHON} == python2.7 ]]; then
|
||||
local CFLAGS="${CFLAGS} -fno-strict-aliasing"
|
||||
export CFLAGS
|
||||
fi
|
||||
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cd "${BUILD_DIR}"/lib || die
|
||||
[[ "${PYTHON}" =~ pypy ]] && export COVERAGE_NO_EXTENSION=no
|
||||
${PYTHON} "${S}"/igor.py test_with_tracer py || die
|
||||
${PYTHON} "${S}"/igor.py test_with_tracer c || die
|
||||
}
|
||||
Reference in New Issue
Block a user