1 |
commit: d123a632f491921a0e861d93365ff6b8d13c5eb9 |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 2 03:20:42 2017 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 2 04:06:26 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d123a632 |
7 |
|
8 |
dev-python/flaky: version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
dev-python/flaky/Manifest | 1 + |
13 |
dev-python/flaky/flaky-3.4.0.ebuild | 45 +++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 46 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/flaky/Manifest b/dev-python/flaky/Manifest |
17 |
index 78408de0f27..017b192e50c 100644 |
18 |
--- a/dev-python/flaky/Manifest |
19 |
+++ b/dev-python/flaky/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST flaky-3.1.1.tar.gz 29136 SHA256 d50eb4034d5fc1bbe043f2c9a364024f436ebdcadc03e89f091a332407b7cf7e SHA512 039ad115a52b8b3a31bba045874e1860f1e04ea9cf878316226fb22af3c715b3893570c2f7380cf8467107f1a83a4ff69d0e9135daeb2dbea4b8f873a192815c WHIRLPOOL 6fb841fe6aaf575a776ac1ebba262e1272fa194c517cdc1e8db125bdc339d67e23dbd7f8f3f3469741e50863bf564c93eb921e4e621e8f54ec815cdde9148712 |
22 |
+DIST flaky-3.4.0.tar.gz 29197 SHA256 4ad7880aef8c35a34ddb394d4fa33047765bca1e3d67d182bf6eba9c8eabf3a2 SHA512 14fda6312e4eb8260a8190204622a7dd274d0c946dda07ec8aa65e8c341f7f4a701c704c807f50eacf77589231b37c3bb06eec18d60a718f24e9b0182f7e8cb5 WHIRLPOOL b7e5501301bfa47398ab134625d482d3f3f0e38401df932fc234181204f7144fe34d0ef580a94ff6387e44dcef9d43cc82fc3887b059cd8f08fdc5523207b7e3 |
23 |
|
24 |
diff --git a/dev-python/flaky/flaky-3.4.0.ebuild b/dev-python/flaky/flaky-3.4.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..5de8876cee9 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/flaky/flaky-3.4.0.ebuild |
29 |
@@ -0,0 +1,45 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
36 |
+ |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+DESCRIPTION="Plugin for nose or py.test that automatically reruns flaky tests" |
40 |
+HOMEPAGE="https://pypi.python.org/pypi/flaky https://github.com/box/flaky" |
41 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
42 |
+ |
43 |
+SLOT="0" |
44 |
+LICENSE="Apache-2.0" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
46 |
+IUSE="test" |
47 |
+ |
48 |
+RDEPEND="" |
49 |
+DEPEND="${RDEPEND} |
50 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
51 |
+ test? ( |
52 |
+ dev-python/genty[${PYTHON_USEDEP}] |
53 |
+ dev-python/mock[${PYTHON_USEDEP}] |
54 |
+ dev-python/nose[${PYTHON_USEDEP}] |
55 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
56 |
+ ) |
57 |
+" |
58 |
+python_prepare_all() { |
59 |
+ cat >> test/__init__.py <<- EOF |
60 |
+ # coding: utf-8 |
61 |
+ |
62 |
+ from __future__ import unicode_literals |
63 |
+ EOF |
64 |
+ |
65 |
+ distutils-r1_python_prepare_all |
66 |
+} |
67 |
+ |
68 |
+python_test() { |
69 |
+ nosetests --with-flaky --exclude="test_nose_options_example" test/test_nose/ || die |
70 |
+ py.test -k 'example and not options' --doctest-modules test/test_pytest/ || die |
71 |
+ py.test -p no:flaky test/test_pytest/test_flaky_pytest_plugin.py || die |
72 |
+ nosetests --with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py || die |
73 |
+ py.test --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py || die |
74 |
+} |