Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-xdist/
Date: Mon, 09 May 2022 20:12:42
Message-Id: 1652127118.8faabf8ab57ce47b23b84c9621d926d75428d0be.mgorny@gentoo
1 commit: 8faabf8ab57ce47b23b84c9621d926d75428d0be
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 9 19:27:47 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon May 9 20:11:58 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8faabf8a
7
8 dev-python/pytest-xdist: EAPI 8, PEP517
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../pytest-xdist/pytest-xdist-2.5.0-r1.ebuild | 45 ++++++++++++++++++++++
13 1 file changed, 45 insertions(+)
14
15 diff --git a/dev-python/pytest-xdist/pytest-xdist-2.5.0-r1.ebuild b/dev-python/pytest-xdist/pytest-xdist-2.5.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..68f728f1bae7
18 --- /dev/null
19 +++ b/dev-python/pytest-xdist/pytest-xdist-2.5.0-r1.ebuild
20 @@ -0,0 +1,45 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=setuptools
27 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Distributed testing and loop-on-failing modes"
32 +HOMEPAGE="
33 + https://pypi.org/project/pytest-xdist/
34 + https://github.com/pytest-dev/pytest-xdist/
35 +"
36 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
37 +
38 +SLOT="0"
39 +LICENSE="MIT"
40 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
41 +
42 +RDEPEND="
43 + dev-python/execnet[${PYTHON_USEDEP}]
44 + dev-python/psutil[${PYTHON_USEDEP}]
45 + >=dev-python/pytest-6.2.0[${PYTHON_USEDEP}]
46 + dev-python/pytest-forked[${PYTHON_USEDEP}]
47 +"
48 +
49 +BDEPEND="
50 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
51 + test? (
52 + dev-python/filelock[${PYTHON_USEDEP}]
53 + )
54 +"
55 +
56 +distutils_enable_tests pytest
57 +
58 +python_test() {
59 + # disable autoloading plugins in nested pytest calls
60 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
61 + # since we disabled autoloading, force loading necessary plugins
62 + local -x PYTEST_PLUGINS=xdist.plugin,xdist.looponfail,pytest_forked
63 +
64 + epytest
65 +}