summaryrefslogtreecommitdiff
path: root/dev-python/pytest-cov
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/pytest-cov
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/pytest-cov')
-rw-r--r--dev-python/pytest-cov/Manifest18
-rw-r--r--dev-python/pytest-cov/files/fix-for-deprecation-warnings.patch16
-rw-r--r--dev-python/pytest-cov/metadata.xml13
-rw-r--r--dev-python/pytest-cov/pytest-cov-1.6.ebuild20
-rw-r--r--dev-python/pytest-cov/pytest-cov-1.8.1.ebuild30
-rw-r--r--dev-python/pytest-cov/pytest-cov-2.1.0.ebuild37
-rw-r--r--dev-python/pytest-cov/pytest-cov-2.2.0.ebuild43
-rw-r--r--dev-python/pytest-cov/pytest-cov-2.2.1.ebuild44
-rw-r--r--dev-python/pytest-cov/pytest-cov-2.3.1.ebuild60
-rw-r--r--dev-python/pytest-cov/pytest-cov-2.5.1.ebuild56
10 files changed, 337 insertions, 0 deletions
diff --git a/dev-python/pytest-cov/Manifest b/dev-python/pytest-cov/Manifest
new file mode 100644
index 000000000000..141abacb21a7
--- /dev/null
+++ b/dev-python/pytest-cov/Manifest
@@ -0,0 +1,18 @@
+AUX fix-for-deprecation-warnings.patch 678 SHA256 139b0154d8e14765776f16d733333e36fa8bb812fcc715bdcfb804eb666d433f SHA512 3f20f6ef0514d676259e6bfd5c10c1877c4237a4a87161352adeda355dac693a6a43b8be3b29848feca433a9ead3e96967d8e255b62e3b60d816127eb17c4cae WHIRLPOOL db774ddb247bbe1eb535e2d4ddb181a58d44bf3a62ab8608e632d4705ae5eb642d3285b701b176b1d758bc1b64ccbc4bcdbcae8005f88c120eab4004eb9c28e9
+DIST pytest-cov-1.6.tar.gz 8257 SHA256 2e803c89f11e0344111670349f6ef401f831e85cbd287b0c5d61917da5aac454 SHA512 36c18e8e731613f2412e8e377f1911704d4af23a82fe66b822547850c3343204f682d3464c97f2cb4360f5090e7a58e5ac9679e83ae90adc0ccdb5b0e467430f WHIRLPOOL 41543b2e7f61d61d754bfef4c307fc135ab0d69b10d9e057f64bd3f4cacbc6e47316e478dbd797dd7aea0a8360bad5cc183214c742c749991fd5fe73b96503f2
+DIST pytest-cov-1.8.1.tar.gz 8649 SHA256 31e5198c06f290e1e813d30ddd063a0401d9e3a698129ca44267781673a71285 SHA512 dff6c6345bdc2d219800782d7acb3d301c8d67314f0f4af983daa0942a8c97768a2ce6c64f11529a3d8d876c218c62dbf08b7a63cc7345072e70bbc85ad4d112 WHIRLPOOL 90f024e0388323a5d1bd8ffd439c3c6cfb242ac2f539d391f4139a6ab2e251c6ff01831e9a261506d2c1552f1beeacc99db43d3b98a3663828083fec1ae722f8
+DIST pytest-cov-2.1.0.tar.gz 25992 SHA256 6e86c3ae3be9930fa3f1402651819b00169fb5e963d29ed03d390d152a608506 SHA512 f763e611b19f6769183583d275e28467f7cc5cc8a8fe5a4d3eb798ddf8d4e008732ec8c29b757aaf0fba0f5a660d92729499f3d388693f631ba73cc7a570d738 WHIRLPOOL 1ece60dea2fc1ff2da342313a0e67ee63a63cf35ece930f92b59c2283522698df0be4c10fb6951d3afff9fb1acffd37d207dcc4f0400109cb4f8c830d69a5857
+DIST pytest-cov-2.2.0.tar.gz 29965 SHA256 2231d43f07760d6904dadceabca53ab16ef95ba58fff393861b64c0cab96c9d1 SHA512 3e6a2b648b12eff3d8f0aad12dda35a05820f6073e7f87e9c92ed6cca00fe031750da8f6c37eb81cf6ca7b2e4975dafffd7e3e901cb7b91e5c53c83b6e6b8420 WHIRLPOOL 9feff5557af5f4101e9ae508febf3479472781544b54345d5f53f0f19df5f40eb5af4ada2b44037f590445761ee9d3bffe14d729c465f880951d714eeb6ae491
+DIST pytest-cov-2.2.1.tar.gz 33154 SHA256 a8b22e53e7f3b971454c35df99dffe21f4749f539491e935c55d3ff7e1b284fa SHA512 8f20cf1c42b4415c7decf8407582e64045c599aedf1970160d02e35e723f56fa095af26ee4390eabf2d32e209898b0a3dae8b7212ac81ecda64d6dbc7c83f790 WHIRLPOOL 92386bd1ff532e0c98f1dc01b3583315a626a030fb4f38e39eb4f8755e83f3901873fdcd406f9c8bc6393040fa198cc416dae5e176e88084ed6fb16264d3c056
+DIST pytest-cov-2.3.1.tar.gz 35378 SHA256 fa0a212283cdf52e2eecc24dd6459bb7687cc29adb60cb84258fab73be8dda0f SHA512 79770beb53fbb43b5d68311c2efd0accbfd890ab6dad299da8c1c0b3d26b54d984807313b1507900cda7004bfb50fedc0bd4341cfcfce47849a4f24fc8184f11 WHIRLPOOL 8b0fe223f0cbae0bb9c85b3d8d7f80456e164f3565bd7ba146b0eb34c1fd06c0447405dccd2642f0a4aec1819ff74277d2eb9b076e61438fbf69b35c472755e0
+DIST pytest-cov-2.5.1.tar.gz 36201 SHA256 03aa752cf11db41d281ea1d807d954c4eda35cfa1b21d6971966cc041bbf6e2d SHA512 868131d6ea6dd28deec6d653dec23ceb7d3adccfa2c6bcc0a3126bbb11e924e71f200676461b2202f274ce6e14d1799feb0917e3081817d9e8583271c18a43de WHIRLPOOL e7084c4f55b12fab3cd2d99acebb02159f764c20b69e141c7b6779b1c4720c5d6358791559d46074a8af19f89ad3d0c8d9e722ffa7d4b217c9ab88936dece910
+EBUILD pytest-cov-1.6.ebuild 561 SHA256 d8f9f5130ac4645468690f73583124d6a7d7ec1ebfa4937967f86f5a1818f34e SHA512 c4cf5ce68d840d1a8b2e5bb049b9bf2c9774ad1c841f9d85be94139feb4413963bd345bbce16d660a867e80dca79b5064cd6ada55fd5a5d6dc25b1f5d02756d9 WHIRLPOOL a0a64cb8a31f75ce3e21864f0eb2f367196a52d77ab36609222fba8ddda438c716e5ade1a68a664629877e491d31b05d3b0c7cea7c42d04b8f3c224b9fe1afad
+EBUILD pytest-cov-1.8.1.ebuild 959 SHA256 3af6f308f5850705f1ef7cafa13f02217f4b7214259c858a58743cb03caec392 SHA512 84e384cc5afad709603bad3f02f65339b18e0f89e61dabe19d3e433cf399b7e4c8f4afcf4c6702241d936101e1431a8e05dad1c8ca107af3496fa7e6b621cacc WHIRLPOOL 47712101ec311f8853db920a769fdf8162ae82dcfc4ec15a2f24bd62835be33db8ce2fb13fc4226232179abf6ba68ba41f6b61b50a2217459bc82d92c50c34b9
+EBUILD pytest-cov-2.1.0.ebuild 1087 SHA256 facd0cb62e61070dad86be579d2b05530435e33639925a9a499388fea6fd49e6 SHA512 52f32df000e94f98826c7d21c29e1edf5ba800e794bbcc0c182d0d7c65b28697f06640df655a924e0ff3241efaf3fa4732446e9739ee155d887de90aac275c97 WHIRLPOOL 821cfe14e1e78679f3870b7df04598b464f2c064b105bef3bdb8c78a4227f6214f72d4067a8d3e6040cfebe2f926b616cd514c307feeba62356511b0edb533e8
+EBUILD pytest-cov-2.2.0.ebuild 1262 SHA256 83c4071d4577812c6e2419e6b2a264cccd9aae80047df2874d27fa7b33509f33 SHA512 49cd4aba05bb7f9e2f9b1d2a6385a0032f7befb056acc1242123879169240b4fac2d210764c2bf174548a2bb341ea260c530a2c6cf0a40db07ba4222f28154a2 WHIRLPOOL 4f1c953804b37575a6089d03138444b97a4085bfdf3a0c3f37ad0cda8eb19408261cd038a56214fd739d08ead268dd8ba350e2891d57cdf9584563402aaf8f3e
+EBUILD pytest-cov-2.2.1.ebuild 1266 SHA256 e46a5e3b6f4ee8842327800b2ffea44fa3cc135ef9c8ad32c642a4248d00db2f SHA512 b3d295471bce26776e89c9922cd9cc806837eda10c855160e46889706262d8178d6456ec7b3ab3c4a3daadf4e88906c504dffa3c5168bf3be8057717f4ce79fc WHIRLPOOL 78df263246dc0fc5915bbed1b0787f3e589eff75d602e0b6434c89ea352dc532b9d531a3f2ee9877e3667d72556eb373da5e8da0d3d7ae6477b8934b7d8b2542
+EBUILD pytest-cov-2.3.1.ebuild 1535 SHA256 e0513973dd6360fff3e9f0ecf73c138cb3d551bb1e76d2826dc9ac545b0cb222 SHA512 60e2b1992e2adf269352517948df3cca5ea08c91426374fd2e00abd6d8247eb2b5fa6458cadb17b951745faea029846157433d2e2cf770643be2040f041c7477 WHIRLPOOL aaca5c53243bdfe394deeb1565f55734633315fb975612278120e6b260af98cc75560c975b17070070436877a38f6c7860a611305082eb7ee04d9a2a690d08b5
+EBUILD pytest-cov-2.5.1.ebuild 1505 SHA256 d0e9e9c75ac85988291675845534766d4913ae4dcc0cefbd73a15b984073bef9 SHA512 edc8552f7d3c30b1b0cb26ee7cf2ef54f4d6ccc8efaffd35ae721c950271de3a98873d18b40c96c1aa80c2e43cc5541c35e338e52aef367a1b06d88b6c25a744 WHIRLPOOL 9c5b4326587a1f62cae75aaea9c332e75af18d3dbce4e15490a9184c072dda71b70c7d46d58cdaabf57f62bd040daacff0f3c6c8cb60d63842ce22947496ed6b
+MISC ChangeLog 4985 SHA256 ff793083e34eb6772a77ce4019f831c49df1b8eeb6eca839a14af18e6b70e79c SHA512 cb41e15cce2742ba0149e0e3767c9248d38a1141efd6067a7674399854e22ac537af96d4273cee3de615a0d9e831cf89412bb74f379f3f9ffd720d2775f0e47b WHIRLPOOL 6dffcd3769a4cbed223ed5574b2bb0329bdc14e6b017f46c8938e420f5a0ff8c13efcc4f6b8de20b0b67197dadc91ff9dc3f4bc053c3fb62dc1e0895d7b9303c
+MISC ChangeLog-2015 2344 SHA256 25d246201957d79d2b47312c02ad85d82be8467c35c4b9606e9cb69025245022 SHA512 4dd742cecc1577782e6a5aa320add68a841b8d06c7edd4cbbc84bb561a9a05c43ce56b39ddd063588a8a0db899f365b8cbf4865daa2ec641a888e473fb92df46 WHIRLPOOL 2c66ad76f3dbb63bc8cb0e827e957332f5902bff167f230d0711e551f6893d215547db7e3d2264979779176dc429c406a3e9da9ac73eb9596ae61453c71d5a95
+MISC metadata.xml 460 SHA256 3566a7f296e00e83979402930101a9ebaa79a2674adb349f5bb30d6e2cd82f41 SHA512 5600a6e66b683a30d6252699a28fecf727bdbbad6ef40cec0fabb89f5afd3a0cf1e2b8e2b80ffa6cc144ac03f5e7066117d72fc968492bd3b1d6c89a8b035228 WHIRLPOOL 5f8b3d37702903b24acd65d6a5c5c177d50c7eb2fd8f711d8e8b4246ce95117419d0ed0eafab03fb26a10adb246df64fb3ff4b5d7f36fb1b585cc8c97fac621e
diff --git a/dev-python/pytest-cov/files/fix-for-deprecation-warnings.patch b/dev-python/pytest-cov/files/fix-for-deprecation-warnings.patch
new file mode 100644
index 000000000000..a555ca53fc91
--- /dev/null
+++ b/dev-python/pytest-cov/files/fix-for-deprecation-warnings.patch
@@ -0,0 +1,16 @@
+diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py
+index 6cbf341..614e53c 100644
+--- a/tests/test_pytest_cov.py
++++ b/tests/test_pytest_cov.py
+@@ -337,7 +337,10 @@ def test_central_nonspecific(testdir):
+ ])
+
+ # multi-module coverage report
+- assert any(line.startswith('TOTAL ') for line in result.stdout.lines[-4:])
++ # Fix test failure due to pytest deprecation warnings being
++ # added to the expected output. Look in entire output lines instead.
++ # assert any(line.startswith('TOTAL ') for line in result.stdout.lines[-4:])
++ assert any(line.startswith('TOTAL ') for line in result.stdout.lines[-10:])
+
+ assert result.ret == 0
+
diff --git a/dev-python/pytest-cov/metadata.xml b/dev-python/pytest-cov/metadata.xml
new file mode 100644
index 000000000000..14ce7f071662
--- /dev/null
+++ b/dev-python/pytest-cov/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chutzpah@gentoo.org</email>
+ <name>Patrick McLean</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">pytest-cov</remote-id>
+ <remote-id type="bitbucket">memedough/pytest-cov</remote-id>
+ <remote-id type="github">pytest-dev/pytest-cov</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/pytest-cov/pytest-cov-1.6.ebuild b/dev-python/pytest-cov/pytest-cov-1.6.ebuild
new file mode 100644
index 000000000000..859701ba2298
--- /dev/null
+++ b/dev-python/pytest-cov/pytest-cov-1.6.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python{2_7,3_4} pypy pypy3 )
+inherit distutils-r1
+
+DESCRIPTION="py.test plugin for coverage reporting"
+HOMEPAGE="https://bitbucket.org/memedough/pytest-cov/overview"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="alpha ~amd64 arm hppa ~ppc ~ppc64 sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND=""
+RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/cov-core[${PYTHON_USEDEP}]"
diff --git a/dev-python/pytest-cov/pytest-cov-1.8.1.ebuild b/dev-python/pytest-cov/pytest-cov-1.8.1.ebuild
new file mode 100644
index 000000000000..a21dfda7b9b7
--- /dev/null
+++ b/dev-python/pytest-cov/pytest-cov-1.8.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python{2_7,3_4} pypy pypy3 )
+inherit distutils-r1
+
+DESCRIPTION="py.test plugin for coverage reporting"
+HOMEPAGE="https://bitbucket.org/memedough/pytest-cov/overview"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ia64 m68k ppc ppc64 s390 sh ~sparc x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+
+RDEPEND="
+ >=dev-python/py-1.4.22[${PYTHON_USEDEP}]
+ >=dev-python/pytest-2.6.0[${PYTHON_USEDEP}]
+ >=dev-python/cov-core-1.14.0[${PYTHON_USEDEP}]
+ >=dev-python/coverage-3.7.1[${PYTHON_USEDEP}]
+ <dev-python/coverage-4[${PYTHON_USEDEP}]"
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/virtualenv[${PYTHON_USEDEP}] )"
+
+python_test() {
+ # test_ file produces no output; For FI
+ "${PYTHON}" test_pytest_cov.py || die "tests failed under ${EPYTHON}"
+}
diff --git a/dev-python/pytest-cov/pytest-cov-2.1.0.ebuild b/dev-python/pytest-cov/pytest-cov-2.1.0.ebuild
new file mode 100644
index 000000000000..5f44d70bde40
--- /dev/null
+++ b/dev-python/pytest-cov/pytest-cov-2.1.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python{2_7,3_4} pypy pypy3 )
+inherit distutils-r1
+
+DESCRIPTION="py.test plugin for coverage reporting"
+HOMEPAGE="https://github.com/pytest-dev/pytest-cov https://pypi.python.org/pypi/pytest-cov"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+
+RDEPEND="
+ >=dev-python/py-1.4.22[${PYTHON_USEDEP}]
+ >=dev-python/pytest-2.6.0[${PYTHON_USEDEP}]
+ >=dev-python/cov-core-1.14.0[${PYTHON_USEDEP}]
+ >=dev-python/coverage-3.7.1[${PYTHON_USEDEP}]
+ <dev-python/coverage-4[${PYTHON_USEDEP}]"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/virtualenv[${PYTHON_USEDEP}]
+ dev-python/process-tests[${PYTHON_USEDEP}]
+ dev-python/pytest-cache[${PYTHON_USEDEP}]
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+ dev-python/pytest-capturelog[${PYTHON_USEDEP}]
+ )"
+
+python_test() {
+ PYTHONPATH="${S}/tests:${BUILD_DIR}/lib" \
+ py.test -p pytest_cov -vvx || die
+}
diff --git a/dev-python/pytest-cov/pytest-cov-2.2.0.ebuild b/dev-python/pytest-cov/pytest-cov-2.2.0.ebuild
new file mode 100644
index 000000000000..be456abdf404
--- /dev/null
+++ b/dev-python/pytest-cov/pytest-cov-2.2.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python{2_7,3_{4,5}} pypy pypy3 )
+inherit distutils-r1
+
+DESCRIPTION="py.test plugin for coverage reporting"
+HOMEPAGE="https://github.com/pytest-dev/pytest-cov https://pypi.python.org/pypi/pytest-cov"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+
+RDEPEND="
+ >=dev-python/py-1.4.22[${PYTHON_USEDEP}]
+ >=dev-python/pytest-2.6.0[${PYTHON_USEDEP}]
+ >=dev-python/cov-core-1.14.0[${PYTHON_USEDEP}]
+ >=dev-python/coverage-3.7.1[${PYTHON_USEDEP}]"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/virtualenv[${PYTHON_USEDEP}]
+ dev-python/process-tests[${PYTHON_USEDEP}]
+ || (
+ >=dev-python/pytest-2.8.0[${PYTHON_USEDEP}]
+ dev-python/pytest-cache[${PYTHON_USEDEP}]
+ )
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+ dev-python/pytest-capturelog[${PYTHON_USEDEP}]
+ )"
+
+# https://github.com/pytest-dev/pytest-cov/issues/99
+RESTRICT=test
+
+python_test() {
+ PYTHONPATH="${S}/tests:${BUILD_DIR}/lib" \
+ PYTEST_PLUGINS=pytest_cov \
+ py.test -v -v -x || die
+}
diff --git a/dev-python/pytest-cov/pytest-cov-2.2.1.ebuild b/dev-python/pytest-cov/pytest-cov-2.2.1.ebuild
new file mode 100644
index 000000000000..3eaf9819fc11
--- /dev/null
+++ b/dev-python/pytest-cov/pytest-cov-2.2.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="py.test plugin for coverage reporting"
+HOMEPAGE="https://github.com/pytest-dev/pytest-cov https://pypi.python.org/pypi/pytest-cov"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+
+RDEPEND="
+ >=dev-python/py-1.4.22[${PYTHON_USEDEP}]
+ >=dev-python/pytest-2.6.0[${PYTHON_USEDEP}]
+ >=dev-python/cov-core-1.14.0[${PYTHON_USEDEP}]
+ >=dev-python/coverage-3.7.1[${PYTHON_USEDEP}]"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/virtualenv[${PYTHON_USEDEP}]
+ dev-python/process-tests[${PYTHON_USEDEP}]
+ || (
+ >=dev-python/pytest-2.8.0[${PYTHON_USEDEP}]
+ dev-python/pytest-cache[${PYTHON_USEDEP}]
+ )
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+ dev-python/pytest-capturelog[${PYTHON_USEDEP}]
+ )"
+
+# https://github.com/pytest-dev/pytest-cov/issues/99
+RESTRICT=test
+
+python_test() {
+ PYTHONPATH="${S}/tests:${BUILD_DIR}/lib" \
+ PYTEST_PLUGINS=${PN/-/_} \
+ py.test -v -v -x || die
+}
diff --git a/dev-python/pytest-cov/pytest-cov-2.3.1.ebuild b/dev-python/pytest-cov/pytest-cov-2.3.1.ebuild
new file mode 100644
index 000000000000..5c7a0cdbf23c
--- /dev/null
+++ b/dev-python/pytest-cov/pytest-cov-2.3.1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="py.test plugin for coverage reporting"
+HOMEPAGE="https://github.com/pytest-dev/pytest-cov https://pypi.python.org/pypi/pytest-cov"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 sparc x86"
+IUSE="doc test"
+
+RDEPEND="
+ >=dev-python/py-1.4.22[${PYTHON_USEDEP}]
+ >=dev-python/pytest-2.7.3[${PYTHON_USEDEP}]
+ >=dev-python/cov-core-1.14.0[${PYTHON_USEDEP}]
+ >=dev-python/coverage-3.7.1[${PYTHON_USEDEP}]
+ doc? (
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ dev-python/sphinx-py3doc-enhanced-theme[${PYTHON_USEDEP}]
+ )
+"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/virtualenv[${PYTHON_USEDEP}]
+ dev-python/process-tests[${PYTHON_USEDEP}]
+ || (
+ >=dev-python/pytest-2.8.0[${PYTHON_USEDEP}]
+ dev-python/pytest-cache[${PYTHON_USEDEP}]
+ )
+ =dev-python/pytest-xdist-1.15.0[${PYTHON_USEDEP}]
+ dev-python/pytest-capturelog[${PYTHON_USEDEP}]
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/fix-for-deprecation-warnings.patch"
+)
+
+python_compile_all() {
+ use doc && sphinx-build -b html docs _build/html
+}
+
+python_test() {
+ PYTHONPATH="${S}/tests:${BUILD_DIR}/lib" \
+ PYTEST_PLUGINS=${PN/-/_} \
+ py.test -v -v -x || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && HTML_DOCS=( _build/html/. )
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/pytest-cov/pytest-cov-2.5.1.ebuild b/dev-python/pytest-cov/pytest-cov-2.5.1.ebuild
new file mode 100644
index 000000000000..72ead3a4d2c7
--- /dev/null
+++ b/dev-python/pytest-cov/pytest-cov-2.5.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="py.test plugin for coverage reporting"
+HOMEPAGE="https://github.com/pytest-dev/pytest-cov https://pypi.python.org/pypi/pytest-cov"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc test"
+
+RDEPEND="
+ >=dev-python/py-1.4.22[${PYTHON_USEDEP}]
+ >=dev-python/pytest-2.7.3[${PYTHON_USEDEP}]
+ >=dev-python/cov-core-1.14.0[${PYTHON_USEDEP}]
+ >=dev-python/coverage-3.7.1[${PYTHON_USEDEP}]
+ doc? (
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ dev-python/sphinx-py3doc-enhanced-theme[${PYTHON_USEDEP}]
+ )
+"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/virtualenv[${PYTHON_USEDEP}]
+ dev-python/process-tests[${PYTHON_USEDEP}]
+ || (
+ >=dev-python/pytest-2.8.0[${PYTHON_USEDEP}]
+ dev-python/pytest-cache[${PYTHON_USEDEP}]
+ )
+ =dev-python/pytest-xdist-1.15.0[${PYTHON_USEDEP}]
+ dev-python/pytest-capturelog[${PYTHON_USEDEP}]
+ )
+"
+
+python_compile_all() {
+ use doc && sphinx-build -b html docs _build/html
+}
+
+python_test() {
+ PYTHONPATH="${S}/tests:${BUILD_DIR}/lib" \
+ PYTEST_PLUGINS=${PN/-/_} \
+ py.test -v -v -x || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && HTML_DOCS=( _build/html/. )
+ distutils-r1_python_install_all
+}