dev-python/pytest-cov: treeclean

Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
2024-04-12 21:33:20 +02:00
parent f14ecea7dd
commit fae6516b78
5 changed files with 2 additions and 111 deletions

View File

@@ -1,4 +0,0 @@
AUX pytest-cov-3.0.0-coverage-6.2.patch 1034 BLAKE2B 433d761faae7c929b09e6d7a346fa1129acb427939756efa4d465ed6a6a20fb45ad09f890ce9d9b95c45862bc072a20d9038a1acca06de1963008119188b3e87 SHA512 85501e1c16f9716a3c2b04c79786e657e71ed58a6b0d338458e4cd17abff19eb85dd4b4c6d427e5f17d259d8ce970e79682c613a51b252cd506b1cd895fd8ee6
DIST pytest-cov-3.0.0.tar.gz 61440 BLAKE2B 85f0b079c4c373191553271e34e78af68ac69ea53e3721aa0d43eb9dd55be935570eb15c0f8b954e4c0de6201c004ddef435ea70b03cfda893ecdcc230c283e7 SHA512 289d1b1e29dcc3461276de4c1bbd3884e4ec957efb7dd4c330bc3f25f1b978cbee64c0e2882b419eee5f9ccf44c9d1a23ce47a1b7cc7e436b9ebe894e4c11ae8
EBUILD pytest-cov-3.0.0-r2.ebuild 1581 BLAKE2B 8aa4a3f75e1b7918ed481065e07904503d03f6c0d62f8791343e42a75b29785af9da0262c5524085b954b000a41f2c49806f657aac086b7d1d1130d1511514f0 SHA512 ab648cfe9dd0161991a45d2e971c18db12eaf608156a729b54d09220bc6c27f1f87dc9c39edb2b629ded65a7b267dfe5002f304d60b9d7e41cdf12513204496c
MISC metadata.xml 522 BLAKE2B 74676e683c6930d2fd7c1cd42cde43df407dcd78547a1631667f9dcda60a367b78cb76883faf735dff829607cf21aa6eb121f4e197796421e91b3f1e62e28248 SHA512 1905c015f918e6e8cf24d8e70011b94dd24646e6c62c7939406e859cd4696feadef15b1f4c797e7bee768c9723def9dbd1b6726fff9d7f3a04df3475c6483f41

View File

@@ -1,30 +0,0 @@
From 6d06678a76d9275beb48917d7653ea6a610c7717 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Sun, 23 Jan 2022 15:03:35 +0100
Subject: [PATCH] Update test_invalid_coverage_source for coverage-6.2
Update test_invalid_coverage_source to make the "No data was collected"
less strict, as the output has changed in coverage-6.2. This solution
was suggested by Tom Callaway (@spotrh) on the linked bug.
Fixes #509
---
tests/test_pytest_cov.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py
index f93d352..6d97949 100644
--- a/tests/test_pytest_cov.py
+++ b/tests/test_pytest_cov.py
@@ -981,7 +981,7 @@ def test_invalid_coverage_source(testdir):
'*10 passed*'
])
result.stderr.fnmatch_lines([
- 'Coverage.py warning: No data was collected.*'
+ '*No data was collected.*'
])
result.stdout.fnmatch_lines([
'*Failed to generate report: No data to report.',
--
2.34.1

View File

@@ -1,16 +0,0 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>b@edevau.net</email>
<name>Andreas Billmeier</name>
</maintainer>
<upstream>
<remote-id type="pypi">pytest-cov</remote-id>
<remote-id type="github">pytest-dev/pytest-cov</remote-id>
<maintainer status="unknown">
<email>marc.schlaich@gmail.com</email>
<name>Marc Schlaich</name>
</maintainer>
</upstream>
</pkgmetadata>

View File

@@ -1,59 +0,0 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
PYPI_NO_NORMALIZE=1
inherit distutils-r1 pypi
DESCRIPTION="py.test plugin for coverage reporting"
HOMEPAGE="https://github.com/pytest-dev/pytest-cov https://pypi.org/project/pytest-cov/"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
RDEPEND="
>=dev-python/py-1.4.22[${PYTHON_USEDEP}]
>=dev-python/pytest-3.6[${PYTHON_USEDEP}]
>=dev-python/coverage-6.4.4-r1[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/virtualenv[${PYTHON_USEDEP}]
dev-python/fields[${PYTHON_USEDEP}]
>=dev-python/process-tests-2.0.2[${PYTHON_USEDEP}]
dev-python/pytest-xdist[${PYTHON_USEDEP}]
)
"
distutils_enable_sphinx docs \
dev-python/sphinx-py3doc-enhanced-theme
distutils_enable_tests pytest
PATCHES=(
# https://github.com/pytest-dev/pytest-cov/pull/518
"${FILESDIR}"/${P}-coverage-6.2.patch
)
python_test() {
# NB: disabling all plugins speeds tests up a lot
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
local -x PYTEST_PLUGINS=pytest_cov.plugin,xdist.plugin,xdist.looponfail
local EPYTEST_DESELECT=(
# attempts to install packages via pip (network)
tests/test_pytest_cov.py::test_dist_missing_data
)
# TODO: why do we need to do that?!
# https://github.com/pytest-dev/pytest-cov/issues/517
ln -s "${BROOT}$(python_get_sitedir)/coverage" \
"${BUILD_DIR}/install$(python_get_sitedir)/coverage" || die
epytest -x
rm "${BUILD_DIR}/install$(python_get_sitedir)/coverage" || die
}