From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D4646158089 for ; Sat, 4 Nov 2023 06:09:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EF4EB2BC025; Sat, 4 Nov 2023 06:09:13 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B1A0D2BC01C for ; Sat, 4 Nov 2023 06:09:13 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 0/6] python-utils-r1/distutils-r1: EPYTEST_XDIST support Date: Sat, 4 Nov 2023 07:05:09 +0100 Message-ID: <20231104060904.26947-1-mgorny@gentoo.org> X-Mailer: git-send-email 2.42.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: b455585d-181a-470b-9fc3-0a00a6b8171f X-Archives-Hash: b250ccce0c306c1ec9ca22e0e5f77166 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