summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-11-06 09:39:40 +0100
committerJustin Lecher <jlec@gentoo.org>2015-11-06 11:44:40 +0100
commitff4a3a028da4092ec9d222342bada289476e25af (patch)
tree3b837c717297a9619e16702d2809c44fbb49b402 /dev-python/flaky/flaky-2.4.1.ebuild
parentapp-i18n/ibus-cangjie: x86 stable wrt bug #562646 (diff)
downloadgentoo-ff4a3a028da4092ec9d222342bada289476e25af.tar.gz
gentoo-ff4a3a028da4092ec9d222342bada289476e25af.tar.bz2
gentoo-ff4a3a028da4092ec9d222342bada289476e25af.zip
dev-python/flaky: Version Bump
Package-Manager: portage-2.2.23 Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'dev-python/flaky/flaky-2.4.1.ebuild')
-rw-r--r--dev-python/flaky/flaky-2.4.1.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-python/flaky/flaky-2.4.1.ebuild b/dev-python/flaky/flaky-2.4.1.ebuild
new file mode 100644
index 000000000000..d6d75b85c4b3
--- /dev/null
+++ b/dev-python/flaky/flaky-2.4.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
+
+inherit distutils-r1
+
+DESCRIPTION="Plugin for nose or py.test that automatically reruns flaky tests"
+HOMEPAGE="https://pypi.python.org/pypi/flaky https://github.com/box/flaky"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="Apache-2.0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/genty[${PYTHON_USEDEP}]
+ dev-python/nose[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )
+"
+
+python_prepare_all() {
+ cat >> test/__init__.py <<- EOF
+ # coding: utf-8
+
+ from __future__ import unicode_literals
+ EOF
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ nosetests --with-flaky --exclude="pytest|test_nose_options_example" test/ || die
+ py.test -k 'example and not nose and not options' --doctest-modules test/ || die
+ py.test -p no:flaky test/test_flaky_pytest_plugin.py || die
+ nosetests --with-flaky --force-flaky --max-runs 2 test/test_nose_options_example.py || die
+ py.test --force-flaky --max-runs 2 test/test_pytest_options_example.py || die
+}