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/flaky/
Date: Tue, 10 May 2022 10:07:07
Message-Id: 1652177211.a65eb35d0dd2d685f53df7e16c8470e03e536960.mgorny@gentoo
1 commit: a65eb35d0dd2d685f53df7e16c8470e03e536960
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 10 09:25:33 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 10 10:06:51 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a65eb35d
7
8 dev-python/flaky: EAPI 8, PEP517
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/flaky/flaky-3.7.0-r2.ebuild | 36 ++++++++++++++++++++++++++++++++++
13 1 file changed, 36 insertions(+)
14
15 diff --git a/dev-python/flaky/flaky-3.7.0-r2.ebuild b/dev-python/flaky/flaky-3.7.0-r2.ebuild
16 new file mode 100644
17 index 000000000000..0fc2e88f1e60
18 --- /dev/null
19 +++ b/dev-python/flaky/flaky-3.7.0-r2.ebuild
20 @@ -0,0 +1,36 @@
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="Plugin for nose or py.test that automatically reruns flaky tests"
32 +HOMEPAGE="https://pypi.org/project/flaky/ https://github.com/box/flaky"
33 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
34 +
35 +SLOT="0"
36 +LICENSE="Apache-2.0"
37 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
38 +IUSE="test"
39 +RESTRICT="!test? ( test )"
40 +
41 +DEPEND="
42 + test? (
43 + dev-python/genty[${PYTHON_USEDEP}]
44 + dev-python/mock[${PYTHON_USEDEP}]
45 + dev-python/nose[${PYTHON_USEDEP}]
46 + dev-python/pytest[${PYTHON_USEDEP}]
47 + )
48 +"
49 +
50 +python_test() {
51 + nosetests --with-flaky --exclude="test_nose_options_example" test/test_nose/ || die
52 + epytest -k 'example and not options' --doctest-modules test/test_pytest/ || die
53 + epytest -p no:flaky test/test_pytest/test_flaky_pytest_plugin.py || die
54 + nosetests --with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py || die
55 + epytest --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py || die
56 +}