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: Sat, 28 Nov 2020 19:59:16
Message-Id: 1606593548.fe6c6914b70f1fbd27afd754b4e11fa02d577f9d.mgorny@gentoo
1 commit: fe6c6914b70f1fbd27afd754b4e11fa02d577f9d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 28 19:44:47 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 28 19:59:08 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe6c6914
7
8 dev-python/hypothesis: Bump to 5.41.4
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.4.ebuild | 68 ++++++++++++++++++++++++++
14 2 files changed, 69 insertions(+)
15
16 diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
17 index 713466d51d3..c1972bd53a0 100644
18 --- a/dev-python/hypothesis/Manifest
19 +++ b/dev-python/hypothesis/Manifest
20 @@ -6,3 +6,4 @@ DIST hypothesis-python-5.41.0.tar.gz 9094817 BLAKE2B 3025caf9a0ccba19abfd12273ed
21 DIST hypothesis-python-5.41.1.tar.gz 9095771 BLAKE2B 29c5c091f4b827d1f1e6276d0401c1a673077304b3ee8b0252536c3eeda066a4cfa764856edb222ba6cbaebb424b08aebc8d8ec00c5e0d445774b1c62ed98593 SHA512 b1f02e32e6c5bdb6ca0a338901715508a03d2734898c673c5b3a5b25dee34922d7fbfcc2534b0c658d003d5de3e97abecb5a9b4f00ada0cc85c457b4b870a873
22 DIST hypothesis-python-5.41.2.tar.gz 9095799 BLAKE2B c1743f2e9872cefdd82dd79b60f78ae02bb975be2156bf7c05054627ca8386092588721450dfe14954129e46ea3556b78f7784102640d84368bdc98af2980b04 SHA512 712a6b3a007e4b354e9ed2137b7dd53652abbbf0b324467ce540ca886fb956eae5d00f83cbc1c9b1799a4a3abc64f4d26d9aed85d5fb689e904e1125b87b88eb
23 DIST hypothesis-python-5.41.3.tar.gz 9095982 BLAKE2B 3a1b7052b3f71d1f8139101d16f2f74c2d434514a201b7e04e5452ac2c5fbe7288d592c0020769f3a48f73347cdce53f507ab65db7bfb4f3823d0f7997e48058 SHA512 974dee6040222fa55729257cea4e3c4c049625a2a5dfddbc12667dbd58dfe31718474ce8e9de81519e998c7a0c8ff01920e0aa2bca9fb7100754e985177f4b69
24 +DIST hypothesis-python-5.41.4.tar.gz 9098296 BLAKE2B ef471172039251129d03faea722fc190135ed3d2e94a9bc6d4ad4f9676bc819e641dd0c893352168425ce987128e73d8844f622e57a7c161d33f75ea0f4b7312 SHA512 215f2e4479eca10d8ca590ffe0623f8994c7061fddabfe2737d0f3bba2f403042ad8e75730361417a1c9c32d3e261c8daa84032f6963ef6526e6b0067a156658
25
26 diff --git a/dev-python/hypothesis/hypothesis-5.41.4.ebuild b/dev-python/hypothesis/hypothesis-5.41.4.ebuild
27 new file mode 100644
28 index 00000000000..30e83a21773
29 --- /dev/null
30 +++ b/dev-python/hypothesis/hypothesis-5.41.4.ebuild
31 @@ -0,0 +1,68 @@
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 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos"
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 + local -x PYTHONPATH="${BUILD_DIR}/install/lib"
83 + esetup.py install \
84 + --root="${BUILD_DIR}/install" \
85 + --install-lib=lib
86 +
87 + pytest -vv tests/cover tests/pytest tests/quality \
88 + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" ||
89 + die "Tests fail with ${EPYTHON}"
90 +}
91 +
92 +pkg_postinst() {
93 + optfeature "datetime support" dev-python/pytz
94 + optfeature "dateutil support" dev-python/python-dateutil
95 + optfeature "numpy support" dev-python/numpy
96 + optfeature "django support" dev-python/django dev-python/pytz
97 + optfeature "pandas support" dev-python/pandas
98 + optfeature "pytest support" dev-python/pytest
99 +}