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: Tue, 25 Aug 2020 11:48:53
Message-Id: 1598354253.0528fea9246005fbaa835cb18fc073b4d3b8f190.mgorny@gentoo
1 commit: 0528fea9246005fbaa835cb18fc073b4d3b8f190
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 25 11:17:33 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 25 11:17:33 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0528fea9
7
8 dev-python/hypothesis: Bump to 5.29.0
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.29.0.ebuild | 68 ++++++++++++++++++++++++++
14 2 files changed, 69 insertions(+)
15
16 diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
17 index 11c94c78e85..bdcdcd9fab0 100644
18 --- a/dev-python/hypothesis/Manifest
19 +++ b/dev-python/hypothesis/Manifest
20 @@ -4,3 +4,4 @@ DIST hypothesis-python-5.24.3.tar.gz 9050345 BLAKE2B bfb47794edb3c1c6aee22e808a6
21 DIST hypothesis-python-5.24.4.tar.gz 9054743 BLAKE2B 5c64c86ed58d8f0e4a07390b1b1b5e405878b9632bf14233e0515ad9d98ec6ddcc57bf39be6b61f53739d34e393b3af64c0d362880019d29a649a9523a0204e3 SHA512 147f4fa47b54bf3ec4dfcebf2a6c98cee26ea6780244ef99e181bada65978375ca7731ed05cb98f1b92f7a44a357faae374d97d489ec6e2318ff94e526cd9a40
22 DIST hypothesis-python-5.27.0.tar.gz 9067945 BLAKE2B 29cd1fd1b7cd4a2258a84d4dc122284c1cc8f21da2604e3b6c800a3bb43687eed7a3eb5b33373000c7c1359a3ff08326107d878910a0d92817c0c29c743dd1fa SHA512 973ab33c69d2db58ca3550335be3cc4196ccf532ccc2c0aeb0b54459201904c06f289a9f6faa3bfa77f6704a6f43e253e34453110cda750a2a1a19a851038dda
23 DIST hypothesis-python-5.28.0.tar.gz 9069739 BLAKE2B c7b404b815053441a7446c947a03a50eaf3030cb2b0387dda697e677af94b1b90e7570603ef3b4f8b26b9afbcdfc1b3708f713202c4a3617c73494f9e13781aa SHA512 7d3f7a88d70d48465a5bb6b995a73dafc4273f4a0cc3d3f2ee0ae125e1b2f52b9a840268acebf80f4dd1e86b5b5998996f2506a665f24044643a299aded0ced1
24 +DIST hypothesis-python-5.29.0.tar.gz 9070261 BLAKE2B 38781893d6fdf68deae890a150ca07ba5d1fb3c9ba717ea356af8b0b10b21c7e6a4b94b1ec9bca7ba5cb02b0baa18c5a773892fac342767b6dd79cbf2f89bdad SHA512 e3fc350181f86bb9669d4b0d0a43291056550bb73545070e2c7931006393895e7010050f90a063935bedb60bd18a3bad904ca92b147d81254ab50d4868adc8d0
25
26 diff --git a/dev-python/hypothesis/hypothesis-5.29.0.ebuild b/dev-python/hypothesis/hypothesis-5.29.0.ebuild
27 new file mode 100644
28 index 00000000000..c80c7aa009c
29 --- /dev/null
30 +++ b/dev-python/hypothesis/hypothesis-5.29.0.ebuild
31 @@ -0,0 +1,68 @@
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,9} 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="~amd64 ~arm ~arm64 ~ia64 ~ppc64 ~x86"
51 +IUSE="cli 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 + cli? (
58 + $(python_gen_cond_dep '
59 + dev-python/black[${PYTHON_USEDEP}]
60 + dev-python/click[${PYTHON_USEDEP}]
61 + ' python3_{6..8})
62 + )
63 +"
64 +BDEPEND="
65 + test? (
66 + ${RDEPEND}
67 + dev-python/mock[${PYTHON_USEDEP}]
68 + dev-python/pexpect[${PYTHON_USEDEP}]
69 + >=dev-python/pytest-5.3.5[${PYTHON_USEDEP}]
70 + !!<dev-python/typing-3.7.4.1
71 + )
72 +"
73 +
74 +src_prepare() {
75 + # avoid pytest-xdist dep for one test
76 + sed -i -e 's:test_prints_statistics_given_option_under_xdist:_&:' \
77 + tests/pytest/test_statistics.py || die
78 + distutils-r1_src_prepare
79 +}
80 +
81 +python_prepare() {
82 + if ! use cli || [[ ${EPYTHON} != python3.[678] ]]; then
83 + sed -i -e '/console_scripts/d' setup.py || die
84 + fi
85 +}
86 +
87 +python_test() {
88 + pytest -vv tests/cover tests/pytest tests/quality ||
89 + die "Tests fail with ${EPYTHON}"
90 +}
91 +
92 +pkg_postinst() {
93 + optfeature "datetime support" dev-python/pytz
94 + optfeature "dateutil support" dev-python/python-dateutil
95 + optfeature "numpy support" dev-python/numpy
96 + optfeature "django support" dev-python/django dev-python/pytz
97 + optfeature "pandas support" dev-python/pandas
98 + optfeature "pytest support" dev-python/pytest
99 +}