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-rerunfailures/
Date: Thu, 12 May 2022 10:40:51
Message-Id: 1652352042.4821784c526a1dab7a383bc983e97b5afe521e14.mgorny@gentoo
1 commit: 4821784c526a1dab7a383bc983e97b5afe521e14
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 12 10:20:04 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu May 12 10:40:42 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4821784c
7
8 dev-python/pytest-rerunfailures: Use PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../pytest-rerunfailures-10.2-r1.ebuild | 35 ++++++++++++++++++++++
13 1 file changed, 35 insertions(+)
14
15 diff --git a/dev-python/pytest-rerunfailures/pytest-rerunfailures-10.2-r1.ebuild b/dev-python/pytest-rerunfailures/pytest-rerunfailures-10.2-r1.ebuild
16 new file mode 100644
17 index 000000000000..1fc685a9c8cc
18 --- /dev/null
19 +++ b/dev-python/pytest-rerunfailures/pytest-rerunfailures-10.2-r1.ebuild
20 @@ -0,0 +1,35 @@
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="pytest plugin to re-run tests to eliminate flaky failures"
32 +HOMEPAGE="
33 + https://github.com/pytest-dev/pytest-rerunfailures/
34 + https://pypi.org/project/pytest-rerunfailures/
35 +"
36 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
37 +
38 +SLOT="0"
39 +LICENSE="MPL-2.0"
40 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
41 +
42 +RDEPEND="
43 + dev-python/setuptools[${PYTHON_USEDEP}]
44 +"
45 +
46 +distutils_enable_tests pytest
47 +
48 +python_test() {
49 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
50 + local -x PYTEST_PLUGINS=pytest_rerunfailures
51 + if has_version "dev-python/pytest-xdist[${PYTHON_USEDEP}]"; then
52 + PYTEST_PLUGINS+=,xdist.plugin
53 + fi
54 + epytest
55 +}