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, 22 Sep 2022 07:40:59
Message-Id: 1663832449.5d0933121c5eb116df907d6580b31698cbb20dbd.mgorny@gentoo
1 commit: 5d0933121c5eb116df907d6580b31698cbb20dbd
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 22 07:16:28 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 22 07:40:49 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d093312
7
8 dev-python/hypothesis: Bump to 6.54.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.54.6.ebuild | 76 ++++++++++++++++++++++++++
14 2 files changed, 77 insertions(+)
15
16 diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
17 index 18929650288f..dfe265a31710 100644
18 --- a/dev-python/hypothesis/Manifest
19 +++ b/dev-python/hypothesis/Manifest
20 @@ -1,3 +1,4 @@
21 DIST hypothesis-6.54.3.gh.tar.gz 9325211 BLAKE2B e0d6bc21057b50676ef98d1c9721b82c30986670758b2a7bfd1b101cc8d42258bf0d61887867445aafe13b8064c47d64583ab492e21b6fea510ef0c26fe01782 SHA512 288c5ea9c1dd8ee0839c11385f52ba8b8122f408aa11c6d2416460233ef78890e3014e659ef4312da4822da3abe2dd9163f68d2711556800e805ae41280aa132
22 DIST hypothesis-6.54.4.gh.tar.gz 9325437 BLAKE2B 2000c806a0c791d1eb353a829e5e96d53e935d360fd450b3807186121fec4dfd171b8821e08b6c23b0cbea8d24b0d88c32126281173a0de2f12b29d09ec2d62b SHA512 7e5b70cc2df874163205e3d35f3f5e6a71319e779b35f1596c69222373e9b766a143ccf37aa1699de6b98827978e44ccbca0b1e30e6ffe29c8b68c83bb3af869
23 DIST hypothesis-6.54.5.gh.tar.gz 9325448 BLAKE2B b4cb8a413ad96f11f4dbf4a1a529e389dbca45561264cf0922721a25009d1065fdce21064faf53bd7aad2f589c159b52d899aa7b12c12da68beae8c9186c0505 SHA512 37205ea28b44537409a94592e466376e9612f84a8501ad2ff5504fc648e062555ffb600416bdd1f9a74f39ba39729defd581025e0611c501839721721f7cf6e3
24 +DIST hypothesis-6.54.6.gh.tar.gz 9325898 BLAKE2B 01dde1d57192ede0a732ba2a50954fb6b1a1532e584715186f813977b2f22fd3411ec489874da67e687ca470ac58340dc45b821923ab01b03888c44a7882c0c0 SHA512 d678d0936c7906c839c29ad6c08154a067f8be2e18344139051ecc4b5c737f5088d2775a25758da2e29b74574b47c5f817643ccb762db851bc2b25e4fdbb3259
25
26 diff --git a/dev-python/hypothesis/hypothesis-6.54.6.ebuild b/dev-python/hypothesis/hypothesis-6.54.6.ebuild
27 new file mode 100644
28 index 000000000000..c45634356c75
29 --- /dev/null
30 +++ b/dev-python/hypothesis/hypothesis-6.54.6.ebuild
31 @@ -0,0 +1,76 @@
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 +TAG=hypothesis-python-${PV}
45 +MY_P=hypothesis-${TAG}
46 +DESCRIPTION="A library for property based testing"
47 +HOMEPAGE="
48 + https://github.com/HypothesisWorks/hypothesis/
49 + https://pypi.org/project/hypothesis/
50 +"
51 +SRC_URI="
52 + https://github.com/HypothesisWorks/hypothesis/archive/${TAG}.tar.gz
53 + -> ${P}.gh.tar.gz
54 +"
55 +S="${WORKDIR}/${MY_P}/hypothesis-python"
56 +
57 +LICENSE="MPL-2.0"
58 +SLOT="0"
59 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
60 +IUSE="cli"
61 +
62 +RDEPEND="
63 + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
64 + >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}]
65 + $(python_gen_cond_dep '
66 + >=dev-python/exceptiongroup-1.0.0_rc8[${PYTHON_USEDEP}]
67 + ' 3.8 3.9 3.10)
68 + cli? (
69 + $(python_gen_cond_dep '
70 + dev-python/black[${PYTHON_USEDEP}]
71 + dev-python/click[${PYTHON_USEDEP}]
72 + ' "${CLI_COMPAT[@]}")
73 + )
74 +"
75 +BDEPEND="
76 + test? (
77 + dev-python/mock[${PYTHON_USEDEP}]
78 + dev-python/pexpect[${PYTHON_USEDEP}]
79 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
80 + )
81 +"
82 +
83 +distutils_enable_tests pytest
84 +
85 +python_test() {
86 + # subtests are broken by warnings from random plugins
87 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
88 + local -x PYTEST_PLUGINS=xdist.plugin,pytest_forked,_hypothesis_pytestplugin
89 +
90 + epytest tests/cover tests/pytest tests/quality -n "$(makeopts_jobs)"
91 +}
92 +
93 +python_install() {
94 + distutils-r1_python_install
95 + if ! use cli || ! has "${EPYTHON}" "${CLI_COMPAT[@]/_/.}"; then
96 + rm -r "${ED}/usr/bin" "${D}$(python_get_scriptdir)" || die
97 + fi
98 +}
99 +
100 +pkg_postinst() {
101 + optfeature "datetime support" dev-python/pytz
102 + optfeature "dateutil support" dev-python/python-dateutil
103 + optfeature "numpy support" dev-python/numpy
104 + optfeature "django support" dev-python/django dev-python/pytz
105 + optfeature "pandas support" dev-python/pandas
106 + optfeature "pytest support" dev-python/pytest
107 +}