From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-python/coverage/Manifest | 3 +++ dev-python/coverage/coverage-4.2.ebuild | 44 +++++++++++++++++++++++++++++++++ dev-python/coverage/metadata.xml | 19 ++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 dev-python/coverage/Manifest create mode 100644 dev-python/coverage/coverage-4.2.ebuild create mode 100644 dev-python/coverage/metadata.xml (limited to 'dev-python/coverage') diff --git a/dev-python/coverage/Manifest b/dev-python/coverage/Manifest new file mode 100644 index 000000000000..5f5abd316330 --- /dev/null +++ b/dev-python/coverage/Manifest @@ -0,0 +1,3 @@ +DIST coverage-4.2.tar.gz 359873 BLAKE2B 4bca9c44922ad99203d65387267c62bee02b0368dfd70c758dbed959ebaa1352366603359865662cde863ca1518de21a4d33d22b86b78ff75c2c23aecf4d726c SHA512 17c508e65e8494bda51dc301eb99e24f39392cc3efe54eee5d94bf45021f91cb5e1acc192981974eb1725e01cd4590c80308bf9bb237a129c2de067bd4556e23 +EBUILD coverage-4.2.ebuild 1245 BLAKE2B 9146f844ef6f4853d6e2ec957d202dde1194dc33fcc0d1ac8de8dd97943cff87689f17e00902bca4e3b2cd0d7ad82edc2cfc45ad8db5a318f94e93cab312666d SHA512 d2833e62f9df13113d452e1aa9571d41d3583c99aabeb2e9d146abaaf6dc6e9e1bd9dbc2c2e6fa5f764300e120644b622ca5839644ae27ee8a1059c0a9dcba36 +MISC metadata.xml 713 BLAKE2B af0e3d7e3b503581edb2552d0eaddcc9cf3ea5cb92db247cbae4dc66edfb1da6608f472cd2e76e1c17537b6907b991fbf2b4c250792ba6654fd0d4924da599db SHA512 d836604218fc48fd477b27744c6f97a40c3102b859b25e327cd0775ecc54390db62c9f4096c8c54af26557c38dd48ae138a8bed742aaa759572189974522ede5 diff --git a/dev-python/coverage/coverage-4.2.ebuild b/dev-python/coverage/coverage-4.2.ebuild new file mode 100644 index 000000000000..8a9e19b43af3 --- /dev/null +++ b/dev-python/coverage/coverage-4.2.ebuild @@ -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} 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 +} diff --git a/dev-python/coverage/metadata.xml b/dev-python/coverage/metadata.xml new file mode 100644 index 000000000000..b3249862a84e --- /dev/null +++ b/dev-python/coverage/metadata.xml @@ -0,0 +1,19 @@ + + + + + robbat2@gentoo.org + Robin H. Johnson + + + python@gentoo.org + Python + + Coverage.py is a Python module that measures code coverage during Python +execution. It uses the code analysis tools and tracing hooks provided in the +Python standard library to determine which lines are executable, and which have +been executed. + + coverage + + -- cgit v1.2.3