1 |
commit: f9cbdf06c4cd99596bb1b0f30cf2575760f1b62b |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 30 08:01:58 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 30 08:57:33 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9cbdf06 |
7 |
|
8 |
dev-python/hypothesis: Bump to 6.33.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.33.0.ebuild | 66 ++++++++++++++++++++++++++ |
14 |
2 files changed, 67 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest |
17 |
index 8187cf935962..b98b483173f5 100644 |
18 |
--- a/dev-python/hypothesis/Manifest |
19 |
+++ b/dev-python/hypothesis/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST hypothesis-python-6.30.1.tar.gz 9180975 BLAKE2B 3b0e8e29d74f579a9ace6fc341451992386de3358defcf42936d2d535c31bae07d7ab49fa6d4a8d1a2bd0e8231086dd9795d78125555e668425fba2bc539b224 SHA512 8abf31debf94124744d17d5ddac6698a21981feca7b776e97d92d5f6d1404ec17794bdf11b256dc7b0a335a041af6d3f1f20ae6fd6a62abc1ad78c2b39354fa9 |
22 |
DIST hypothesis-python-6.31.4.tar.gz 9183157 BLAKE2B a8c82cd2e798b7dc0b149a09d52cdde77677473d91f3192783a8903fa7513ce410a89e67df32a812a12b59ca113b065c52e84fae0632f8a2dd852f4a39e90cbd SHA512 b1783d7463b575afa40418e4d67aff04c025bd9d733b1c6b2ac671d8d1c9a5d58ee7d10ce5e27aaa14156285abb6b182f7ee5f3ebe8eb335421680d20dbb4405 |
23 |
DIST hypothesis-python-6.32.1.tar.gz 9176925 BLAKE2B 0b57c8b46b766055a19c8831620b6ad780bd1a3b3e4835496cbd01f4fb861c64679171c685797458ec56ff07fe9524840cffce1e1930390de71225b707163880 SHA512 f64b0ca16a47d9f4dbce4986aa2c4414e86e596b6e167bd8be373fda05f8bbb626de7a615861a71313faebde50b1fe55e54c8b20247c71fa4ecb2223de171502 |
24 |
+DIST hypothesis-python-6.33.0.tar.gz 9177426 BLAKE2B ad1b1a358345f9b92bf41cee196c7bba5374054c84b7ca96500cf41b095e7ae6df12499dcb3b656907df30b360d167630d3d4c640c9d5d903125158af6db3089 SHA512 0165b7c431980d7758be50e834dbe04356478590d5fc54656ea9d31508bbae81f9fbb53b38178862b2d4959e17fa3564bc6971d466ba95555c8e80a6fb208639 |
25 |
|
26 |
diff --git a/dev-python/hypothesis/hypothesis-6.33.0.ebuild b/dev-python/hypothesis/hypothesis-6.33.0.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..93b167df8466 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/hypothesis/hypothesis-6.33.0.ebuild |
31 |
@@ -0,0 +1,66 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
38 |
+PYTHON_REQ_USE="threads(+),sqlite" |
39 |
+ |
40 |
+inherit distutils-r1 multiprocessing optfeature |
41 |
+ |
42 |
+DESCRIPTION="A library for property based testing" |
43 |
+HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/" |
44 |
+SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz" |
45 |
+S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python" |
46 |
+ |
47 |
+LICENSE="MPL-2.0" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" |
50 |
+IUSE="cli" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] |
55 |
+ cli? ( |
56 |
+ $(python_gen_cond_dep ' |
57 |
+ dev-python/black[${PYTHON_USEDEP}] |
58 |
+ dev-python/click[${PYTHON_USEDEP}] |
59 |
+ ' python3_{8..9}) |
60 |
+ ) |
61 |
+" |
62 |
+BDEPEND=" |
63 |
+ test? ( |
64 |
+ dev-python/mock[${PYTHON_USEDEP}] |
65 |
+ dev-python/pexpect[${PYTHON_USEDEP}] |
66 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
67 |
+ !!<dev-python/typing-3.7.4.1 |
68 |
+ ) |
69 |
+" |
70 |
+ |
71 |
+distutils_enable_tests --install pytest |
72 |
+ |
73 |
+python_prepare() { |
74 |
+ if ! use cli || ! has "${EPYTHON}" python3.{8..9}; then |
75 |
+ sed -i -e '/console_scripts/d' setup.py || die |
76 |
+ fi |
77 |
+} |
78 |
+ |
79 |
+python_test() { |
80 |
+ # subtests are broken by warnings from random plugins |
81 |
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 |
82 |
+ local -x PYTEST_PLUGINS=pytest_mock,xdist.plugin,pytest_forked,_hypothesis_pytestplugin |
83 |
+ |
84 |
+ distutils_install_for_testing |
85 |
+ epytest tests/cover tests/pytest tests/quality \ |
86 |
+ -x \ |
87 |
+ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
88 |
+} |
89 |
+ |
90 |
+pkg_postinst() { |
91 |
+ optfeature "datetime support" dev-python/pytz |
92 |
+ optfeature "dateutil support" dev-python/python-dateutil |
93 |
+ optfeature "numpy support" dev-python/numpy |
94 |
+ optfeature "django support" dev-python/django dev-python/pytz |
95 |
+ optfeature "pandas support" dev-python/pandas |
96 |
+ optfeature "pytest support" dev-python/pytest |
97 |
+} |