From 50c71de793c37c19d34a68b3af53ba5e7ca51d22 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 25 Mar 2024 07:01:01 +0000 Subject: gentoo auto-resync : 25:03:2024 - 07:01:01 --- dev-python/pytest-cov/Manifest | 2 + dev-python/pytest-cov/pytest-cov-5.0.0.ebuild | 63 +++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 dev-python/pytest-cov/pytest-cov-5.0.0.ebuild (limited to 'dev-python/pytest-cov') diff --git a/dev-python/pytest-cov/Manifest b/dev-python/pytest-cov/Manifest index 7f1ca3f0d011..f9c8b3b387e4 100644 --- a/dev-python/pytest-cov/Manifest +++ b/dev-python/pytest-cov/Manifest @@ -1,4 +1,6 @@ AUX pytest-cov-4.0.0-pytest-xdist-2.5.0.patch 750 BLAKE2B 018b270c47f1c19c19f9d72da935457a6042bcafa580d85f904d082fda9980d9a34579174b7b08551d6cedfbc6a6c7abd7be0216df0e21be64e49efe9d3dd1f5 SHA512 e8826ae013c7fb4cbe57975821faea9a8cfd2573befb4f961560e650cbced56e2dff3e02cde23e29e0bb5d06ce0d5893dc408c9e244ce014a5766c5a565f8efa DIST pytest-cov-4.1.0.tar.gz 63245 BLAKE2B ed69b96f2117fb924c47b5d80c4e01ec2ab27162ee31a91943e72927a919fe194a8a67ee86eb6bae68ac5a34288c91c57edd8a4800dbffca83f7da4006792d04 SHA512 1280e338ad236ae6757e4538a641fef740bee6c85c5af1f649ba4f28fd99f84ff1048ae40b8633d1751ea248788c1efd401aa078b3aa5929a9249514e5722fc1 +DIST pytest-cov-5.0.0.tar.gz 63042 BLAKE2B 6a0f3b38bbf6ae8843d804d078b3879e76ef146ba1bee2eb068bffe560332984994a8405964be185b2ededc2c8231288e609573c5a83143147eeb537659da1e5 SHA512 384459cafdb800711b935899acc3716f5fcbc28b40be0e168e58333603b1dea474bbd7a92f09b6afbe2f9dc1ce8599668a787c0f93884c263af894f44311a4a6 EBUILD pytest-cov-4.1.0.ebuild 1670 BLAKE2B 195eeba72365cf588d56d47590ca96fc47dffff0b8d1326e69df03b9894f73795b4c2a38080933ed0cd755e78bf68124797de28913b039ad16060193fd4e3060 SHA512 c3a33c626387e0f8d693a10628647ed275588ebf27070806453c6dbc31cc6f57ac54c69398613201141cd8438268bffba917223bfe0f53441d9ceba63b3e459b +EBUILD pytest-cov-5.0.0.ebuild 1653 BLAKE2B e675451b3bbcc407f3de88738dcb056cb15c0c7eb386e7c0bc6907bbacb81cf08cf9e5a52d4269d772429b7269776fd9de2154d1d8ada5f5616f3c3c310234e7 SHA512 89b6f7d7211265f5cc0ca29192fcc6549e484fcf1802da0b21869f91cdbb93a8237df461cdf61600584b798275999c0888ea834d88651f9757458450250c6734 MISC metadata.xml 412 BLAKE2B 0d79131c6fd8adf72493a7c333959e065cf4f2231f6c770800b6d05ff9afcc246cd202406bea6e28f6b0fd23ee6197aa8dac2dd59d0a89d9b07741f57e8fa5e8 SHA512 d1aab9ea8042bf810398a4195fd3595a8abbeb060ab38fd7b7e40085c8d5f22ecb78bab02e2331d4588199d88e0d3848413d75a18fe4373ecd9940a3c990c604 diff --git a/dev-python/pytest-cov/pytest-cov-5.0.0.ebuild b/dev-python/pytest-cov/pytest-cov-5.0.0.ebuild new file mode 100644 index 000000000000..41db49ce5552 --- /dev/null +++ b/dev-python/pytest-cov/pytest-cov-5.0.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{10..12} pypy3 ) + +inherit distutils-r1 multiprocessing pypi + +DESCRIPTION="pytest plugin for coverage reporting" +HOMEPAGE=" + https://github.com/pytest-dev/pytest-cov/ + https://pypi.org/project/pytest-cov/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~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}] + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-4.0.0-pytest-xdist-2.5.0.patch +) + +distutils_enable_sphinx docs \ + dev-python/furo +distutils_enable_tests pytest + +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 src=$( + "${EPYTHON}" -c "import coverage as m; print(*m.__path__)" || die + ) + # TODO: why do we need to do that?! + # https://github.com/pytest-dev/pytest-cov/issues/517 + ln -s "${src}" \ + "${BUILD_DIR}/install$(python_get_sitedir)/coverage" || die + + nonfatal epytest -n "$(makeopts_jobs)" --dist=worksteal + local ret=${?} + + rm "${BUILD_DIR}/install$(python_get_sitedir)/coverage" || die + + [[ ${ret} -ne 0 ]] && die "epytest failed on ${EPYTHON}" +} -- cgit v1.2.3