1 |
commit: 7366a7ed16e8fe06d313edb9c6e0a1d7f63591a9 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 20 06:09:10 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 20 08:34:37 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7366a7ed |
7 |
|
8 |
dev-python/hypothesis: Bump to 5.26.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/hypothesis/Manifest | 1 + |
13 |
dev-python/hypothesis/hypothesis-5.26.1.ebuild | 68 ++++++++++++++++++++++++++ |
14 |
2 files changed, 69 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest |
17 |
index 9a22a3c33be..2dda6a73748 100644 |
18 |
--- a/dev-python/hypothesis/Manifest |
19 |
+++ b/dev-python/hypothesis/Manifest |
20 |
@@ -8,3 +8,4 @@ DIST hypothesis-python-5.24.2.tar.gz 9050270 BLAKE2B 05043935afec77b23349b4973a2 |
21 |
DIST hypothesis-python-5.24.3.tar.gz 9050345 BLAKE2B bfb47794edb3c1c6aee22e808a6d27af52f8176d307f9a585efa0f1e0d68adf9a902ed6f67405e77c6804f18e17a76486ab42f610807f6ee97535f950318a055 SHA512 7647d14ba805ad3ff6465e1d2c6d9104560c7ea31517777ab45e07da39efefa7109215d2f4074082620554ae4aa5ce5060bca5c923d11c14718f1efdae829986 |
22 |
DIST hypothesis-python-5.24.4.tar.gz 9054743 BLAKE2B 5c64c86ed58d8f0e4a07390b1b1b5e405878b9632bf14233e0515ad9d98ec6ddcc57bf39be6b61f53739d34e393b3af64c0d362880019d29a649a9523a0204e3 SHA512 147f4fa47b54bf3ec4dfcebf2a6c98cee26ea6780244ef99e181bada65978375ca7731ed05cb98f1b92f7a44a357faae374d97d489ec6e2318ff94e526cd9a40 |
23 |
DIST hypothesis-python-5.26.0.tar.gz 9062003 BLAKE2B 7a75c6fb2205944fc64100708c38417a5d3f1dd602a7fc14a464acb79e5d91b5513e9080e23c9ec5547edc6dbbe3b6a2c0425077a697a5656c0112d65adbaefd SHA512 8fc23a5e753cffe4a6a6b1be68fa96042933ef7ec8f8c4f88fbf0901996da9de576457647bea55ff2ceca4d71db322f927847258ca9bda90e1fac9f19c79a42b |
24 |
+DIST hypothesis-python-5.26.1.tar.gz 9063203 BLAKE2B 87b60395a417a811a2f4d41f10c3c2f1d77f0127d43e4cb1d5ae4deff97834623675a26134cc6579236099efa1cd84974619033ed58ef3d0fd5b0bec2e45935a SHA512 b8df15df0e3b615c3e621005a7fd1ef183b67f2fba4d16aaec22577af2b5f3dec6d98cb15d32f998d2aa185fcad16324df1d62affe7647c5e78259b42c550511 |
25 |
|
26 |
diff --git a/dev-python/hypothesis/hypothesis-5.26.1.ebuild b/dev-python/hypothesis/hypothesis-5.26.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..2ac74d435dc |
29 |
--- /dev/null |
30 |
+++ b/dev-python/hypothesis/hypothesis-5.26.1.ebuild |
31 |
@@ -0,0 +1,68 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
38 |
+PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 ) |
39 |
+PYTHON_REQ_USE="threads(+),sqlite" |
40 |
+ |
41 |
+inherit distutils-r1 eutils |
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="~amd64 ~ia64 ~x86" |
51 |
+IUSE="cli test" |
52 |
+RESTRICT="!test? ( test )" |
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 |
+ ' python3_{6..8}) |
62 |
+ ) |
63 |
+" |
64 |
+BDEPEND=" |
65 |
+ test? ( |
66 |
+ ${RDEPEND} |
67 |
+ dev-python/mock[${PYTHON_USEDEP}] |
68 |
+ dev-python/pexpect[${PYTHON_USEDEP}] |
69 |
+ >=dev-python/pytest-5.3.5[${PYTHON_USEDEP}] |
70 |
+ !!<dev-python/typing-3.7.4.1 |
71 |
+ ) |
72 |
+" |
73 |
+ |
74 |
+src_prepare() { |
75 |
+ # avoid pytest-xdist dep for one test |
76 |
+ sed -i -e 's:test_prints_statistics_given_option_under_xdist:_&:' \ |
77 |
+ tests/pytest/test_statistics.py || die |
78 |
+ distutils-r1_src_prepare |
79 |
+} |
80 |
+ |
81 |
+python_prepare() { |
82 |
+ if ! use cli || [[ ${EPYTHON} != python3.[678] ]]; then |
83 |
+ sed -i -e '/console_scripts/d' setup.py || die |
84 |
+ fi |
85 |
+} |
86 |
+ |
87 |
+python_test() { |
88 |
+ pytest -vv tests/cover tests/pytest tests/quality || |
89 |
+ die "Tests fail with ${EPYTHON}" |
90 |
+} |
91 |
+ |
92 |
+pkg_postinst() { |
93 |
+ optfeature "datetime support" dev-python/pytz |
94 |
+ optfeature "dateutil support" dev-python/python-dateutil |
95 |
+ optfeature "numpy support" dev-python/numpy |
96 |
+ optfeature "django support" dev-python/django dev-python/pytz |
97 |
+ optfeature "pandas support" dev-python/pandas |
98 |
+ optfeature "pytest support" dev-python/pytest |
99 |
+} |