From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AC5DB138334 for ; Sat, 16 Nov 2019 10:32:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EF5FFE0636; Sat, 16 Nov 2019 10:32:16 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CA811E0636 for ; Sat, 16 Nov 2019 10:32:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BADD434CEB3 for ; Sat, 16 Nov 2019 10:32:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BF5908B4 for ; Sat, 16 Nov 2019 10:32:13 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1573900327.702cbfa387e022e4d8a55381e0e6a8ee2a0d47d1.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/hypothesis/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/hypothesis/hypothesis-4.44.2.ebuild X-VCS-Directories: dev-python/hypothesis/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 702cbfa387e022e4d8a55381e0e6a8ee2a0d47d1 X-VCS-Branch: master Date: Sat, 16 Nov 2019 10:32:13 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e145e1cb-636c-401a-9209-fe235ce5d70b X-Archives-Hash: d28d900eafc68a796f7c86d6f80e5fad commit: 702cbfa387e022e4d8a55381e0e6a8ee2a0d47d1 Author: Michał Górny gentoo org> AuthorDate: Sat Nov 16 09:39:12 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Nov 16 10:32:07 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=702cbfa3 dev-python/hypothesis: Run more tests, fix deps Signed-off-by: Michał Górny gentoo.org> dev-python/hypothesis/hypothesis-4.44.2.ebuild | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/dev-python/hypothesis/hypothesis-4.44.2.ebuild b/dev-python/hypothesis/hypothesis-4.44.2.ebuild index 4d3e97251e3..60971e4d3a8 100644 --- a/dev-python/hypothesis/hypothesis-4.44.2.ebuild +++ b/dev-python/hypothesis/hypothesis-4.44.2.ebuild @@ -18,25 +18,33 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~s IUSE="test" RESTRICT="!test? ( test )" -CDEPEND=" +RDEPEND=" >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] $(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' 'python2*' pypy) " -RDEPEND="${CDEPEND}" -DEPEND="${CDEPEND} +BDEPEND=" dev-python/setuptools[${PYTHON_USEDEP}] test? ( - dev-python/flaky[${PYTHON_USEDEP}] + ${RDEPEND} dev-python/mock[${PYTHON_USEDEP}] + dev-python/pexpect[${PYTHON_USEDEP}] >=dev-python/pytest-4.3[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] ) " S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python" +src_prepare() { + # avoid pytest-xdist dep for one test + sed -i -e 's:test_prints_statistics_given_option_under_xdist:_&:' \ + tests/pytest/test_statistics.py || die + distutils-r1_src_prepare +} + python_test() { - py.test -v tests/cover/test_testdecorators.py || die "Tests fail with ${EPYTHON}" + local pyver=$(python_is_python3 && echo 3 || echo 2) + pytest -vv tests/cover tests/pytest tests/py${pyver} || + die "Tests fail with ${EPYTHON}" } pkg_postinst() {