From fae6516b78f6dd40b795d8aa1ebb3659e418ac5f Mon Sep 17 00:00:00 2001 From: Andreas Billmeier Date: Fri, 12 Apr 2024 21:33:20 +0200 Subject: [PATCH] dev-python/pytest-cov: treeclean Signed-off-by: Andreas Billmeier --- README.md | 4 +- dev-python/pytest-cov/Manifest | 4 -- .../files/pytest-cov-3.0.0-coverage-6.2.patch | 30 ---------- dev-python/pytest-cov/metadata.xml | 16 ----- .../pytest-cov/pytest-cov-3.0.0-r2.ebuild | 59 ------------------- 5 files changed, 2 insertions(+), 111 deletions(-) delete mode 100644 dev-python/pytest-cov/Manifest delete mode 100644 dev-python/pytest-cov/files/pytest-cov-3.0.0-coverage-6.2.patch delete mode 100644 dev-python/pytest-cov/metadata.xml delete mode 100644 dev-python/pytest-cov/pytest-cov-3.0.0-r2.ebuild diff --git a/README.md b/README.md index 44de8b897..ff2f688c7 100644 --- a/README.md +++ b/README.md @@ -617,11 +617,11 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E ## Licenses This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted. -There are 1781 Ebuilds in total, 1770 of them have in total 1790 (42 different) licenses assigned. +There are 1780 Ebuilds in total, 1769 of them have in total 1789 (42 different) licenses assigned. |License| Ebuilds using it| |-------|-----| -|MIT|1013| +|MIT|1012| |Apache-2.0|398| |GPL-3|106| |BSD|104| diff --git a/dev-python/pytest-cov/Manifest b/dev-python/pytest-cov/Manifest deleted file mode 100644 index 0c32aadd7..000000000 --- a/dev-python/pytest-cov/Manifest +++ /dev/null @@ -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 diff --git a/dev-python/pytest-cov/files/pytest-cov-3.0.0-coverage-6.2.patch b/dev-python/pytest-cov/files/pytest-cov-3.0.0-coverage-6.2.patch deleted file mode 100644 index b44326d8b..000000000 --- a/dev-python/pytest-cov/files/pytest-cov-3.0.0-coverage-6.2.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 6d06678a76d9275beb48917d7653ea6a610c7717 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= -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 - diff --git a/dev-python/pytest-cov/metadata.xml b/dev-python/pytest-cov/metadata.xml deleted file mode 100644 index 61e1708a1..000000000 --- a/dev-python/pytest-cov/metadata.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - b@edevau.net - Andreas Billmeier - - - pytest-cov - pytest-dev/pytest-cov - - marc.schlaich@gmail.com - Marc Schlaich - - - diff --git a/dev-python/pytest-cov/pytest-cov-3.0.0-r2.ebuild b/dev-python/pytest-cov/pytest-cov-3.0.0-r2.ebuild deleted file mode 100644 index 2d850291f..000000000 --- a/dev-python/pytest-cov/pytest-cov-3.0.0-r2.ebuild +++ /dev/null @@ -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 -}