diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-11-03 20:20:11 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-11-07 06:29:08 +0100 |
commit | be0e95a40cde62f20949da34802d96df38b08328 (patch) | |
tree | 3482e0eebb1a11ab8b571fb2b4aec5a792f511b4 /dev-python/pyrate-limiter | |
parent | distutils-r1.eclass: Add pytest-xdist dep if EPYTEST_XDIST is set (diff) | |
download | gentoo-be0e95a40cde62f20949da34802d96df38b08328.tar.gz gentoo-be0e95a40cde62f20949da34802d96df38b08328.tar.bz2 gentoo-be0e95a40cde62f20949da34802d96df38b08328.zip |
dev-python/pyrate-limiter: Use EPYTEST_XDIST
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pyrate-limiter')
-rw-r--r-- | dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild | 8 |
1 files 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 -} |