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: Thu, 19 May 2022 07:15:09
Message-Id: 1652944490.6cc6133d3268d1dac67450d00d93e5e6e4d0cfba.mgorny@gentoo
1 commit: 6cc6133d3268d1dac67450d00d93e5e6e4d0cfba
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 19 05:41:11 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu May 19 07:14:50 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cc6133d
7
8 dev-python/hypothesis: Bump to 6.46.6
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.46.6.ebuild | 65 ++++++++++++++++++++++++++
14 2 files changed, 66 insertions(+)
15
16 diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
17 index dc9db8a63565..4a72f47d8927 100644
18 --- a/dev-python/hypothesis/Manifest
19 +++ b/dev-python/hypothesis/Manifest
20 @@ -9,3 +9,4 @@ DIST hypothesis-python-6.46.1.tar.gz 9192240 BLAKE2B cb38e1f7fdc4a9586c3920f2d92
21 DIST hypothesis-python-6.46.2.tar.gz 9305176 BLAKE2B 7d0abe4fc055eeb4660efbba9900b43209cc5ef1fd7b2362545e0d4145837cb7779cdf96c96cdd3770c1605ec8104818ece5cd012a90b164ab8ab63709d1c911 SHA512 207b4202aa36a28891c8051009ee6b8b6a8f0823840db7e4fc6840ebe6455060340f16f7e2e25bc5ad2adca1ff7fd8b58668ec2ca355b4579ec03aac616e786d
22 DIST hypothesis-python-6.46.3.tar.gz 9306685 BLAKE2B a26c08361a7a58d8de8d8458a73c5c3c57f04dd2008ab31e604f0addc18fb7a52a7f4a98318498b398cd1ac5d2d718fd722c4d17e0b6ef326e0457355fda7482 SHA512 d55c3c4a57d18aa7f6d876123b09bcab32d508f5aa40048f2db7f0cab3948ebb6fab5f12d291ae4740cdd1c61c2d612c1ce804028bb59914efc132404224d1ee
23 DIST hypothesis-python-6.46.5.tar.gz 9307648 BLAKE2B c99116c1ff4ee812b65c80fabaea2e46cadab00865e34030485cfcd97dc8ca7232fa13fae10604f70e8408d2a4570b30c138cced37debc7906c0b0fabcfd41a5 SHA512 dc347dd5aae31512b396fd14827963aa373e4ed499063e5cd76f3bbf1724ee7482cabf4939ff4707faa37dd5e252a410a71badbc45eeef639b1b7524975c447b
24 +DIST hypothesis-python-6.46.6.tar.gz 9308392 BLAKE2B 239579c9d7bdccc7234ddcbbccf52e825f2fe9826df182eeeb66a2c8b4affde232ed7bbd989cbac7e9a24cef879e08a891b3536a547ded33dfd0bd4fb3ac000e SHA512 f6c2b12ca95b8515514d221140318209887d8cc3df89615f3177972d847222a196a034a885e75880c12ecd4042fc01afa0a3a716aca00012b73dcbda346c3fad
25
26 diff --git a/dev-python/hypothesis/hypothesis-6.46.6.ebuild b/dev-python/hypothesis/hypothesis-6.46.6.ebuild
27 new file mode 100644
28 index 000000000000..af200ba0b7c0
29 --- /dev/null
30 +++ b/dev-python/hypothesis/hypothesis-6.46.6.ebuild
31 @@ -0,0 +1,65 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DISTUTILS_USE_PEP517=setuptools
38 +CLI_COMPAT=( python3_{8..10} )
39 +PYTHON_COMPAT=( "${CLI_COMPAT[@]}" python3_11 pypy3 )
40 +PYTHON_REQ_USE="threads(+),sqlite"
41 +
42 +inherit distutils-r1 multiprocessing optfeature
43 +
44 +DESCRIPTION="A library for property based testing"
45 +HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/"
46 +SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz"
47 +S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python"
48 +
49 +LICENSE="MPL-2.0"
50 +SLOT="0"
51 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
52 +IUSE="cli"
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 + ' "${CLI_COMPAT[@]}")
62 + )
63 +"
64 +BDEPEND="
65 + test? (
66 + dev-python/mock[${PYTHON_USEDEP}]
67 + dev-python/pexpect[${PYTHON_USEDEP}]
68 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
69 + )
70 +"
71 +
72 +distutils_enable_tests pytest
73 +
74 +python_test() {
75 + # subtests are broken by warnings from random plugins
76 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
77 + local -x PYTEST_PLUGINS=xdist.plugin,pytest_forked,_hypothesis_pytestplugin
78 +
79 + epytest tests/cover tests/pytest tests/quality -n "$(makeopts_jobs)"
80 +}
81 +
82 +python_install() {
83 + distutils-r1_python_install
84 + if ! use cli || ! has "${EPYTHON}" "${CLI_COMPAT[@]/_/.}"; then
85 + rm -r "${ED}/usr/bin" "${D}$(python_get_scriptdir)" || die
86 + fi
87 +}
88 +
89 +pkg_postinst() {
90 + optfeature "datetime support" dev-python/pytz
91 + optfeature "dateutil support" dev-python/python-dateutil
92 + optfeature "numpy support" dev-python/numpy
93 + optfeature "django support" dev-python/django dev-python/pytz
94 + optfeature "pandas support" dev-python/pandas
95 + optfeature "pytest support" dev-python/pytest
96 +}