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, 18 May 2021 07:21:32
Message-Id: 1621322479.ca185c4aec93a1c5da137c10674104ca03837d68.mgorny@gentoo
1 commit: ca185c4aec93a1c5da137c10674104ca03837d68
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 18 06:48:29 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 18 07:21:19 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca185c4a
7
8 dev-python/hypothesis: Bump to 6.13.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-6.13.0.ebuild | 61 ++++++++++++++++++++++++++
14 2 files changed, 62 insertions(+)
15
16 diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
17 index 9a25faf2476..3362a2fbd72 100644
18 --- a/dev-python/hypothesis/Manifest
19 +++ b/dev-python/hypothesis/Manifest
20 @@ -2,6 +2,7 @@ DIST hypothesis-python-6.10.0.tar.gz 9126095 BLAKE2B 7dbcbb1d1099490c5329fb9a134
21 DIST hypothesis-python-6.10.1.tar.gz 9126246 BLAKE2B cc8cb3436d1de5d3d65a13cb5edefdbaae8bf9daed296eea9111ac46c002c34f43119f10b2ab1f45c5cbca5fe46d00738676290eb0e8437f2c10b5926d9e0915 SHA512 586b7f380cb850089f7d5321f11da92ef4a9b80e2ea925103e29c1f6c6c9da0a2a899a1a45ce77e0a40073f147561bc4fcbd5cb2ce77a9c0c65f6f64dfe4b716
22 DIST hypothesis-python-6.12.0.tar.gz 9127949 BLAKE2B fae9be5f82362f46554e9912f34e7da06b2e8f8612428af7a8a77bda06e926b8c541e79c40a8aaab4a1d4d299cd947f2ffc92f44c8d569c185891e5b6aaac61e SHA512 7eafa80a546d17cb5239caf3aa18df1a23caea3021fe9a8d1e180c85443920df44ab93a31c13192ea9856db6a1ee8d5af82f44dcbaefb6dba6c37ab63081e050
23 DIST hypothesis-python-6.12.1.tar.gz 9128039 BLAKE2B fd0d7108f8a32ac95ff07f03060fa0ad30c28bcc77bd7ac70e1d16505aeb8052b673178870b9196cb19d17f9d8c7bf2b206335ed553eeea7fc8787f042884c36 SHA512 668bdc1da0c1bc239edfa52d34406dd7e3fa2230041c1de7791209bbec8de96b6d6714ed82a2e80807f5c51c32c7098717dd053b45b7276acf1ffcdf2fd425ee
24 +DIST hypothesis-python-6.13.0.tar.gz 9128293 BLAKE2B be618d42639602bc6617f8b5e9374812298e9d6150b6510a8060ca7c489ea69f1d6bd2cf9322c325c9bffc3c3f886fb4a4fb038159fa2c81920541ac4cb668cd SHA512 66fd6e7842b7b257c92cf756db4cf97bfb64006c89e3e58cda154ebe9345302f0264297df8d9de0685033a0f4e43909d65e76495689a8ded9968ecda586b668c
25 DIST hypothesis-python-6.6.0.tar.gz 9117847 BLAKE2B bb88ebee9db53f1c5753730d04e5dfe6a39ac4c5f7d534778b22b813ba188a55de6ad8a34f611f7863d1c3287be39ed7e10981e9d6ed8d8dd106688f154c3a49 SHA512 a446b4a11c6ee013225bfcd58e26efc6c9d867545d9bcf90a19468cb01fc5e2c5a7280ff9a80d4a1adbfe06dd155df6152941d5f53869d85e1d259e68a33a5e2
26 DIST hypothesis-python-6.8.1.tar.gz 9119495 BLAKE2B 4d98e30a04f652af79dd49e921b856124a312b63f087a6fd200282e9b0a0cd6fcad1a42a6008406bc347f21bf9cd6c5ff2db79d013987281f59365bd9d91550d SHA512 2f25e994438479b5faa15b2038146ab385445bf2722b0951ff55f324b074248d7322c4c6f3e9c659c18d0aa94150eea4c6567a7ac24debf2de4b32bab37a4dcc
27 DIST hypothesis-python-6.8.9.tar.gz 9122168 BLAKE2B 2568dcfcbc7182071247d0b7d978abf2184be4583937a42568c3e199eac6ce538adb7b3687747979fc6ab9da1e61088db7d1a01294982e75cb04992cdc10537a SHA512 4dc3884e2487f27a3b6b362e04cecd281f9072fdd2e8e91738899baf589d6d48df9eeacb9a158251c20b210d1190b78eadd191aa95f151023bd81091131dff66
28
29 diff --git a/dev-python/hypothesis/hypothesis-6.13.0.ebuild b/dev-python/hypothesis/hypothesis-6.13.0.ebuild
30 new file mode 100644
31 index 00000000000..e8455f78614
32 --- /dev/null
33 +++ b/dev-python/hypothesis/hypothesis-6.13.0.ebuild
34 @@ -0,0 +1,61 @@
35 +# Copyright 1999-2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +PYTHON_COMPAT=( python3_{7..10} pypy3 )
41 +PYTHON_REQ_USE="threads(+),sqlite"
42 +
43 +inherit distutils-r1 multiprocessing optfeature
44 +
45 +DESCRIPTION="A library for property based testing"
46 +HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/"
47 +SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz"
48 +S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python"
49 +
50 +LICENSE="MPL-2.0"
51 +SLOT="0"
52 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
53 +IUSE="cli"
54 +
55 +RDEPEND="
56 + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
57 + >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}]
58 + cli? (
59 + $(python_gen_cond_dep '
60 + dev-python/black[${PYTHON_USEDEP}]
61 + dev-python/click[${PYTHON_USEDEP}]
62 + ' python3_{7..9})
63 + )
64 +"
65 +BDEPEND="
66 + test? (
67 + dev-python/mock[${PYTHON_USEDEP}]
68 + dev-python/pexpect[${PYTHON_USEDEP}]
69 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
70 + !!<dev-python/typing-3.7.4.1
71 + )
72 +"
73 +
74 +distutils_enable_tests --install pytest
75 +
76 +python_prepare() {
77 + if ! use cli || ! has "${EPYTHON}" python3_{7..9}; then
78 + sed -i -e '/console_scripts/d' setup.py || die
79 + fi
80 +}
81 +
82 +python_test() {
83 + distutils_install_for_testing
84 + epytest tests/cover tests/pytest tests/quality \
85 + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
86 +}
87 +
88 +pkg_postinst() {
89 + optfeature "datetime support" dev-python/pytz
90 + optfeature "dateutil support" dev-python/python-dateutil
91 + optfeature "numpy support" dev-python/numpy
92 + optfeature "django support" dev-python/django dev-python/pytz
93 + optfeature "pandas support" dev-python/pandas
94 + optfeature "pytest support" dev-python/pytest
95 +}