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, 30 Oct 2020 17:23:28
Message-Id: 1604078600.4be54eb442b8487899c0492a0cc6a88a1c7256c0.mgorny@gentoo
1 commit: 4be54eb442b8487899c0492a0cc6a88a1c7256c0
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 30 17:14:15 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 30 17:23:20 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4be54eb4
7
8 dev-python/hypothesis: Bump to 5.41.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.41.0.ebuild | 63 ++++++++++++++++++++++++++
14 2 files changed, 64 insertions(+)
15
16 diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
17 index 8939c7500de..d91e37c87f6 100644
18 --- a/dev-python/hypothesis/Manifest
19 +++ b/dev-python/hypothesis/Manifest
20 @@ -6,3 +6,4 @@ DIST hypothesis-python-5.37.5.tar.gz 9092380 BLAKE2B b5bf9f5c5bb1002154ea6041c38
21 DIST hypothesis-python-5.38.0.tar.gz 9092764 BLAKE2B ec805c3df17af88e122e9a462c73768b67d420172d72c088add8056b8de64606a8e6c01f82a0ca4fd05520444482e10b488b4ccf2b78b951288c4e1827e1ce12 SHA512 2a4e57ace3c6487598353bd40a9295d8dd05c6b18493d61674bbb403a4bbd863c43af683b59da990cc5add5dedc789462337140c4d2ed7d2c16567fb254261ff
22 DIST hypothesis-python-5.38.1.tar.gz 9093201 BLAKE2B 093b847524ca1a4a7ec4172585d8cbdc63820165f367a7f5782c0e94ed190f9f271fe0d76f570a5ab95d794951260b93cb4114ac090b56bcdf904e988c00c4c5 SHA512 26db08680464710246bfa3a3dfddbe41e9480e4ce2a50bf75597aa96efe8976d3b7bcf639e2efe9a8bfec64bdfef3fec14093e14cbe8db3f1cf5dafe813a91a0
23 DIST hypothesis-python-5.39.0.tar.gz 9094029 BLAKE2B 32f98b9a57993fe95d894625ac2ab44eb52ed1fb301566ad01064a2beb37ae768484797220386c55e5c72f4022819c5be9abaf68b57bfd3385860d8bed9baaaa SHA512 fd683781ea7bf0806cf6f15d0065808e5a83410b9860c23803f9f18ea7be1e372a75221116e1f661f189870141de4b8585029cfcdca5d6140a5140226578a610
24 +DIST hypothesis-python-5.41.0.tar.gz 9094817 BLAKE2B 3025caf9a0ccba19abfd12273edefe1db825a40615a378fb076e8d3ba96bfecc64ec23be6ef72b6fcd89d7d6b5c94bbf12abf3212e4a521a21def892b0d95a56 SHA512 76a0147d36179368d62a3d9e6f9f27effa903476fa0cccdba4574937c470bbfd020daccf9b3df73f457b543b6a94ce0858fe4d9abdfe9c16a8c49858c8bc0e92
25
26 diff --git a/dev-python/hypothesis/hypothesis-5.41.0.ebuild b/dev-python/hypothesis/hypothesis-5.41.0.ebuild
27 new file mode 100644
28 index 00000000000..b817839fd0a
29 --- /dev/null
30 +++ b/dev-python/hypothesis/hypothesis-5.41.0.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 optfeature
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="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~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 +}