Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/flaky/
Date: Wed, 04 Nov 2015 14:15:25
Message-Id: 1446646515.9284e41dd85adc73c472aac4c4e8e8974def33ed.jlec@gentoo
1 commit: 9284e41dd85adc73c472aac4c4e8e8974def33ed
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 4 13:19:12 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 4 14:15:15 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9284e41d
7
8 dev-python/flaky: New package, ebuild written by me
9
10 Package-Manager: portage-2.2.23
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 dev-python/flaky/Manifest | 1 +
14 dev-python/flaky/flaky-2.4.0.ebuild | 39 +++++++++++++++++++++++++++++++++++++
15 dev-python/flaky/metadata.xml | 8 ++++++++
16 3 files changed, 48 insertions(+)
17
18 diff --git a/dev-python/flaky/Manifest b/dev-python/flaky/Manifest
19 new file mode 100644
20 index 0000000..1dbc211
21 --- /dev/null
22 +++ b/dev-python/flaky/Manifest
23 @@ -0,0 +1 @@
24 +DIST flaky-2.4.0.tar.gz 27157 SHA256 6446e186674db9d67be5e85857b6e98a68a6491d5d307447d9a1a6721aca9fad SHA512 e3f51dab94a2e2140714f15ae088113c2e5cb65f58d38d5ae20b91c567c207568403c1267edeaf9f0f8c6bec7b03ebb0c02178cca30f3dd3a16aa4d099ca8153 WHIRLPOOL 20571c64d46ebbb87173a0e6bc859473528270c179c7cde045fded2a98708034f95864a92c137596b936f78e21984ca17ec0670063c470f14d1ce6ce1213c70f
25
26 diff --git a/dev-python/flaky/flaky-2.4.0.ebuild b/dev-python/flaky/flaky-2.4.0.ebuild
27 new file mode 100644
28 index 0000000..c802137
29 --- /dev/null
30 +++ b/dev-python/flaky/flaky-2.4.0.ebuild
31 @@ -0,0 +1,39 @@
32 +# Copyright 1999-2015 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +
38 +PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="Plugin for nose or py.test that automatically reruns flaky tests"
43 +HOMEPAGE="https://pypi.python.org/pypi/flaky https://github.com/box/flaky"
44 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
45 +
46 +SLOT="0"
47 +LICENSE="Apache-2.0"
48 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
49 +IUSE="test"
50 +
51 +RDEPEND=""
52 +DEPEND="${RDEPEND}
53 + dev-python/setuptools[${PYTHON_USEDEP}]
54 + test? (
55 + dev-python/genty[${PYTHON_USEDEP}]
56 + dev-python/nose[${PYTHON_USEDEP}]
57 + dev-python/pytest[${PYTHON_USEDEP}]
58 + )
59 +"
60 +
61 +# https://github.com/box/flaky/issues/72
62 +RESTRICT=test
63 +
64 +python_test() {
65 + nosetests --with-flaky --exclude="pytest|test_nose_options_example" test/ || die
66 + py.test -k 'example and not nose and not options' --doctest-modules test/·||·die
67 + py.test -p no:flaky test/test_flaky_pytest_plugin.py·||·die
68 + nosetests --with-flaky --force-flaky --max-runs 2 test/test_nose_options_example.py ·||·die
69 + py.test --force-flaky --max-runs 2 test/test_pytest_options_example.py ||·die
70 +}
71
72 diff --git a/dev-python/flaky/metadata.xml b/dev-python/flaky/metadata.xml
73 new file mode 100644
74 index 0000000..c166166
75 --- /dev/null
76 +++ b/dev-python/flaky/metadata.xml
77 @@ -0,0 +1,8 @@
78 +<?xml version="1.0" encoding="UTF-8"?>
79 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
80 +<pkgmetadata>
81 + <maintainer>
82 + <email>jlec@g.o</email>
83 + <name>Justin Lecher</name>
84 + </maintainer>
85 +</pkgmetadata>