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, 02 Jul 2021 21:02:13
Message-Id: 1625259692.4c4f55bab3c5857e771b7894ba35bc18a0017d42.mgorny@gentoo
1 commit: 4c4f55bab3c5857e771b7894ba35bc18a0017d42
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 2 20:11:38 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 2 21:01:32 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c4f55ba
7
8 dev-python/hypothesis: Bump to 6.14.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-6.14.1.ebuild | 62 ++++++++++++++++++++++++++
14 2 files changed, 63 insertions(+)
15
16 diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
17 index 58e966f3312..25778e7dfb3 100644
18 --- a/dev-python/hypothesis/Manifest
19 +++ b/dev-python/hypothesis/Manifest
20 @@ -1,3 +1,4 @@
21 DIST hypothesis-python-6.10.1.tar.gz 9126246 BLAKE2B cc8cb3436d1de5d3d65a13cb5edefdbaae8bf9daed296eea9111ac46c002c34f43119f10b2ab1f45c5cbca5fe46d00738676290eb0e8437f2c10b5926d9e0915 SHA512 586b7f380cb850089f7d5321f11da92ef4a9b80e2ea925103e29c1f6c6c9da0a2a899a1a45ce77e0a40073f147561bc4fcbd5cb2ce77a9c0c65f6f64dfe4b716
22 DIST hypothesis-python-6.13.14.tar.gz 9134690 BLAKE2B 821fa0baa47dd896fc5ec61d0a96fec3da225dbc35306e6cf684641262c9ff0b714ca95aff69daca4bda551033a67d90b411f0cc2abff8edd41e5d749939344f SHA512 74397fd77e6e70df918e0fa605180e2bfd509fb26ef8b4a86020524611a315950073c3babd65bb2d2ff65d39e027bc52da88c0125f422cc2493076398e733853
23 DIST hypothesis-python-6.14.0.tar.gz 9135056 BLAKE2B 47d1efcee5e1c4037f1a20f08e3bc873fc143a2182bbde07e897812622c4d68923f78ac356bd97ef541566a27a874705eb2438747daaebe84f95fc2a2262bac1 SHA512 f7821449d3bf7f3656b52dad09027e40ea4af1779fcc7c0b995dac55843953fdab3f2ba69eb1b8de8258616f49cf8e5098c6a222d01071916c6f0c9fe184c80b
24 +DIST hypothesis-python-6.14.1.tar.gz 9135154 BLAKE2B 0fa62cf4b512acf433a94edd14b2bc4c2c86cdbcc95e4a2760a1914e85f1149d9a5db6b22222c4954d2db109d3bff877ca0e5e8ec6842ff5b3c794a211ea9b57 SHA512 b84776e2bfff130c4db7582defbe9bc55183d624b45defffebdc954ca8e1dda1dec78f921e1bc7839a1167c37bce693711cd500da547dc6f2a8fa610c0bd3540
25
26 diff --git a/dev-python/hypothesis/hypothesis-6.14.1.ebuild b/dev-python/hypothesis/hypothesis-6.14.1.ebuild
27 new file mode 100644
28 index 00000000000..536affb7ae1
29 --- /dev/null
30 +++ b/dev-python/hypothesis/hypothesis-6.14.1.ebuild
31 @@ -0,0 +1,62 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
38 +PYTHON_REQ_USE="threads(+),sqlite"
39 +
40 +inherit distutils-r1 multiprocessing optfeature
41 +
42 +DESCRIPTION="A library for property based testing"
43 +HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/"
44 +SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz"
45 +S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python"
46 +
47 +LICENSE="MPL-2.0"
48 +SLOT="0"
49 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
50 +IUSE="cli"
51 +
52 +RDEPEND="
53 + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
54 + >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}]
55 + cli? (
56 + $(python_gen_cond_dep '
57 + dev-python/black[${PYTHON_USEDEP}]
58 + dev-python/click[${PYTHON_USEDEP}]
59 + ' python3_{7..9})
60 + )
61 +"
62 +BDEPEND="
63 + test? (
64 + dev-python/mock[${PYTHON_USEDEP}]
65 + dev-python/pexpect[${PYTHON_USEDEP}]
66 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
67 + !!dev-python/pytest-describe
68 + !!<dev-python/typing-3.7.4.1
69 + )
70 +"
71 +
72 +distutils_enable_tests --install pytest
73 +
74 +python_prepare() {
75 + if ! use cli || ! has "${EPYTHON}" python3.{7..9}; then
76 + sed -i -e '/console_scripts/d' setup.py || die
77 + fi
78 +}
79 +
80 +python_test() {
81 + distutils_install_for_testing
82 + epytest tests/cover tests/pytest tests/quality \
83 + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
84 +}
85 +
86 +pkg_postinst() {
87 + optfeature "datetime support" dev-python/pytz
88 + optfeature "dateutil support" dev-python/python-dateutil
89 + optfeature "numpy support" dev-python/numpy
90 + optfeature "django support" dev-python/django dev-python/pytz
91 + optfeature "pandas support" dev-python/pandas
92 + optfeature "pytest support" dev-python/pytest
93 +}