commit: a117dfbf742f4426d6602903d26430394e2656ba
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat May 20 05:39:33 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat May 20 06:21:45 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a117dfbf
dev-python/pytest-xdist: Bump to 3.3.1
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pytest-xdist/Manifest | 1 +
dev-python/pytest-xdist/pytest-xdist-3.3.1.ebuild | 45 +++++++++++++++++++++++
2 files changed, 46 insertions(+)
diff --git a/dev-python/pytest-xdist/Manifest b/dev-python/pytest-xdist/Manifest
index e26145b95ead..4349113787fc 100644
--- a/dev-python/pytest-xdist/Manifest
+++ b/dev-python/pytest-xdist/Manifest
@@ -1,2 +1,3 @@
DIST pytest-xdist-3.2.1.tar.gz 76362 BLAKE2B
a5cea5bab1176554bd0d1ebfff5400f60bd43964ae13c7f77ad77fc257db32ba0a0d6f2f3ec16211e48852a6bfd02a0949d618c7f2f6a8da11dd2843d88565a4
SHA512
ea42bea8b4df3d77ef680cba81f76f9f79d0ffcaad6f5f879cc82c53203d36ffe26f233dd6c5d1cbea22b43d257f0f4e6be793116bb281956316c44fc412f9b7
DIST pytest-xdist-3.3.0.tar.gz 77580 BLAKE2B
5d983fd9c825b76d666a4de36087441a42e32ef11171d2fb4f8dde1f062fda2e664eb766af62012c977b5804f059eb9415fe70030d8a6ffc627833d8e69f1a02
SHA512
15cdfb3db409147fc5107d58bc8e2177a9351d2fde2486523ba17f77754083b75decafe442d5849d1be159a2eb9c20f6c3ec11a8c4cf16ac22d4e98a1f9de452
+DIST pytest-xdist-3.3.1.tar.gz 77751 BLAKE2B
483774b3fefefb513cc3021c49fd816089869a885ba098588e503530ff3b2dfb77612aff80a7147ff33fd8c1fe69c4fda40133de94007e41c699ad763d112e92
SHA512
f439ff1acf65a8df025fec847602ebdc5355b2099501845f8cde3c5287299a9c3102fa6dd6fc82a30bc016893556a24b0b5409323f5db4015e77c711a7b5c59f
diff --git a/dev-python/pytest-xdist/pytest-xdist-3.3.1.ebuild
b/dev-python/pytest-xdist/pytest-xdist-3.3.1.ebuild
new file mode 100644
index 000000000000..cee4b9457782
--- /dev/null
+++ b/dev-python/pytest-xdist/pytest-xdist-3.3.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYPI_NO_NORMALIZE=1
+PYTHON_COMPAT=( python3_{10..11} pypy3 )
+
+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/
+"
+
+SLOT="0"
+LICENSE="MIT"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64
~riscv ~s390 ~sparc ~x86 ~x64-macos"
+
+RDEPEND="
+ dev-python/execnet[${PYTHON_USEDEP}]
+ dev-python/psutil[${PYTHON_USEDEP}]
+ >=dev-python/pytest-6.2.0[${PYTHON_USEDEP}]
+ dev-python/pytest-forked[${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,pytest_forked
+
+ epytest
+}