From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E3E4F1384B4 for ; Wed, 4 Nov 2015 14:15:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BBC26E0912; Wed, 4 Nov 2015 14:15:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0A3FEE0912 for ; Wed, 4 Nov 2015 14:15:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 02AD43406BF for ; Wed, 4 Nov 2015 14:15:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AD9062004 for ; Wed, 4 Nov 2015 14:15:19 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1446646515.9284e41dd85adc73c472aac4c4e8e8974def33ed.jlec@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/flaky/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/flaky/Manifest dev-python/flaky/flaky-2.4.0.ebuild dev-python/flaky/metadata.xml X-VCS-Directories: dev-python/flaky/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 9284e41dd85adc73c472aac4c4e8e8974def33ed X-VCS-Branch: master Date: Wed, 4 Nov 2015 14:15:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 45cfc7a3-b2b1-4682-a802-6c528f58e7ce X-Archives-Hash: 6678f6772c78c95eb0e2476d209e4011 commit: 9284e41dd85adc73c472aac4c4e8e8974def33ed Author: Justin Lecher gentoo org> AuthorDate: Wed Nov 4 13:19:12 2015 +0000 Commit: Justin Lecher gentoo org> CommitDate: Wed Nov 4 14:15:15 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9284e41d dev-python/flaky: New package, ebuild written by me Package-Manager: portage-2.2.23 Signed-off-by: Justin Lecher gentoo.org> dev-python/flaky/Manifest | 1 + dev-python/flaky/flaky-2.4.0.ebuild | 39 +++++++++++++++++++++++++++++++++++++ dev-python/flaky/metadata.xml | 8 ++++++++ 3 files changed, 48 insertions(+) diff --git a/dev-python/flaky/Manifest b/dev-python/flaky/Manifest new file mode 100644 index 0000000..1dbc211 --- /dev/null +++ b/dev-python/flaky/Manifest @@ -0,0 +1 @@ +DIST flaky-2.4.0.tar.gz 27157 SHA256 6446e186674db9d67be5e85857b6e98a68a6491d5d307447d9a1a6721aca9fad SHA512 e3f51dab94a2e2140714f15ae088113c2e5cb65f58d38d5ae20b91c567c207568403c1267edeaf9f0f8c6bec7b03ebb0c02178cca30f3dd3a16aa4d099ca8153 WHIRLPOOL 20571c64d46ebbb87173a0e6bc859473528270c179c7cde045fded2a98708034f95864a92c137596b936f78e21984ca17ec0670063c470f14d1ce6ce1213c70f diff --git a/dev-python/flaky/flaky-2.4.0.ebuild b/dev-python/flaky/flaky-2.4.0.ebuild new file mode 100644 index 0000000..c802137 --- /dev/null +++ b/dev-python/flaky/flaky-2.4.0.ebuild @@ -0,0 +1,39 @@ +# 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="~amd64 ~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}] + ) +" + +# https://github.com/box/flaky/issues/72 +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 +} diff --git a/dev-python/flaky/metadata.xml b/dev-python/flaky/metadata.xml new file mode 100644 index 0000000..c166166 --- /dev/null +++ b/dev-python/flaky/metadata.xml @@ -0,0 +1,8 @@ + + + + + jlec@gentoo.org + Justin Lecher + +