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, 11 Sep 2020 07:17:28
Message-Id: 1599808634.22e3ce4ca7d8a5c00e619644222c0608d48a15f2.mgorny@gentoo
1 commit: 22e3ce4ca7d8a5c00e619644222c0608d48a15f2
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 11 06:20:20 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 11 07:17:14 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22e3ce4c
7
8 dev-python/hypothesis: Bump to 5.34.1
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.34.1.ebuild | 63 ++++++++++++++++++++++++++
14 2 files changed, 64 insertions(+)
15
16 diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
17 index 5171c370cfb..02aab653f55 100644
18 --- a/dev-python/hypothesis/Manifest
19 +++ b/dev-python/hypothesis/Manifest
20 @@ -13,3 +13,4 @@ DIST hypothesis-python-5.32.0.tar.gz 9075649 BLAKE2B c2b375ff45e1e5ad03dc4e94d49
21 DIST hypothesis-python-5.33.0.tar.gz 9075651 BLAKE2B 41833eff5463c596a5eba184d23a705a7c009221f821846a46462f4d79a6b117b97f71354b44afe14b51c655658628519384b6cbec3a11b5188b6f7942199f09 SHA512 0b7a1cc3b0676205c2292585513ab6ac339b08cf10138bb10340ad69af26005c194580713baeb8f704a8fe2f39709c9b643a23026b64a6300fe972b9c847d044
22 DIST hypothesis-python-5.33.1.tar.gz 9075721 BLAKE2B a880640e1c54bb2cf4206519409f36f7af7cb21ba5d76a0245b2735bc37ac2b7772fabf3dea50b48b7c1221704dae8a4390dc441435fc569bfae92e4230ee820 SHA512 207e8affe5bf8e4d719d000ef67f0e0945d01a9785624abcf04528b602c66c9512a2f621f827962b214a17b6d1e001045059a0c75b8f8cdd1abd5db3e75b5a7e
23 DIST hypothesis-python-5.33.2.tar.gz 9084086 BLAKE2B 058288af5a799a1fa9ca0f0526ff966bedd495c86f9066cd940610836e64281fd76bf342c898fff0189dc336eec4c741f52d6f7bf161703bcf7c9b8a757d6429 SHA512 495a8985dff9f34bd0f88076a0b8777d368162a7297cf35f2402cbacac8f1601ee31567f0f75ac7513f91f8aeca648e9de821b88661933226278287ae03eeca6
24 +DIST hypothesis-python-5.34.1.tar.gz 9081222 BLAKE2B 5af302a9861b92e0270ca21125a930c4c496d853dca1474a899d565fd339e488fc7affc1f25fe24cc3d63f8d1d4e7043349a04179caf9ccdaaefdb68fcc094d1 SHA512 68a9f736474f2fa51810f18db87beaaf3cfd1803ab5842a4c5e48aa9118ead92b0ff02261063c52c2ef8e9649d05bfed3cf37a6d95c4f0b6109773eb1efff8b1
25
26 diff --git a/dev-python/hypothesis/hypothesis-5.34.1.ebuild b/dev-python/hypothesis/hypothesis-5.34.1.ebuild
27 new file mode 100644
28 index 00000000000..7f849fbed63
29 --- /dev/null
30 +++ b/dev-python/hypothesis/hypothesis-5.34.1.ebuild
31 @@ -0,0 +1,63 @@
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 multiprocessing
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 ~riscv ~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..9})
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/pytest-xdist[${PYTHON_USEDEP}]
71 + !!<dev-python/typing-3.7.4.1
72 + )
73 +"
74 +
75 +python_prepare() {
76 + if ! use cli || [[ ${EPYTHON} != python* ]]; then
77 + sed -i -e '/console_scripts/d' setup.py || die
78 + fi
79 +}
80 +
81 +python_test() {
82 + pytest -vv tests/cover tests/pytest tests/quality \
83 + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" ||
84 + die "Tests fail with ${EPYTHON}"
85 +}
86 +
87 +pkg_postinst() {
88 + optfeature "datetime support" dev-python/pytz
89 + optfeature "dateutil support" dev-python/python-dateutil
90 + optfeature "numpy support" dev-python/numpy
91 + optfeature "django support" dev-python/django dev-python/pytz
92 + optfeature "pandas support" dev-python/pandas
93 + optfeature "pytest support" dev-python/pytest
94 +}