commit: c392e1a9bd7eb49470ee02d07f169035e7586b31
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue May 27 02:34:13 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May 27 03:24:16 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c392e1a9
dev-python/pytest-xdist: Bump to 3.7.0
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pytest-xdist/Manifest | 1 +
dev-python/pytest-xdist/pytest-xdist-3.7.0.ebuild | 43 +++++++++++++++++++++++
2 files changed, 44 insertions(+)
diff --git a/dev-python/pytest-xdist/Manifest b/dev-python/pytest-xdist/Manifest
index 12651f40e9a0..88c4c209d679 100644
--- a/dev-python/pytest-xdist/Manifest
+++ b/dev-python/pytest-xdist/Manifest
@@ -1 +1,2 @@
DIST pytest_xdist-3.6.1.tar.gz 84060 BLAKE2B
01392bc1f5a1587f609fc0246235457ab92ca40b3c34c660c117fae1c2b8b98dc0cde345f42951d69c3b58732e0094c7618ed570a6e3ca41165e93e2d8cf9e84
SHA512
583a78d0adc05d81458bbdd5832c239581c0fcd9cad9edfd16fa78009c005c15bffec7ed074d9e18f1542393f62d9ccb2c9e0a96d825e9cff1faec123545a2a3
+DIST pytest_xdist-3.7.0.tar.gz 87550 BLAKE2B
14a95cdc4275495cc5f5a4c3f0ce3d641b0cd043bd713b49e36b2a8c47cd3cc7d725f7c24f1394eb796df604fc0f1aa0f8a24bd243af80dc1bf2bacb685f98b4
SHA512
5c2287a29d2052544a1374c552fd0113841611a5dbd76aae5fc8cf990106734468e73df5c6fffb2134d226fa2e397ea11d505ac57493ac497dcc1f277905586f
diff --git a/dev-python/pytest-xdist/pytest-xdist-3.7.0.ebuild
b/dev-python/pytest-xdist/pytest-xdist-3.7.0.ebuild
new file mode 100644
index 000000000000..ac651994a43d
--- /dev/null
+++ b/dev-python/pytest-xdist/pytest-xdist-3.7.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11..14} python3_{13,14}t pypy3_11 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Distributed testing and loop-on-failing modes"
+HOMEPAGE="
+ https://pypi.org/project/pytest-xdist/
+ https://github.com/pytest-dev/pytest-xdist/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64
~riscv ~s390 ~sparc ~x86 ~x64-macos"
+
+RDEPEND="
+ >=dev-python/execnet-2.1[${PYTHON_USEDEP}]
+ dev-python/psutil[${PYTHON_USEDEP}]
+ >=dev-python/pytest-7.0.0[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+ dev-python/setuptools-scm[${PYTHON_USEDEP}]
+ test? (
+ dev-python/filelock[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+ # disable autoloading plugins in nested pytest calls
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ # since we disabled autoloading, force loading necessary plugins
+ local -x PYTEST_PLUGINS=xdist.plugin,xdist.looponfail
+
+ epytest -o tmp_path_retention_count=1
+}