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: Tue, 21 Sep 2021 19:47:13
Message-Id: 1632253627.2e11b0810b30f5e8044e14bd5d1aaf34dd50490d.mgorny@gentoo
1 commit: 2e11b0810b30f5e8044e14bd5d1aaf34dd50490d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 21 19:13:27 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 21 19:47:07 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e11b081
7
8 dev-python/pytest-xdist: Bump to 2.4.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pytest-xdist/Manifest | 1 +
13 dev-python/pytest-xdist/pytest-xdist-2.4.0.ebuild | 43 +++++++++++++++++++++++
14 2 files changed, 44 insertions(+)
15
16 diff --git a/dev-python/pytest-xdist/Manifest b/dev-python/pytest-xdist/Manifest
17 index d7237d4514f..908acf5fdae 100644
18 --- a/dev-python/pytest-xdist/Manifest
19 +++ b/dev-python/pytest-xdist/Manifest
20 @@ -1 +1,2 @@
21 DIST pytest-xdist-2.3.0.tar.gz 66072 BLAKE2B 367ff15cd46b8594668ccd9710a2fc7665295d41e268b464b81d5e740a580d70621a1ab5ab590788e44887b7aa3049a83853ea097c0cff54e22c3422c8f11b24 SHA512 bf49a1684b29f0ae21621b9d293f530cf2fa3d88b33f631fb803aef872c0d5ef6b3bbf2e16d01be8a6c1872fe3e6cff86ab842e3000b9e642fb46c2a170627f6
22 +DIST pytest-xdist-2.4.0.tar.gz 67199 BLAKE2B bba867bfbd1e161ada2157fdb5a10f929fefed959b64afef74453206d91e5014abaaa1363ac9adbc89ed476a841607f6830781817842b9be119a09bda7278b91 SHA512 2d2da6aaa8da07a28d7c6c81a0044493b7d0d1a68921e7ec94cfd2f698eaa5594b6da4d82524804637d5cc061fbe19034f3c65a07ee5a0c906170856edc3d383
23
24 diff --git a/dev-python/pytest-xdist/pytest-xdist-2.4.0.ebuild b/dev-python/pytest-xdist/pytest-xdist-2.4.0.ebuild
25 new file mode 100644
26 index 00000000000..5415cb9cc80
27 --- /dev/null
28 +++ b/dev-python/pytest-xdist/pytest-xdist-2.4.0.ebuild
29 @@ -0,0 +1,43 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
36 +
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="Distributed testing and loop-on-failing modes"
40 +HOMEPAGE="https://pypi.org/project/pytest-xdist/ https://github.com/pytest-dev/pytest-xdist"
41 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
42 +
43 +SLOT="0"
44 +LICENSE="MIT"
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
46 +
47 +# pytest-xdist >= 2 fails with pytest < 6
48 +RDEPEND="
49 + dev-python/execnet[${PYTHON_USEDEP}]
50 + dev-python/psutil[${PYTHON_USEDEP}]
51 + >=dev-python/pytest-6[${PYTHON_USEDEP}]
52 + dev-python/pytest-forked[${PYTHON_USEDEP}]
53 +"
54 +
55 +BDEPEND="
56 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
57 + test? (
58 + dev-python/filelock[${PYTHON_USEDEP}]
59 + )
60 +"
61 +
62 +distutils_enable_tests --install pytest
63 +
64 +python_test() {
65 + # disable autoloading pytest-asyncio in nested pytest calls
66 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
67 + # since we disabled autoloading, force loading pytest-trio
68 + local -x PYTEST_PLUGINS=xdist.plugin,xdist.looponfail,pytest_forked
69 +
70 + distutils_install_for_testing
71 + epytest
72 +}