restore pytest-xdist-2.4.0 from main

This commit is contained in:
Andreas Billmeier 2022-01-20 21:50:34 +01:00 committed by Andreas Billmeier
parent d9ce7a9260
commit fd8f7ae7d0
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
2 changed files with 15 additions and 13 deletions

View File

@ -1,6 +1,6 @@
AUX pytest-xdist-2.2.0-services-conflict.patch 1097 BLAKE2B edc3ecb79578f89e9ce5515e194dc16df34abc2685d9fb78cc5930f29893dbd9e145c95e5b1f58bf252710c57964ea00dc8b71e20fd0aa713e9b9ab2d8d29a93 SHA512 50155aa39d0a87be7a22d0ccf6c9d8eacc8ce4342baa3fd67839b3c5b4d05b31fef5786a60e15051de3000b3ee3494ddb48feba43850d677484e239ee4be8b02
DIST pytest-xdist-2.1.0.tar.gz 66332 BLAKE2B ac3c19a32bb9153537edfcf55bc656011661cf0d166da1aba969055a398616bb5782534a12ba354175be722c070fcfb2013d58405048814a3d11434a314e38b8 SHA512 85c69d8e649a19de5639738eae4cb213dc7323d96883ec82f39ab51a196346edd9fadbaf97f9763ac0dea104bc123d521264a39d2701878edfa76ce7e5bb347b
DIST pytest-xdist-2.2.1.tar.gz 64956 BLAKE2B 7ea18b0e7893000ed9d8718506a7b0f7cf45444196a23e3defec34639c2159b52c7a533ddbc0e0a9b3c3f1e0a867ad5c85e3549167e9b7049ce718646ed50717 SHA512 0732f5ffb56eead3d1aeecd37381c2d9c6ed22398e8e51e9358b562765d737ebde48ecb6fe9f90d9a46902dba1422721cb2c7bfc9fc13918aa2c3b8e6a5e48c4
EBUILD pytest-xdist-2.1.0.ebuild 1149 BLAKE2B f2172e6f27a8ea3f8c1ae66fe1f4dcfe11f030fb935069d7eee2cd41763c2a09a11e0a697e553512c0baf3c249ff758e99a365d512802c2d0d6888e859e86f76 SHA512 55ea15ef9ffe22d153f266707e191c685b4d4d3d229d26cba945f6b3667dd2cea9ef194f4daa4594c02a03951ba60da8c4be31c677fbd9d236263f2570a56eaf
DIST pytest-xdist-2.4.0.tar.gz 67199 BLAKE2B bba867bfbd1e161ada2157fdb5a10f929fefed959b64afef74453206d91e5014abaaa1363ac9adbc89ed476a841607f6830781817842b9be119a09bda7278b91 SHA512 2d2da6aaa8da07a28d7c6c81a0044493b7d0d1a68921e7ec94cfd2f698eaa5594b6da4d82524804637d5cc061fbe19034f3c65a07ee5a0c906170856edc3d383
EBUILD pytest-xdist-2.2.1.ebuild 926 BLAKE2B ee5e3cefd7a0f03bf60ee39f8443f3ab4ed15d4833dc3403e36123dba4c2f73edf456a9ca9ca53dd3f38a00a33ebc745f251812edfc67c4573e9c6bf3e45e0ab SHA512 7c2733a879e8646e3ccd21df8b9579c8455c7165fac002bea586ebd107510b1fc5795b22ed81b05e03499c942e29cc0b63503e2b2b70b790ff50d6bd91fbf6e4
EBUILD pytest-xdist-2.4.0.ebuild 1158 BLAKE2B fd617b12aa19dec1f7f85bce83025ab6c0ca8d913e8a8cfd1a3247c7cedd4cbb4a0d9aa97d6f8e497379578d0e2e7dc322b96d5db2c4373844a195fdfee4be3b SHA512 e37fb1565e462690e5cecb8c70fe4013fc8033d071dd1c83ec9f11215b2ea0508911c3e284907126c80496d4a1985077cf710c827bee1b1e640fd004038e85e0
MISC metadata.xml 495 BLAKE2B e9b6fb711fef224e63b2b4c1137e46b1b0706d9c47f1bfbd2b3d9da78a5fa4d61fa9a78a94cf75a7e3e7b1d96ad15e6e38f00d3041e7ddda53a468139338b554 SHA512 e126cc5ef4e81af7c2cba1486988b0d119789763cc7d7b952fc6d6292153e7f1cbefd82fb472e7813eb0d4a65cfe15a9db662d59e661787d4ab8463d93277396

View File

@ -1,9 +1,9 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 )
PYTHON_COMPAT=( python3_{8..10} pypy3 )
inherit distutils-r1
@ -13,12 +13,13 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
SLOT="0"
LICENSE="MIT"
KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
# please do not depend on pytest to avoid unnecessary USEDEP enforcement
# pytest-xdist >= 2 fails with pytest < 6
RDEPEND="
dev-python/execnet[${PYTHON_USEDEP}]
dev-python/psutil[${PYTHON_USEDEP}]
>=dev-python/pytest-6[${PYTHON_USEDEP}]
dev-python/pytest-forked[${PYTHON_USEDEP}]
"
@ -29,13 +30,14 @@ BDEPEND="
)
"
distutils_enable_tests pytest
distutils_enable_tests --install pytest
python_test() {
distutils_install_for_testing --via-root
# Skip a broken test
# https://github.com/pytest-dev/pytest-xdist/issues/601
pytest -vv testing --deselect \
testing/acceptance_test.py::TestWarnings::test_warning_captured_deprecated_in_pytest_6 \
|| die "Tests failed under ${EPYTHON}"
# disable autoloading plugins in nested pytest calls
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
# since we disabled autoloading, force loading necessary plugins
local -x PYTEST_PLUGINS=xdist.plugin,xdist.looponfail,pytest_forked
distutils_install_for_testing
epytest
}