[gentoo-dev] [PATCH 0/6] python-utils-r1/distutils-r1: EPYTEST_XDIST support

2023-11-03 Thread Michał Górny
Hi, Here's a patchset that introduces EPYTEST_XDIST=1 variable to automatically use dev-python/pytest-xdist to run test suites in parallel via epytest. It also takes care of adding the dep if set prior to distutils_enable_tests (as expected, pkgcheck will also check for that). I'm also adding an

[gentoo-dev] [PATCH 1/6] distutils-r1.eclass: Refactor `d_e_t unittest` (NFC)

2023-11-03 Thread Michał Górny
Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 1cc91110dccf..9dd091921391 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-

[gentoo-dev] [PATCH 2/6] distutils-r1.eclass: Refactor d_e_t to permit multiple test packages

2023-11-03 Thread Michał Górny
Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 9dd091921391..3d69911d9209 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.ec

[gentoo-dev] [PATCH 3/6] python-utils-r1.eclass: Add EPYTEST_XDIST for epytest

2023-11-03 Thread Michał Górny
Add an `EPYTEST_XDIST` variable that can be used to enable running the test suite in parallel via the dev-python/pytest-xdist plugin. This also includes user-facing `EPYTEST_JOBS` to control the job count independently of `MAKEOPTS`. Signed-off-by: Michał Górny --- eclass/python-utils-r1.eclass

[gentoo-dev] [PATCH 4/6] distutils-r1.eclass: Add pytest-xdist dep if EPYTEST_XDIST is set

2023-11-03 Thread Michał Górny
Make `distutils_enable_tests pytest` automatically add the `dev-python/pytest-xdist` dependency if `EPYTEST_XDIST` is set. Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass| 3 +++ eclass/python-utils-r1.eclass | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/

[gentoo-dev] [PATCH 5/6] dev-python/pyrate-limiter: Use EPYTEST_XDIST

2023-11-03 Thread Michał Górny
Signed-off-by: Michał Górny --- dev-python/pyrate-limiter/pyrate-limiter-3.1.0.ebuild | 6 +- 1 file changed, 1 insertion(+), 5 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..a00cb91

[gentoo-dev] [PATCH 6/6] dev-python/numpy: Switch to EPYTEST_XDIST

2023-11-03 Thread Michał Górny
Signed-off-by: Michał Górny --- dev-python/numpy/numpy-1.26.1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-python/numpy/numpy-1.26.1.ebuild b/dev-python/numpy/numpy-1.26.1.ebuild index 3255d05e2c00..92564017966e 100644 --- a/dev-python/numpy/numpy-1.26.1.ebu