1 |
commit: d39dd9f9786473f66ba0552f5f7aa13508daf802 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 26 21:24:39 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 26 21:51:22 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d39dd9f9 |
7 |
|
8 |
dev-python/hypothesis: Bump to 6.38.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.38.0.ebuild | 65 ++++++++++++++++++++++++++ |
14 |
2 files changed, 66 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest |
17 |
index 241884efaa52..49a2ba4bfbd5 100644 |
18 |
--- a/dev-python/hypothesis/Manifest |
19 |
+++ b/dev-python/hypothesis/Manifest |
20 |
@@ -4,3 +4,4 @@ DIST hypothesis-python-6.36.2.tar.gz 9179500 BLAKE2B e627ddfbef2e0955df0f4d8a388 |
21 |
DIST hypothesis-python-6.37.0.tar.gz 9179770 BLAKE2B 914968515c65b52cfa7fd4908c7132c36e2b3639a48a5f9131fdf0dc9f0230f3b3e9cc47e5f45896fd37faaa6b9822f8232df6bbb4b12b1d62e8498c35ba777e SHA512 44b200cb583c006c44a551b7f0e859d193bb4ae68233ca8903bc89259b7a7b57e751458034d3c46223481e5862fb046d546c0331501fe926d645ccb0fcd2a455 |
22 |
DIST hypothesis-python-6.37.1.tar.gz 9179835 BLAKE2B 316b4bd4143d8bd403bac2fcc713c49c0a1f5f713d78335845f77c7ac9dac852cce367ac618999265ab4c68e848037920b2be6e18f68bd1f3d6982b1e7f5e297 SHA512 7b5e961339672cf853d181f4a3963ab753fe0bd7af599247996629de2b8e62159b3cfe6ce8663b2499e2e4e2dbdcc99fc99c5a582a73102c5637e82ce4624c64 |
23 |
DIST hypothesis-python-6.37.2.tar.gz 9179951 BLAKE2B 0178beee31353d94454ce289d9214153b394612f28cec52e906456cda6419b7b427213ac46ff423c1f6d853e82d737b2f9f57ae89c20481cabde2bc523a87c18 SHA512 659ddce542e26047b0dceb764588c0ffa20a096f44b742514105d4f6f933042ee29fb84897863112fabf19b83de9d357714f252f5adeb8d0557788c62b71c6e2 |
24 |
+DIST hypothesis-python-6.38.0.tar.gz 9180960 BLAKE2B a62cb0cb31cfe4ece8ee829207befb729aebf2be802c57b398547c87ecbd4769955c5c2919a0eb653d41cc3f4998c5326fdb184b6409d5fcb632c037df6a542f SHA512 2d57b783a71a905470ca088ebd91c0ea96be1bd76648d30d52b0b43914844712bbf3eaad54d66607b149a1238bb9a0258f920a6e262e54bed5cef36e3ca227e1 |
25 |
|
26 |
diff --git a/dev-python/hypothesis/hypothesis-6.38.0.ebuild b/dev-python/hypothesis/hypothesis-6.38.0.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..e070fa008ff0 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/hypothesis/hypothesis-6.38.0.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 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
39 |
+PYTHON_REQ_USE="threads(+),sqlite" |
40 |
+ |
41 |
+inherit distutils-r1 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 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" |
51 |
+IUSE="cli" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] |
56 |
+ cli? ( |
57 |
+ $(python_gen_cond_dep ' |
58 |
+ dev-python/black[${PYTHON_USEDEP}] |
59 |
+ dev-python/click[${PYTHON_USEDEP}] |
60 |
+ ' python3_{8..10}) |
61 |
+ ) |
62 |
+" |
63 |
+BDEPEND=" |
64 |
+ test? ( |
65 |
+ dev-python/mock[${PYTHON_USEDEP}] |
66 |
+ dev-python/pexpect[${PYTHON_USEDEP}] |
67 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
68 |
+ !!<dev-python/typing-3.7.4.1 |
69 |
+ ) |
70 |
+" |
71 |
+ |
72 |
+distutils_enable_tests pytest |
73 |
+ |
74 |
+python_prepare() { |
75 |
+ if ! use cli || ! has "${EPYTHON}" python3.{8..10}; then |
76 |
+ sed -i -e '/console_scripts/d' setup.py || die |
77 |
+ fi |
78 |
+} |
79 |
+ |
80 |
+python_test() { |
81 |
+ # subtests are broken by warnings from random plugins |
82 |
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 |
83 |
+ local -x PYTEST_PLUGINS=xdist.plugin,pytest_forked,_hypothesis_pytestplugin |
84 |
+ |
85 |
+ epytest tests/cover tests/pytest tests/quality \ |
86 |
+ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
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 |
+} |