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: Fri, 24 Apr 2020 06:27:31
Message-Id: 1587709634.740bf9f09d8879f6ea24ae7b8ef16ca77698524e.mgorny@gentoo
1 commit: 740bf9f09d8879f6ea24ae7b8ef16ca77698524e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 24 05:57:21 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 24 06:27:14 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=740bf9f0
7
8 dev-python/hypothesis: Bump to 5.10.4
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/hypothesis/Manifest | 1 +
13 dev-python/hypothesis/hypothesis-5.10.4.ebuild | 56 ++++++++++++++++++++++++++
14 2 files changed, 57 insertions(+)
15
16 diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
17 index 7bcacadae45..d1e716d554f 100644
18 --- a/dev-python/hypothesis/Manifest
19 +++ b/dev-python/hypothesis/Manifest
20 @@ -2,3 +2,4 @@ DIST hypothesis-python-4.50.8.tar.gz 6814518 BLAKE2B f2c39cae3708fe88d1854cda976
21 DIST hypothesis-python-4.57.1.tar.gz 9005030 BLAKE2B 3d318896cbe2d24fa6847e764a109791d3acf3821852f8e170991b0be5b069f166e16bdacf7a82fbe49bd9db5188315cdec7cdb4592647571233949ec5732991 SHA512 28622ce8a1d89d09df65f3fbf7e92a1ad98dac140ab646fe11fcb15e6aa9a9672eb51d459f984384d92b819f902de911b06cec2542582d529dd556d2f99ed952
22 DIST hypothesis-python-5.10.2.tar.gz 9006040 BLAKE2B 7ea925988ba600f59e48fcd18b85aaa2bec5a3f2a279b19be959e03fdf61e5c4ce75a781e70aa9138db86637f16fbb5d82118e7501f1d1c785345ecf7c5d1568 SHA512 a83bb6f368706ad3d31fc7cf4b4b3d27937dc540d6f44f592bfbd7f4380e045b6c71a08c5c977a4a3e16ac9b20f16caabb775cb387ce2576193d133acfa3773e
23 DIST hypothesis-python-5.10.3.tar.gz 9006973 BLAKE2B dd7669c159aad1a8228e85b50e6362129a0cdbb6aea3715e8583b4896de18def8de1ec4fda878517fc2dac8694dbbd6106f65cbfda81801469efbc3569ccd491 SHA512 708361d3fb7cdf1cf030711175fd6ea2d936d781967ab3c53c816085099f487c918506b98d724465c7df75df3a07e65a1b59d4ccc73c7730be071ccfc878f7e0
24 +DIST hypothesis-python-5.10.4.tar.gz 9007617 BLAKE2B 47e82ae1deae77f1d658093ae6578a70371792468185691bb5a6efa12349eb0df4511e19167fa89593a6af63d93ac6cae8bdd21048e87d952f3b351cf44677f0 SHA512 a22613ddb3d5bb9c038765e75269ff2e4b6351d6eac64267ad2f9ec6add0293ef21143ac9a0af20f2d858a0226e977ffca40e0b2929e92876fa702695d94b3fd
25
26 diff --git a/dev-python/hypothesis/hypothesis-5.10.4.ebuild b/dev-python/hypothesis/hypothesis-5.10.4.ebuild
27 new file mode 100644
28 index 00000000000..161feb37e78
29 --- /dev/null
30 +++ b/dev-python/hypothesis/hypothesis-5.10.4.ebuild
31 @@ -0,0 +1,56 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +DISTUTILS_USE_SETUPTOOLS=rdepend
38 +PYTHON_COMPAT=( python3_{6,7,8} pypy3 )
39 +PYTHON_REQ_USE="threads(+),sqlite"
40 +
41 +inherit distutils-r1 eutils
42 +
43 +DESCRIPTION="A library for property based testing"
44 +HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/"
45 +SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz"
46 +S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python"
47 +
48 +LICENSE="MPL-2.0"
49 +SLOT="0"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~x86"
51 +IUSE="test"
52 +RESTRICT="!test? ( test )"
53 +
54 +RDEPEND="
55 + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
56 + >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}]
57 +"
58 +BDEPEND="
59 + test? (
60 + ${RDEPEND}
61 + dev-python/mock[${PYTHON_USEDEP}]
62 + dev-python/pexpect[${PYTHON_USEDEP}]
63 + >=dev-python/pytest-5.3.5[${PYTHON_USEDEP}]
64 + !!<dev-python/typing-3.7.4.1
65 + )
66 +"
67 +
68 +src_prepare() {
69 + # avoid pytest-xdist dep for one test
70 + sed -i -e 's:test_prints_statistics_given_option_under_xdist:_&:' \
71 + tests/pytest/test_statistics.py || die
72 + distutils-r1_src_prepare
73 +}
74 +
75 +python_test() {
76 + pytest -vv tests/cover tests/pytest tests/quality ||
77 + die "Tests fail with ${EPYTHON}"
78 +}
79 +
80 +pkg_postinst() {
81 + optfeature "datetime support" dev-python/pytz
82 + optfeature "dateutil support" dev-python/python-dateutil
83 + optfeature "numpy support" dev-python/numpy
84 + optfeature "django support" dev-python/django dev-python/pytz
85 + optfeature "pandas support" dev-python/pandas
86 + optfeature "pytest support" dev-python/pytest
87 +}