Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/hypothesis/
Date: Sat, 16 Nov 2019 10:32:17
Message-Id: 1573900327.702cbfa387e022e4d8a55381e0e6a8ee2a0d47d1.mgorny@gentoo
1 commit: 702cbfa387e022e4d8a55381e0e6a8ee2a0d47d1
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 16 09:39:12 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 16 10:32:07 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=702cbfa3
7
8 dev-python/hypothesis: Run more tests, fix deps
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/hypothesis/hypothesis-4.44.2.ebuild | 20 ++++++++++++++------
13 1 file changed, 14 insertions(+), 6 deletions(-)
14
15 diff --git a/dev-python/hypothesis/hypothesis-4.44.2.ebuild b/dev-python/hypothesis/hypothesis-4.44.2.ebuild
16 index 4d3e97251e3..60971e4d3a8 100644
17 --- a/dev-python/hypothesis/hypothesis-4.44.2.ebuild
18 +++ b/dev-python/hypothesis/hypothesis-4.44.2.ebuild
19 @@ -18,25 +18,33 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~s
20 IUSE="test"
21 RESTRICT="!test? ( test )"
22
23 -CDEPEND="
24 +RDEPEND="
25 >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
26 $(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' 'python2*' pypy)
27 "
28 -RDEPEND="${CDEPEND}"
29 -DEPEND="${CDEPEND}
30 +BDEPEND="
31 dev-python/setuptools[${PYTHON_USEDEP}]
32 test? (
33 - dev-python/flaky[${PYTHON_USEDEP}]
34 + ${RDEPEND}
35 dev-python/mock[${PYTHON_USEDEP}]
36 + dev-python/pexpect[${PYTHON_USEDEP}]
37 >=dev-python/pytest-4.3[${PYTHON_USEDEP}]
38 - dev-python/pytest-xdist[${PYTHON_USEDEP}]
39 )
40 "
41
42 S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python"
43
44 +src_prepare() {
45 + # avoid pytest-xdist dep for one test
46 + sed -i -e 's:test_prints_statistics_given_option_under_xdist:_&:' \
47 + tests/pytest/test_statistics.py || die
48 + distutils-r1_src_prepare
49 +}
50 +
51 python_test() {
52 - py.test -v tests/cover/test_testdecorators.py || die "Tests fail with ${EPYTHON}"
53 + local pyver=$(python_is_python3 && echo 3 || echo 2)
54 + pytest -vv tests/cover tests/pytest tests/py${pyver} ||
55 + die "Tests fail with ${EPYTHON}"
56 }
57
58 pkg_postinst() {