dev-python/flaky: Version Bump
authorJustin Lecher <jlec@gentoo.org>
Fri, 6 Nov 2015 08:39:40 +0000 (09:39 +0100)
committerJustin Lecher <jlec@gentoo.org>
Fri, 6 Nov 2015 10:44:40 +0000 (11:44 +0100)
Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec@gentoo.org>
dev-python/flaky/Manifest
dev-python/flaky/flaky-2.4.0.ebuild
dev-python/flaky/flaky-2.4.1.ebuild [new file with mode: 0644]

index 1dbc2117d5cb69378eea7a18f4d843398114cd20..4b1686b37a5fdcf7a59b76978b5cbfb11610422d 100644 (file)
@@ -1 +1,2 @@
 DIST flaky-2.4.0.tar.gz 27157 SHA256 6446e186674db9d67be5e85857b6e98a68a6491d5d307447d9a1a6721aca9fad SHA512 e3f51dab94a2e2140714f15ae088113c2e5cb65f58d38d5ae20b91c567c207568403c1267edeaf9f0f8c6bec7b03ebb0c02178cca30f3dd3a16aa4d099ca8153 WHIRLPOOL 20571c64d46ebbb87173a0e6bc859473528270c179c7cde045fded2a98708034f95864a92c137596b936f78e21984ca17ec0670063c470f14d1ce6ce1213c70f
+DIST flaky-2.4.1.tar.gz 27430 SHA256 e8e94450c7c5d56bd30e0634fc6c725936e7585322d60469195dfa416c0ab2ea SHA512 2c4736ee370a9462bed29239a525a8a0296ebbb0abc6f194ac36db1fa6fab78d41c3927f1cd3d5c50649f374406e3203c16f0d2f4e3fac6a458392db110ed0f9 WHIRLPOOL a5665b1ae1e8f82ac96ca07675e719f3c5f29a0347c5c5dc1b1badcfc2454b3fa97e9606299f2b23ef30f61a6342d399eedbafb02931b6f9746af6dcc73f53e2
index 164e33ed02495650e33178de0b0e98c43dbeee19..47038c66324ed21bf93b218f8f2fc90e02f95385 100644 (file)
@@ -32,8 +32,8 @@ RESTRICT=test
 
 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
+       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
 }
diff --git a/dev-python/flaky/flaky-2.4.1.ebuild b/dev-python/flaky/flaky-2.4.1.ebuild
new file mode 100644 (file)
index 0000000..d6d75b8
--- /dev/null
@@ -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
+}