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, 16 Mar 2023 03:33:30
Message-Id: 1678936115.e80a1d559a9ec4d18bae773e8829121cb834e775.mgorny@gentoo
1 commit: e80a1d559a9ec4d18bae773e8829121cb834e775
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 16 03:08:35 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 16 03:08:35 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e80a1d55
7
8 dev-python/hypothesis: Bump to 6.69.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-6.69.0.ebuild | 77 ++++++++++++++++++++++++++
14 2 files changed, 78 insertions(+)
15
16 diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
17 index f2655634ea1b..0e59f80bdb70 100644
18 --- a/dev-python/hypothesis/Manifest
19 +++ b/dev-python/hypothesis/Manifest
20 @@ -1,3 +1,4 @@
21 DIST hypothesis-6.68.0.gh.tar.gz 9350032 BLAKE2B c122455b7f941eaba8b37b7c4bd4760b2ea0d7c5cf3e973544b80edfa17ea13870c9c5121a121178850154f0058e55c4051ff0ea98d35d3c312468202108a04d SHA512 7ca3e79c1c5e091ae829244e1f6b3563c61add0a5bbe7a7b254df85191778a4b05a21f82ca3f50ba6e77a5ec5c9ec06d7dd15c6cf423c1a2eb524a2aeb3f2c91
22 DIST hypothesis-6.68.1.gh.tar.gz 9350091 BLAKE2B 5d6d6912b20d3badca440b668838f456239653c393d8f148ba5dd16227e078586167f0d7ff0adbdca0efe2a81ff27e0307d97b63492658dc28c9abd7c7691551 SHA512 6dbaefa411f7945081158b7d730dc1893dfe02ec4b45f7bdd645f6f2198d39b3f4313d1e18dbe9a82d13e36df5bc541f1b31539128f9de5480b82b916bd74c0c
23 DIST hypothesis-6.68.2.gh.tar.gz 9350253 BLAKE2B 5f98aac845a2f4e1dd9f54809d3e7e1b201bdecdec1c5c9cff10a37851af7d8d9e8cb643c1a9b0545672862b3639a17aed5f4197653d48d3114edd0105668307 SHA512 c3507f99376af924e375c51e0d56d4e444204d2ebe147d813a3f33a69594f83493c499714567b127556ea620df7bde58f4a1ba662bb182907e5e0d14cf13ee81
24 +DIST hypothesis-6.69.0.gh.tar.gz 9350681 BLAKE2B e28bca5be08809d7f10723186957ab72a650d93403fc0c5ed91b329ca3c68b084a69aba093e8dc7fdc742316287dc585b7b8794403e0b3fa29adfc7bf2d76ee7 SHA512 b6a263a10f78841706f6fa58a237f2f1e7ef5efd4d859e0fb79bae0ad3eff86774bc0cb7bb581af89605f80514a08386b5f501a6154bcc5ae1f56e7eb2ba61b4
25
26 diff --git a/dev-python/hypothesis/hypothesis-6.69.0.ebuild b/dev-python/hypothesis/hypothesis-6.69.0.ebuild
27 new file mode 100644
28 index 000000000000..c793a8a143d2
29 --- /dev/null
30 +++ b/dev-python/hypothesis/hypothesis-6.69.0.ebuild
31 @@ -0,0 +1,77 @@
32 +# Copyright 1999-2023 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_{9..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 ~mips ~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 + !!<dev-python/requests-toolbelt-0.10.1
81 + )
82 +"
83 +
84 +distutils_enable_tests pytest
85 +
86 +python_test() {
87 + # subtests are broken by warnings from random plugins
88 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
89 + local -x PYTEST_PLUGINS=xdist.plugin,pytest_forked,_hypothesis_pytestplugin
90 +
91 + epytest tests/cover tests/pytest tests/quality -n "$(makeopts_jobs)"
92 +}
93 +
94 +python_install() {
95 + distutils-r1_python_install
96 + if ! use cli || ! has "${EPYTHON}" "${CLI_COMPAT[@]/_/.}"; then
97 + rm -r "${ED}/usr/bin" "${D}$(python_get_scriptdir)" || die
98 + fi
99 +}
100 +
101 +pkg_postinst() {
102 + optfeature "datetime support" dev-python/pytz
103 + optfeature "dateutil support" dev-python/python-dateutil
104 + optfeature "numpy support" dev-python/numpy
105 + optfeature "django support" dev-python/django dev-python/pytz
106 + optfeature "pandas support" dev-python/pandas
107 + optfeature "pytest support" dev-python/pytest
108 +}