public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH 0/6] python-utils-r1/distutils-r1: EPYTEST_XDIST support
@ 2023-11-04  6:05 Michał Górny
  2023-11-04  6:05 ` [gentoo-dev] [PATCH 1/6] distutils-r1.eclass: Refactor `d_e_t unittest` (NFC) Michał Górny
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Michał Górny @ 2023-11-04  6:05 UTC (permalink / raw)
  To: gentoo-dev; +Cc: 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 EPYTEST_JOBS variable to allow overriding the job
count independently of MAKEOPTS.

The patches also include some prior refactoring and two example ebuild
conversions.

PR: https://github.com/gentoo/gentoo/pull/33667

-- 
Best regards,
Michał Górny

Michał Górny (6):
  distutils-r1.eclass: Refactor `d_e_t unittest` (NFC)
  distutils-r1.eclass: Refactor d_e_t to permit multiple test packages
  python-utils-r1.eclass: Add EPYTEST_XDIST for epytest
  distutils-r1.eclass: Add pytest-xdist dep if EPYTEST_XDIST is set
  dev-python/pyrate-limiter: Use EPYTEST_XDIST
  dev-python/numpy: Switch to EPYTEST_XDIST

 dev-python/numpy/numpy-1.26.1.ebuild          |  4 +--
 .../pyrate-limiter-3.1.0.ebuild               |  6 +---
 eclass/distutils-r1.eclass                    | 32 ++++++++++---------
 eclass/python-utils-r1.eclass                 | 31 ++++++++++++++++++
 4 files changed, 51 insertions(+), 22 deletions(-)

-- 
2.42.0



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-11-04  6:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-04  6:05 [gentoo-dev] [PATCH 0/6] python-utils-r1/distutils-r1: EPYTEST_XDIST support Michał Górny
2023-11-04  6:05 ` [gentoo-dev] [PATCH 1/6] distutils-r1.eclass: Refactor `d_e_t unittest` (NFC) Michał Górny
2023-11-04  6:05 ` [gentoo-dev] [PATCH 2/6] distutils-r1.eclass: Refactor d_e_t to permit multiple test packages Michał Górny
2023-11-04  6:05 ` [gentoo-dev] [PATCH 3/6] python-utils-r1.eclass: Add EPYTEST_XDIST for epytest Michał Górny
2023-11-04  6:05 ` [gentoo-dev] [PATCH 4/6] distutils-r1.eclass: Add pytest-xdist dep if EPYTEST_XDIST is set Michał Górny
2023-11-04  6:05 ` [gentoo-dev] [PATCH 5/6] dev-python/pyrate-limiter: Use EPYTEST_XDIST Michał Górny
2023-11-04  6:05 ` [gentoo-dev] [PATCH 6/6] dev-python/numpy: Switch to EPYTEST_XDIST Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox