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: Mon, 12 Jul 2021 09:11:58
Message-Id: 1626081093.731bf9304fd34657fbdbb1f8e3b4653bcc20aa16.mgorny@gentoo
1 commit: 731bf9304fd34657fbdbb1f8e3b4653bcc20aa16
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 12 06:24:44 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 12 09:11:33 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=731bf930
7
8 dev-python/hypothesis: Bump to 6.14.2
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.2.ebuild | 62 ++++++++++++++++++++++++++
14 2 files changed, 63 insertions(+)
15
16 diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
17 index 25778e7dfb3..ddb7cc423a3 100644
18 --- a/dev-python/hypothesis/Manifest
19 +++ b/dev-python/hypothesis/Manifest
20 @@ -2,3 +2,4 @@ DIST hypothesis-python-6.10.1.tar.gz 9126246 BLAKE2B cc8cb3436d1de5d3d65a13cb5ed
21 DIST hypothesis-python-6.13.14.tar.gz 9134690 BLAKE2B 821fa0baa47dd896fc5ec61d0a96fec3da225dbc35306e6cf684641262c9ff0b714ca95aff69daca4bda551033a67d90b411f0cc2abff8edd41e5d749939344f SHA512 74397fd77e6e70df918e0fa605180e2bfd509fb26ef8b4a86020524611a315950073c3babd65bb2d2ff65d39e027bc52da88c0125f422cc2493076398e733853
22 DIST hypothesis-python-6.14.0.tar.gz 9135056 BLAKE2B 47d1efcee5e1c4037f1a20f08e3bc873fc143a2182bbde07e897812622c4d68923f78ac356bd97ef541566a27a874705eb2438747daaebe84f95fc2a2262bac1 SHA512 f7821449d3bf7f3656b52dad09027e40ea4af1779fcc7c0b995dac55843953fdab3f2ba69eb1b8de8258616f49cf8e5098c6a222d01071916c6f0c9fe184c80b
23 DIST hypothesis-python-6.14.1.tar.gz 9135154 BLAKE2B 0fa62cf4b512acf433a94edd14b2bc4c2c86cdbcc95e4a2760a1914e85f1149d9a5db6b22222c4954d2db109d3bff877ca0e5e8ec6842ff5b3c794a211ea9b57 SHA512 b84776e2bfff130c4db7582defbe9bc55183d624b45defffebdc954ca8e1dda1dec78f921e1bc7839a1167c37bce693711cd500da547dc6f2a8fa610c0bd3540
24 +DIST hypothesis-python-6.14.2.tar.gz 9135496 BLAKE2B f77f0668c4d0c2f5a952e06a40ae7898631804d3406c9711eb30a4e5a11e73ba2772be3cb437aacea2a75cd65f688a2485b98885c19cf743020900b0cf70f08c SHA512 e495e1c471fd4b185e23326700e85bf90635fcc8bf316c758c3285803ff0f7ad0269351b3a7631033495bb6498a8f19cb8661c55248ec5e14ff2a09e0c3af3c1
25
26 diff --git a/dev-python/hypothesis/hypothesis-6.14.2.ebuild b/dev-python/hypothesis/hypothesis-6.14.2.ebuild
27 new file mode 100644
28 index 00000000000..536affb7ae1
29 --- /dev/null
30 +++ b/dev-python/hypothesis/hypothesis-6.14.2.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 +}