commit: be0e95a40cde62f20949da34802d96df38b08328 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri Nov 3 19:20:11 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Tue Nov 7 05:29:08 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be0e95a4
dev-python/pyrate-limiter: Use EPYTEST_XDIST Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild b/dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild index 47947453dc89..2bfd9a737bdd 100644 --- a/dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild +++ b/dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild @@ -6,7 +6,7 @@ EAPI=8 DISTUTILS_USE_PEP517=poetry PYTHON_COMPAT=( python3_{10..11} ) -inherit distutils-r1 multiprocessing pypi +inherit distutils-r1 pypi DESCRIPTION="Python Rate-Limiter using Leaky-Bucket Algorimth Family" HOMEPAGE=" @@ -26,7 +26,6 @@ RDEPEND=" BDEPEND=" test? ( dev-python/pytest-asyncio[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] dev-python/pyyaml[${PYTHON_USEDEP}] ) " @@ -37,6 +36,7 @@ EPYTEST_DESELECT=( # Python 3.11 is slightly faster, leading to a non-critical failure here "tests/test_concurrency.py::test_concurrency[ProcessPoolExecutor-SQLiteBucket]" ) +EPYTEST_XDIST=1 # TODO: package sphinx-copybutton # distutils_enable_sphinx docs \ @@ -67,7 +67,3 @@ src_test() { # Clean up afterwards kill "$(<"${redis_pid}")" || die } - -python_test() { - epytest -n "$(makeopts_jobs)" --dist=worksteal -}