From 7e662ec84fc13cef513542e4030f47017d030187 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 12 Oct 2022 19:40:50 +0100 Subject: gentoo auto-resync : 12:10:2022 - 19:40:50 --- .../GridDataFormats/GridDataFormats-1.0.1.ebuild | 2 +- dev-python/GridDataFormats/Manifest | 2 +- dev-python/Manifest.gz | Bin 261400 -> 261395 bytes dev-python/coverage/Manifest | 4 +- dev-python/coverage/coverage-6.4.4-r1.ebuild | 73 +++++++++++++++++++ dev-python/coverage/coverage-6.4.4.ebuild | 68 ------------------ dev-python/coverage/coverage-6.5.0-r1.ebuild | 78 +++++++++++++++++++++ dev-python/coverage/coverage-6.5.0.ebuild | 73 ------------------- dev-python/emcee/Manifest | 2 +- dev-python/emcee/emcee-3.1.3.ebuild | 2 +- dev-python/isort/Manifest | 2 +- dev-python/isort/isort-5.10.1-r1.ebuild | 65 ----------------- dev-python/isort/isort-5.10.1-r2.ebuild | 70 ++++++++++++++++++ dev-python/logbook/Manifest | 2 + dev-python/logbook/logbook-1.5.3-r1.ebuild | 45 ++++++++++++ dev-python/minikanren/Manifest | 2 +- dev-python/minikanren/minikanren-1.0.3.ebuild | 2 +- dev-python/pytest-cov/Manifest | 4 +- dev-python/pytest-cov/pytest-cov-3.0.0-r1.ebuild | 60 ---------------- dev-python/pytest-cov/pytest-cov-3.0.0-r2.ebuild | 59 ++++++++++++++++ dev-python/pytest-cov/pytest-cov-4.0.0-r1.ebuild | 60 ++++++++++++++++ dev-python/pytest-cov/pytest-cov-4.0.0.ebuild | 61 ---------------- 22 files changed, 398 insertions(+), 338 deletions(-) create mode 100644 dev-python/coverage/coverage-6.4.4-r1.ebuild delete mode 100644 dev-python/coverage/coverage-6.4.4.ebuild create mode 100644 dev-python/coverage/coverage-6.5.0-r1.ebuild delete mode 100644 dev-python/coverage/coverage-6.5.0.ebuild delete mode 100644 dev-python/isort/isort-5.10.1-r1.ebuild create mode 100644 dev-python/isort/isort-5.10.1-r2.ebuild create mode 100644 dev-python/logbook/logbook-1.5.3-r1.ebuild delete mode 100644 dev-python/pytest-cov/pytest-cov-3.0.0-r1.ebuild create mode 100644 dev-python/pytest-cov/pytest-cov-3.0.0-r2.ebuild create mode 100644 dev-python/pytest-cov/pytest-cov-4.0.0-r1.ebuild delete mode 100644 dev-python/pytest-cov/pytest-cov-4.0.0.ebuild (limited to 'dev-python') diff --git a/dev-python/GridDataFormats/GridDataFormats-1.0.1.ebuild b/dev-python/GridDataFormats/GridDataFormats-1.0.1.ebuild index 430e043f76da..30f452b6bdc9 100644 --- a/dev-python/GridDataFormats/GridDataFormats-1.0.1.ebuild +++ b/dev-python/GridDataFormats/GridDataFormats-1.0.1.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_COMPAT=( python3_{8..11} ) inherit distutils-r1 diff --git a/dev-python/GridDataFormats/Manifest b/dev-python/GridDataFormats/Manifest index 3b4e535f3210..de953f6acd5e 100644 --- a/dev-python/GridDataFormats/Manifest +++ b/dev-python/GridDataFormats/Manifest @@ -1,5 +1,5 @@ DIST GridDataFormats-0.6.0.tar.gz 1984859 BLAKE2B b53e6a43a06fdcb42fbef4c10dbdb1b5740fc04fff468b666c687ba5a839b8129b49358d54c6d7e4229ebaa67af01d897fe960f87a868950657bbcbb85ec7487 SHA512 b876eacd7b1d3a7dd6fe35e2092783183fb0ffadf7fbf583773e6a3401bef51bd33ebb2e73f8b4ec9cd404c153c30ce09dfb75d5e4aacba53915d085f090d0ea DIST GridDataFormats-1.0.1.tar.gz 2155370 BLAKE2B 8bf5ce65cefdcf490b75212bca8831957769118fbad7fdce42b5634ed67a1f5d4ac454f7429b984bafd89f5bc883fff1bca9dc71f529794cdd585e186e41e063 SHA512 2cfb8c50b4d17fa978924a0e65ae27f6e125bd1055bfdc9096ea35511f4c2a8a16f6bd9c652b9130fbdd66d4d464d8074b14f47c175f98df94c02fe973a0107b EBUILD GridDataFormats-0.6.0.ebuild 620 BLAKE2B 25c320580183c150d77c9e10a103dd425b1cf005749a8686676c1fa8c1a1cf747df6b437a62783e39f1764a82c73e5c00ca754a076c79231d2b39e0a2edcf078 SHA512 74e25dc0724e53585cc03d7c4726531c9169d86c79dfd2d01faaaf03ec320eab4712cc826aca7e8a02a88e0215484276776d45a1f94e982c5886c80afabb4201 -EBUILD GridDataFormats-1.0.1.ebuild 667 BLAKE2B 353d752b55d881da2891855e0511b5fb69bbbf8be8bd4d81ce185ef79834ef4cab72b1d62d70646ce61b5b92d00ab0294ad13e00114100db5e9e92a15dcb7c2b SHA512 bf5d0c86d762ed9cd06ddaccab5a86d60233c44545434ce0efa69218fdf7935afdd5375398de560d589f4866a88eeefe2917574585035804db4ddd5c08eedf60 +EBUILD GridDataFormats-1.0.1.ebuild 667 BLAKE2B 72083c7dc97563ce302953f7eb11610c06da1746b1829dc776b9afedc01e33ac952c4484afdceb95eae044f2ff679c86fd23c683f94ece88ea4018debe2988d5 SHA512 4091ae5a12da97654ea7bdd9d4a707d325a4031c2ecacce7dae225e352f991c396c4f09a953eb548f99f2608cc6b638e79a7e93d1120640dc4123341cd647a24 MISC metadata.xml 608 BLAKE2B 25b3e613ce6776ecc00b7ab3e65ba253be7715f167b37d4fc4d625b035e8d24706cd56bc14f2f0cac2b3f4da6b84c8bcd2b219914490b9e3bc9fab0cbbc2ddfc SHA512 48ca119e78978f100a3212a59d716d49766e6bd523813c5395d05f705f1258e1899183d52faabfef95162b82ccfa08b5b771c1a00c53d7c42a54aaa97eb9ae52 diff --git a/dev-python/Manifest.gz b/dev-python/Manifest.gz index c190798228b5..ec79ddd1688c 100644 Binary files a/dev-python/Manifest.gz and b/dev-python/Manifest.gz differ diff --git a/dev-python/coverage/Manifest b/dev-python/coverage/Manifest index a1e63925d02b..4dab5b28d242 100644 --- a/dev-python/coverage/Manifest +++ b/dev-python/coverage/Manifest @@ -1,5 +1,5 @@ DIST coverage-6.4.4.tar.gz 772949 BLAKE2B 87b4c51ac43ac3bd2202496f6db6de5c74dd9925521bf3092cd862b86d8d7c0e3d008ee550c90e890febd87cc4d167669e830668f15da94ef4ea72e82154bf26 SHA512 f210f2471b170e05d4dac2cc9a91e3f0d4ba6456cdf91dc1c0ef67a02a11f4279c5beca5df8854c42660346995492b1eff020e1ac578d2a0a129627dadd17114 DIST coverage-6.5.0.tar.gz 775224 BLAKE2B 1ff7db1c72856553717d07d5a13443c210a3d85b3ce1f1eee802b986f71e3c13ac9df6bbca498fbeaa961ee33baab29c5e38f0c0e7b21c378830dfe85d797798 SHA512 4f2ec0bf69a83471a2b5a73b6a2212372ee6e32ccc4c72e0d33eef915939152f3213ab60e1a22ce2b72791e706c2223b0c81c87b95bbfadd1e828fa1a9fff120 -EBUILD coverage-6.4.4.ebuild 1678 BLAKE2B c7e457ab2b0d46e6550793f295ee6294b70f099aa0c6be6a3a3a8505cfd8dc8dce1270b550dd6a73c838d4aaea0c99d20c12c6fdab32bc05e62e45c902df6275 SHA512 a9a31b2d0883fb30bf389104f9d884313bb6906bc71f8093931021f7c9c5e441304ae536a33c2948c5df69a45532dad6ff9c531533ff23511853901d7d8ec224 -EBUILD coverage-6.5.0.ebuild 1799 BLAKE2B 74ac7ba94fc20a48efe45b9269ce17cd5de9cf73fa3203b3525993b665279f76cce974c88e91d9768d918524db3a4d90153f8281be148e5410be1ca4cb0ced6d SHA512 d36cb0a78490a8fd9de11d832aa5ad1b7635f6d68ea7e3d56f397c28b33b577b56d5a06ad90e051eaabb972e211d0fe315d23545785b5e79d5a08d9f719ec4ef +EBUILD coverage-6.4.4-r1.ebuild 1766 BLAKE2B bc03a444006297a7a5d10719b60f0f2c9e3517baa4536f4ee8ac390e3f643fbc60a2c6839c75ed59dc95315bf10f5127150e984680472ba1cb270eb317df8abc SHA512 ad862638ae24159c78edcd8dd7b59431e62ef7e50bc16eb22067aff0cd8c27ae96c034a8fae4a3a1f84d147311b33de08dba819462590256fe5aede95e1f05f4 +EBUILD coverage-6.5.0-r1.ebuild 1887 BLAKE2B c42061e654f62985d632de8e02fb39b1e67b8610fc005e0772bfd2e650f104695fc8dd59a4f66e37df3e5a63167cd90c6ae2cf7cfd657cf791be063b399a0636 SHA512 363d29518513828e3b07c72dafe1c89341e9b772b1505875b9e2534c1af12d1a41818b870c5e1f43dc39259942c2a9a519a51769c08493f2e451202a63be5d02 MISC metadata.xml 714 BLAKE2B c0d2641f795a21a80b6fa36206973f41421effe055e4c5e41bf752869759eb48e8fe42a0ab00af55b5d5111bfaccd330676d63e263013dc9bd3c344cb038a3a6 SHA512 412d70b7c9c2871bb93ae6ed6ae110a9f29c26957f6e1b24cc531c7d49f292ecb5206df10b409f2e44d2f814b119ef4ed973bca608df999026bda8df2156df24 diff --git a/dev-python/coverage/coverage-6.4.4-r1.ebuild b/dev-python/coverage/coverage-6.4.4-r1.ebuild new file mode 100644 index 000000000000..d0af269cf673 --- /dev/null +++ b/dev-python/coverage/coverage-6.4.4-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} pypy3 ) +PYTHON_REQ_USE="threads(+),sqlite(+)" + +inherit distutils-r1 + +DESCRIPTION="Code coverage measurement for Python" +HOMEPAGE=" + https://coverage.readthedocs.io/en/latest/ + https://github.com/nedbat/coveragepy/ + 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 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.{8..10}) +" +BDEPEND=" + test? ( + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/hypothesis[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + >=dev-python/unittest-mixins-1.4[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + sed -i -e '/^addopts/s:-q -n auto::' setup.cfg || die + distutils-r1_src_prepare +} + +test_tracer() { + local -x COVERAGE_TEST_TRACER=${1} + einfo " Testing with the ${COVERAGE_TEST_TRACER} tracer ..." + epytest tests +} + +python_test() { + "${EPYTHON}" igor.py zip_mods || die + + local -x COVERAGE_TESTING=True + # TODO: figure out why they can't be imported inside test env + local -x COVERAGE_NO_CONTRACTS=1 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=_hypothesis_pytestplugin,flaky.flaky_pytest_plugin,xdist.plugin + + local prev_opt=$(shopt -p nullglob) + shopt -s nullglob + local c_ext=( "${BUILD_DIR}/install$(python_get_sitedir)"/coverage/*.so ) + ${prev_opt} + + if [[ -n ${c_ext} ]]; then + cp "${c_ext}" \ + coverage/ || die + test_tracer c + rm coverage/*.so || die + else + test_tracer py + fi +} diff --git a/dev-python/coverage/coverage-6.4.4.ebuild b/dev-python/coverage/coverage-6.4.4.ebuild deleted file mode 100644 index 46cfdde3d0d1..000000000000 --- a/dev-python/coverage/coverage-6.4.4.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..11} pypy3 ) -PYTHON_REQ_USE="threads(+),sqlite(+)" - -inherit distutils-r1 - -DESCRIPTION="Code coverage measurement for Python" -HOMEPAGE=" - https://coverage.readthedocs.io/en/latest/ - https://github.com/nedbat/coveragepy/ - 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 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos" - -BDEPEND=" - test? ( - dev-python/flaky[${PYTHON_USEDEP}] - dev-python/hypothesis[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - >=dev-python/unittest-mixins-1.4[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -src_prepare() { - sed -i -e '/^addopts/s:-q -n auto::' setup.cfg || die - distutils-r1_src_prepare -} - -test_tracer() { - local -x COVERAGE_TEST_TRACER=${1} - einfo " Testing with the ${COVERAGE_TEST_TRACER} tracer ..." - epytest tests -} - -python_test() { - "${EPYTHON}" igor.py zip_mods || die - - local -x COVERAGE_TESTING=True - # TODO: figure out why they can't be imported inside test env - local -x COVERAGE_NO_CONTRACTS=1 - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - local -x PYTEST_PLUGINS=_hypothesis_pytestplugin,flaky.flaky_pytest_plugin,xdist.plugin - - local prev_opt=$(shopt -p nullglob) - shopt -s nullglob - local c_ext=( "${BUILD_DIR}/install$(python_get_sitedir)"/coverage/*.so ) - ${prev_opt} - - if [[ -n ${c_ext} ]]; then - cp "${c_ext}" \ - coverage/ || die - test_tracer c - rm coverage/*.so || die - else - test_tracer py - fi -} diff --git a/dev-python/coverage/coverage-6.5.0-r1.ebuild b/dev-python/coverage/coverage-6.5.0-r1.ebuild new file mode 100644 index 000000000000..ffeda11b21d4 --- /dev/null +++ b/dev-python/coverage/coverage-6.5.0-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} pypy3 ) +PYTHON_REQ_USE="threads(+),sqlite(+)" + +inherit distutils-r1 + +DESCRIPTION="Code coverage measurement for Python" +HOMEPAGE=" + https://coverage.readthedocs.io/en/latest/ + https://github.com/nedbat/coveragepy/ + 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 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.{8..10}) +" +BDEPEND=" + test? ( + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/hypothesis[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + >=dev-python/unittest-mixins-1.4[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + sed -i -e '/^addopts/s:-q -n auto::' setup.cfg || die + distutils-r1_src_prepare +} + +test_tracer() { + local -x COVERAGE_TEST_TRACER=${1} + einfo " Testing with the ${COVERAGE_TEST_TRACER} tracer ..." + epytest tests +} + +python_test() { + local EPYTEST_IGNORE=( + # pip these days insists on fetching build deps from Internet + tests/test_venv.py + ) + + "${EPYTHON}" igor.py zip_mods || die + + local -x COVERAGE_TESTING=True + # TODO: figure out why they can't be imported inside test env + local -x COVERAGE_NO_CONTRACTS=1 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=_hypothesis_pytestplugin,flaky.flaky_pytest_plugin,xdist.plugin + + local prev_opt=$(shopt -p nullglob) + shopt -s nullglob + local c_ext=( "${BUILD_DIR}/install$(python_get_sitedir)"/coverage/*.so ) + ${prev_opt} + + if [[ -n ${c_ext} ]]; then + cp "${c_ext}" \ + coverage/ || die + test_tracer c + rm coverage/*.so || die + else + test_tracer py + fi +} diff --git a/dev-python/coverage/coverage-6.5.0.ebuild b/dev-python/coverage/coverage-6.5.0.ebuild deleted file mode 100644 index e2e5a9ba699a..000000000000 --- a/dev-python/coverage/coverage-6.5.0.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..11} pypy3 ) -PYTHON_REQ_USE="threads(+),sqlite(+)" - -inherit distutils-r1 - -DESCRIPTION="Code coverage measurement for Python" -HOMEPAGE=" - https://coverage.readthedocs.io/en/latest/ - https://github.com/nedbat/coveragepy/ - 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 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" - -BDEPEND=" - test? ( - dev-python/flaky[${PYTHON_USEDEP}] - dev-python/hypothesis[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - >=dev-python/unittest-mixins-1.4[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -src_prepare() { - sed -i -e '/^addopts/s:-q -n auto::' setup.cfg || die - distutils-r1_src_prepare -} - -test_tracer() { - local -x COVERAGE_TEST_TRACER=${1} - einfo " Testing with the ${COVERAGE_TEST_TRACER} tracer ..." - epytest tests -} - -python_test() { - local EPYTEST_IGNORE=( - # pip these days insists on fetching build deps from Internet - tests/test_venv.py - ) - - "${EPYTHON}" igor.py zip_mods || die - - local -x COVERAGE_TESTING=True - # TODO: figure out why they can't be imported inside test env - local -x COVERAGE_NO_CONTRACTS=1 - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - local -x PYTEST_PLUGINS=_hypothesis_pytestplugin,flaky.flaky_pytest_plugin,xdist.plugin - - local prev_opt=$(shopt -p nullglob) - shopt -s nullglob - local c_ext=( "${BUILD_DIR}/install$(python_get_sitedir)"/coverage/*.so ) - ${prev_opt} - - if [[ -n ${c_ext} ]]; then - cp "${c_ext}" \ - coverage/ || die - test_tracer c - rm coverage/*.so || die - else - test_tracer py - fi -} diff --git a/dev-python/emcee/Manifest b/dev-python/emcee/Manifest index 104d634c7ede..16f035f41bfb 100644 --- a/dev-python/emcee/Manifest +++ b/dev-python/emcee/Manifest @@ -1,5 +1,5 @@ DIST emcee-3.1.2.tar.gz 2868985 BLAKE2B 8da142b7be3d4c5f2ab93081d27d7105e312f2ca9702c0f57b8aaf6cf98e4dfae141fc24342bb9c30049d4de747b4d744f689dbb1be780519c426ef343d73485 SHA512 11e4e6f90a3f039c8459963217d0699a953f23aff2ffc67e7da3696926dcf915fdb1f4bd3781b88cbab6f664c38cec50b3470316aa6ec49b0e617218e2a7b95d DIST emcee-3.1.3.tar.gz 2868872 BLAKE2B 0c665aa0cf4d96041b6627d849b40a906623724a8a51affc613e3e2da7910efb0016d17bbbc48b03e2d960873b6565c6c1345ceaffbfcda4cb16f0c56bf9534b SHA512 95b81b124183dd9f7df9381a4b792e1daa8154b2f187f0b5d2627d174371e01a6fcbc1a29e907efb1689065e8d037e3d98a40f1f35053a5dd400a922c30da38f EBUILD emcee-3.1.2.ebuild 896 BLAKE2B b7ce8e5a2e40888d38d0f0d7bbcb1da1308ce26a4801334417c1ef1812c05c14b3e30850c1c0fc7d82bcaf4662f721ebc9696c51b1f42a26b1bf5ec90caeeb94 SHA512 86ef4370aac141cef8fb5acda92deb0413a0db51cc5b0717c0970a96fd98101db3aa798b84a4d17129d3aba899324f10eea7019f835766f2bcff208d45839415 -EBUILD emcee-3.1.3.ebuild 896 BLAKE2B b7ce8e5a2e40888d38d0f0d7bbcb1da1308ce26a4801334417c1ef1812c05c14b3e30850c1c0fc7d82bcaf4662f721ebc9696c51b1f42a26b1bf5ec90caeeb94 SHA512 86ef4370aac141cef8fb5acda92deb0413a0db51cc5b0717c0970a96fd98101db3aa798b84a4d17129d3aba899324f10eea7019f835766f2bcff208d45839415 +EBUILD emcee-3.1.3.ebuild 896 BLAKE2B ea6bb4ca4b55e3355d654076a7514afb8e36d1be06b57c340f3b34de673f486e77c11eb1933556998e70ca667fbfc1ac387b83f1235834f1c8d3011f2f9b9dc5 SHA512 7707c0fcb6763a969d6d4764cea38bd28db7b7b4a09921410dc6a3d9c2eed78ac8bb112f7f79ee89a4df47954bb288f3e031aa6d40bc749c38b4b50789b2c481 MISC metadata.xml 973 BLAKE2B b8ddf2eed9f24b9b7b3f4f970e6e41702d53a71e78ecb5c3be381102a9948fedf0ce14fb75147a2de07f43b000c732512a9e2ed3d1179e666c3aa91c27ae553a SHA512 3fbb8aa55d96b2eea99805d037f280cb570324f0750895c206abe2c4d1120ffb8818cb302c61a1f44dc2566e3cd783a927a1f1200cf321622181232033f83e39 diff --git a/dev-python/emcee/emcee-3.1.3.ebuild b/dev-python/emcee/emcee-3.1.3.ebuild index 04c0d4155eb3..3c7cbb8b8d3d 100644 --- a/dev-python/emcee/emcee-3.1.3.ebuild +++ b/dev-python/emcee/emcee-3.1.3.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_COMPAT=( python3_{8..11} ) inherit distutils-r1 diff --git a/dev-python/isort/Manifest b/dev-python/isort/Manifest index 86e55e3e9ca1..f0238ea95540 100644 --- a/dev-python/isort/Manifest +++ b/dev-python/isort/Manifest @@ -1,3 +1,3 @@ DIST isort-5.10.1.gh.tar.gz 728462 BLAKE2B 5b892b9849293e8730e6d89592bace62009a8589d185b4d3a5bafded605ccd46fd0f2986fbad5cf1d72321d030e3193a111ab7e6114c6b4a7a67696f546b3a14 SHA512 545c1844bacc1d2d9e87e60b03b30a846ee1ebbfe2a229c3e018a2e1cc6e9a04a3691f1b2e7ec8575806f2341bc1af15eb64904b4eabd786d6b9b289cea5ce2a -EBUILD isort-5.10.1-r1.ebuild 1547 BLAKE2B 898481403efea0b54c6dab92d6a40d53f4bedccfe415672b37199925f31ec0484ab8c43eb1f07172ea26314429369de647c3f6ed892bf3e1e8e866f0e9ae58d1 SHA512 10007a4dd6ada0418de5bb830b3b90c5cc7316c342dee3b725a52e901ba3d1fc6a736abe1737c300933a136217633a98a38e6d96be761a52c85e6b9da626cc42 +EBUILD isort-5.10.1-r2.ebuild 1587 BLAKE2B 8dad9e980e0f2d6a914c99131d817c2296ac16b710486574439d3d97834f205b45d3449728acbc1fe7d0188faf4802f2cc74317db88c0096d6d7c629fc1ac6d6 SHA512 360cd315a1dc325075879bb355070e99dd9396c7d3d42e5433e1a21b06f4a8e8af01a9a5d77cabdcdc5f1831746665d324a9eff672714221c5360f29b5382b5a MISC metadata.xml 574 BLAKE2B db8aac55351f15190d9b71508268f26b12a781b3b4f0f6836a30efc954b46b71da496129a9641655db483730435b44a5c5283132521dc3cc93279c57735a1ba4 SHA512 c8116bf66155ffeb7ac8d68822559e18252210dae604b4984aa5e6a3fb7161d785cbd235dc6f656513b5bab326f6e579489245bcef9d0a5dfadc34d7477758fb diff --git a/dev-python/isort/isort-5.10.1-r1.ebuild b/dev-python/isort/isort-5.10.1-r1.ebuild deleted file mode 100644 index 3ce357892d29..000000000000 --- a/dev-python/isort/isort-5.10.1-r1.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=poetry -PYTHON_COMPAT=( python3_{8..10} ) - -inherit distutils-r1 - -DESCRIPTION="A python utility/library to sort imports" -HOMEPAGE="https://pypi.org/project/isort/" -SRC_URI=" - https://github.com/PyCQA/isort/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" - -RDEPEND=" - dev-python/toml[${PYTHON_USEDEP}]" -BDEPEND=" - test? ( - dev-python/black[${PYTHON_USEDEP}] - dev-python/colorama[${PYTHON_USEDEP}] - dev-python/hypothesis[${PYTHON_USEDEP}] - dev-python/natsort[${PYTHON_USEDEP}] - dev-python/pylama[${PYTHON_USEDEP}] - dev-python/pytest-mock[${PYTHON_USEDEP}] - dev-vcs/git - ) -" - -distutils_enable_tests pytest - -src_prepare() { - # unbundle toml - sed -i -e 's:from ._vendored ::' isort/settings.py || die - rm -r isort/_vendored || die - # remove upper bounds from example plugin deps - # (already removed upstream) - sed -i -e 's:\^:>=:' example*/pyproject.toml || die - - distutils-r1_src_prepare -} - -python_test() { - cp -a "${BUILD_DIR}"/{install,test} || die - local -x PATH=${BUILD_DIR}/test/usr/bin:${PATH} - - # Install necessary plugins - local p - for p in example*/; do - pushd "${p}" >/dev/null || die - distutils_pep517_install "${BUILD_DIR}"/test - popd >/dev/null || die - done - - local EPYTEST_IGNORE=( - # Excluded from upstream's test script - tests/unit/test_deprecated_finders.py - ) - epytest tests/unit -} diff --git a/dev-python/isort/isort-5.10.1-r2.ebuild b/dev-python/isort/isort-5.10.1-r2.ebuild new file mode 100644 index 000000000000..7f3956652c3b --- /dev/null +++ b/dev-python/isort/isort-5.10.1-r2.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 + +DESCRIPTION="A python utility/library to sort imports" +HOMEPAGE=" + https://github.com/PyCQA/isort/ + https://pypi.org/project/isort/ +" +SRC_URI=" + https://github.com/PyCQA/isort/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" + +RDEPEND=" + dev-python/tomli[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/black[${PYTHON_USEDEP}] + dev-python/colorama[${PYTHON_USEDEP}] + dev-python/hypothesis[${PYTHON_USEDEP}] + dev-python/natsort[${PYTHON_USEDEP}] + dev-python/pylama[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-vcs/git + ) +" + +distutils_enable_tests pytest + +src_prepare() { + # unbundle tomli + sed -i -e 's:from ._vendored ::' isort/settings.py || die + rm -r isort/_vendored || die + # remove upper bounds from example plugin deps + # (already removed upstream) + sed -i -e 's:\^:>=:' example*/pyproject.toml || die + + distutils-r1_src_prepare +} + +python_test() { + cp -a "${BUILD_DIR}"/{install,test} || die + local -x PATH=${BUILD_DIR}/test/usr/bin:${PATH} + + # Install necessary plugins + local p + for p in example*/; do + pushd "${p}" >/dev/null || die + distutils_pep517_install "${BUILD_DIR}"/test + popd >/dev/null || die + done + + local EPYTEST_IGNORE=( + # Excluded from upstream's test script + tests/unit/test_deprecated_finders.py + ) + epytest tests/unit +} diff --git a/dev-python/logbook/Manifest b/dev-python/logbook/Manifest index 2601b7981925..97b855d9fb6e 100644 --- a/dev-python/logbook/Manifest +++ b/dev-python/logbook/Manifest @@ -1,3 +1,5 @@ +DIST logbook-1.5.3.gh.tar.gz 371901 BLAKE2B e37924e06613ccf27380004b159966b7b42ec7b766afb6904751eafb3d774c5a9994b9d63f834fbe949fe345953c0da4693e093d717b589046412bd4056322bf SHA512 c9068324f12a189ced98e2c02753489847fa533ce3a3af07b62c73e9959c2e014d47515d47e756d031639cb220a2c4a9a380cba4cb3ea1b190c50106decba686 DIST logbook-1.5.3.tar.gz 371901 BLAKE2B e37924e06613ccf27380004b159966b7b42ec7b766afb6904751eafb3d774c5a9994b9d63f834fbe949fe345953c0da4693e093d717b589046412bd4056322bf SHA512 c9068324f12a189ced98e2c02753489847fa533ce3a3af07b62c73e9959c2e014d47515d47e756d031639cb220a2c4a9a380cba4cb3ea1b190c50106decba686 +EBUILD logbook-1.5.3-r1.ebuild 1154 BLAKE2B 015220698b6a4ba52ff7e7c2dedee6860204ec6c2a5c8cd7b093427bed93aea5a240e8105d515144d27998d58953133232ca806090f80397e43f322887099600 SHA512 2bd351d29be549d7eb4979831024f83e1e14836e77b7bb811d2cc19cfe1550264c97262cf7e38314f1e372a3ad9f36505a4c6c167c89dabc78704531ddd03aca EBUILD logbook-1.5.3.ebuild 1074 BLAKE2B 49887151d20666f3d379f65eafc4a5c3df9c25bcd99566cfcc6ccb1ee82117e85be761ce8ade2f26935046170212bdadbb09bbb101641108a295d7f2b0cf3784 SHA512 e0becfef1e7a3688b6646094c13cea0e7daff21f7f1487e6a3cd1a2e42efd8f5644295c8f17d9ece4da6548aa868391194cb40909ecd733c16d158d7886dd539 MISC metadata.xml 519 BLAKE2B 552fa368fac398134dcd21eb8ee58f8b87ea14bfa505e778d2963d73d99a4d0e6565306c121fe6daa6cd47f442f185adf8d12468caf18e1b3a6c7cdfc848a43f SHA512 182d50afcf20b64e54add31c8e0ae1ca9489e334c36909846bcb34ad9da01a890f9ee69ca55e5d55006b88648a6a9103d08cd0fbf0fb034d39d492c64b63be77 diff --git a/dev-python/logbook/logbook-1.5.3-r1.ebuild b/dev-python/logbook/logbook-1.5.3-r1.ebuild new file mode 100644 index 000000000000..bb374548a6f2 --- /dev/null +++ b/dev-python/logbook/logbook-1.5.3-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 + +DESCRIPTION="A logging replacement for Python" +HOMEPAGE="https://logbook.readthedocs.io/en/stable/ + https://github.com/getlogbook/logbook + https://pypi.org/project/Logbook/" +SRC_URI="https://github.com/getlogbook/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~riscv ~x86" + +BDEPEND=" + test? ( + app-arch/brotli[${PYTHON_USEDEP},python] + dev-python/execnet[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + dev-python/pip[${PYTHON_USEDEP}] + dev-python/pyzmq[${PYTHON_USEDEP}] + dev-python/sqlalchemy[${PYTHON_USEDEP}] + )" +RDEPEND=" + !!dev-python/contextvars + !!dev-python/gevent" + +distutils_enable_tests pytest +distutils_enable_sphinx docs + +EPYTEST_DESELECT=( + # Delete test file requiring local connection to redis server + tests/test_queues.py + # https://github.com/getlogbook/logbook/issues/318 + tests/test_ticketing.py::test_basic_ticketing +) + +python_configure_all() { + export DISABLE_LOGBOOK_CEXT=1 +} diff --git a/dev-python/minikanren/Manifest b/dev-python/minikanren/Manifest index fa37fa3ead9a..4d5a7fb179f4 100644 --- a/dev-python/minikanren/Manifest +++ b/dev-python/minikanren/Manifest @@ -1,3 +1,3 @@ DIST minikanren-1.0.3.gh.tar.gz 73008 BLAKE2B 6fdc605249ac06071a8b51e736d19f561288a293853e8b7ac8685f5b4da400aa8ae480b9a6e5eac3a5735ebe00567e52f24d4bf6afbffb7678e0d41553e1b12f SHA512 b65095b947d3b59496035f54a00fcddaa1888dec1cb8117086bbb16f5b4ed1bf59f2b79e3639f06a4347bd22b7fb4753734f5b8da149a3d470521f360fba5d2e -EBUILD minikanren-1.0.3.ebuild 739 BLAKE2B ab17818b455e910db1ca8c13b9dcd2b91cfc9c5ade899f18f530b2f26b479bd10d08cf8993ec1f8626c2eec639e529fe1bc19e8ee957b82d62e4f6bc6c3cc5b2 SHA512 e419f2e79a08a99cadd59b2f204d5a58fdd67794ae0c27326541c4e44a54e2bedbed81ab6d1c62eb82ab5d18e30f8e6fae34adbaaade3d0fc58f493a718d4318 +EBUILD minikanren-1.0.3.ebuild 739 BLAKE2B 18b834f191bb6558d7689fb946d43594227897a00242ae67bdad3d14999700102a7cd88ae03ed99274a390bcee10e4d5d2874b08349620a870190ca158883f1a SHA512 8f9ec6e03013b506047b3f5918313cf789f32f6701c0a481d48ad21514149de8f50f972975f15b343ca0aafb00410929c58496c4cced4a073bb54be586852292 MISC metadata.xml 397 BLAKE2B 6878783617fd4c8eadae1d2badc347bf9480898a6c96a31e47bde4d8f2e33f7dba9b6691bdc37cc8e88836e5afa0b1ef393c2d488109e7d10efee822afc5d305 SHA512 48ecc2298e82dda52cecd83e0d80e31ef83daa99fcd715a870ca294ad2989bf501466d27d86bf16db047d9abd3db41b2ad863302006634c88f211d2aadb6db4c diff --git a/dev-python/minikanren/minikanren-1.0.3.ebuild b/dev-python/minikanren/minikanren-1.0.3.ebuild index 39dbf4f14330..95e560b04142 100644 --- a/dev-python/minikanren/minikanren-1.0.3.ebuild +++ b/dev-python/minikanren/minikanren-1.0.3.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_COMPAT=( python3_{8..11} ) inherit distutils-r1 DESCRIPTION="Relational programming in Python" diff --git a/dev-python/pytest-cov/Manifest b/dev-python/pytest-cov/Manifest index 415f616e3569..c0cc9027d9ce 100644 --- a/dev-python/pytest-cov/Manifest +++ b/dev-python/pytest-cov/Manifest @@ -1,6 +1,6 @@ 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 DIST pytest-cov-4.0.0.tar.gz 62013 BLAKE2B af8a12955e3f22cd9dc257874f86c04c3c6e29f4af2d2838f37ca196c4955dcf4007c7b404f31c303d0eef6c3735fa1a6268c3bb9f01ed54860750ca2f83b6f5 SHA512 fb993be4d86b29a44e4f2ccd2309d99ab9fe8e6b291abbc2a8a3fc8b36479491165a242a20bfa9886dfd296fcc827da9984b556fdbe9a3ac496ac5b6ba379012 -EBUILD pytest-cov-3.0.0-r1.ebuild 1704 BLAKE2B 873030ba19d725b309861ee7ea02b8e54d680100aab0239c5efb66eee251d15c0a8dd0f2f948121173dc906aed99d2476df0250d3e9fd13e1a2dcc5f56ca1925 SHA512 bea2d3fbe99347972bcc22c566365b0322e97a30f31fe71ec4c78670d8875e9040bb69c85d41840da1f67e4e4e30cdc496e816624b1aa748eaf8f16708a4386d -EBUILD pytest-cov-4.0.0.ebuild 1659 BLAKE2B d542d52ee2d6b1d171f6c30c63096a3ab0e356982b6bfce851ce3d6786a2594fcd06777931829c72244035fea1f4d8ca95d70718bf4c392f53caf259a09126cc SHA512 ed1da34ac0e2d83413e2257419d2c92b4099f90df9adba3e4bf946c9834c6a6488baa2d4e2f5cbca988ab4f8478dfa0ee16fd726d81012bbbb929dd45e30d30f +EBUILD pytest-cov-3.0.0-r2.ebuild 1674 BLAKE2B 208e60b0bb9822052febb2ad0eb529d71990ebf1a747fae9418e624ab9be7dda2907993a45e9041c0e01c0f2268ec626519be9a56b2f797ab3ef444797721925 SHA512 46812502d1bcc60008259389da960a9b079107f927a2ba1812171a5ace49dd4fec498bcb6993c71876b229869117bafc58c2e5be5c4da5f35024760f5c8af7bb +EBUILD pytest-cov-4.0.0-r1.ebuild 1629 BLAKE2B 413446408487309a1f9e24ba65f4040f40f2aeabbd9690b00788f17bc0aac7563b38b82a29b4b3d96387d8ed0cadc93f61e35a9f645be5cab6eb11a3535973e4 SHA512 d4ac75a3cf9d87f2f1dc9e6f453599cce8e4a6cfa03386cb41a68e098cd95779ec48a8e5c4446aa0d5521cbce73286653133518c8e84d4e329a27a97a2b81b45 MISC metadata.xml 412 BLAKE2B 0d79131c6fd8adf72493a7c333959e065cf4f2231f6c770800b6d05ff9afcc246cd202406bea6e28f6b0fd23ee6197aa8dac2dd59d0a89d9b07741f57e8fa5e8 SHA512 d1aab9ea8042bf810398a4195fd3595a8abbeb060ab38fd7b7e40085c8d5f22ecb78bab02e2331d4588199d88e0d3848413d75a18fe4373ecd9940a3c990c604 diff --git a/dev-python/pytest-cov/pytest-cov-3.0.0-r1.ebuild b/dev-python/pytest-cov/pytest-cov-3.0.0-r1.ebuild deleted file mode 100644 index 8a3e060d831e..000000000000 --- a/dev-python/pytest-cov/pytest-cov-3.0.0-r1.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} pypy3 ) -inherit distutils-r1 - -DESCRIPTION="py.test plugin for coverage reporting" -HOMEPAGE="https://github.com/pytest-dev/pytest-cov https://pypi.org/project/pytest-cov/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -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-4.4[${PYTHON_USEDEP}] - dev-python/toml[${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 -} 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 new file mode 100644 index 000000000000..65c69c8579d3 --- /dev/null +++ b/dev-python/pytest-cov/pytest-cov-3.0.0-r2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} pypy3 ) +inherit distutils-r1 + +DESCRIPTION="py.test plugin for coverage reporting" +HOMEPAGE="https://github.com/pytest-dev/pytest-cov https://pypi.org/project/pytest-cov/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +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}] + ) +" + +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 +} diff --git a/dev-python/pytest-cov/pytest-cov-4.0.0-r1.ebuild b/dev-python/pytest-cov/pytest-cov-4.0.0-r1.ebuild new file mode 100644 index 000000000000..cdc52ee9890b --- /dev/null +++ b/dev-python/pytest-cov/pytest-cov-4.0.0-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="pytest plugin for coverage reporting" +HOMEPAGE=" + https://github.com/pytest-dev/pytest-cov/ + https://pypi.org/project/pytest-cov/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +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}] + ) +" + +distutils_enable_sphinx docs \ + dev-python/sphinx-py3doc-enhanced-theme +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 EPYTEST_DESELECT=( + # attempts to install packages via pip (network) + tests/test_pytest_cov.py::test_dist_missing_data + # TODO + tests/test_pytest_cov.py::test_contexts + ) + + # 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 + + rm "${BUILD_DIR}/install$(python_get_sitedir)/coverage" || die +} diff --git a/dev-python/pytest-cov/pytest-cov-4.0.0.ebuild b/dev-python/pytest-cov/pytest-cov-4.0.0.ebuild deleted file mode 100644 index 00e9dce47cda..000000000000 --- a/dev-python/pytest-cov/pytest-cov-4.0.0.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} pypy3 ) - -inherit distutils-r1 - -DESCRIPTION="pytest plugin for coverage reporting" -HOMEPAGE=" - https://github.com/pytest-dev/pytest-cov/ - https://pypi.org/project/pytest-cov/ -" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -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-4.4[${PYTHON_USEDEP}] - dev-python/toml[${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 - -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 - tests/test_pytest_cov.py::test_contexts - ) - - # 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 - - rm "${BUILD_DIR}/install$(python_get_sitedir)/coverage" || die -} -- cgit v1.2.3