1 |
commit: fdfbd571b3479078781323ec9cc4f5cc11bd4630 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 17 09:46:42 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 17 11:00:12 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdfbd571 |
7 |
|
8 |
dev-python/hypothesis: Bump to 5.26.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-5.26.0.ebuild | 68 ++++++++++++++++++++++++++ |
14 |
dev-python/hypothesis/metadata.xml | 5 ++ |
15 |
3 files changed, 74 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest |
18 |
index 75c79f01614..9a22a3c33be 100644 |
19 |
--- a/dev-python/hypothesis/Manifest |
20 |
+++ b/dev-python/hypothesis/Manifest |
21 |
@@ -7,3 +7,4 @@ DIST hypothesis-python-5.24.0.tar.gz 9040780 BLAKE2B 126a7e0a4d9df292445453035d4 |
22 |
DIST hypothesis-python-5.24.2.tar.gz 9050270 BLAKE2B 05043935afec77b23349b4973a2b3b9fafceba467754dcf3295d410561e3c76ff3c4b2996f5f14aea46b5b6a073e7db2a8be085d42df79ed6eb78eacd7539234 SHA512 88c1351b70355906cc57b667f2a863ac1334219e1721504ea76b1599d57fdf272a96263c365fe24882be9f83f28671998ebee28b0faea2190d9b6b39d2c2dc84 |
23 |
DIST hypothesis-python-5.24.3.tar.gz 9050345 BLAKE2B bfb47794edb3c1c6aee22e808a6d27af52f8176d307f9a585efa0f1e0d68adf9a902ed6f67405e77c6804f18e17a76486ab42f610807f6ee97535f950318a055 SHA512 7647d14ba805ad3ff6465e1d2c6d9104560c7ea31517777ab45e07da39efefa7109215d2f4074082620554ae4aa5ce5060bca5c923d11c14718f1efdae829986 |
24 |
DIST hypothesis-python-5.24.4.tar.gz 9054743 BLAKE2B 5c64c86ed58d8f0e4a07390b1b1b5e405878b9632bf14233e0515ad9d98ec6ddcc57bf39be6b61f53739d34e393b3af64c0d362880019d29a649a9523a0204e3 SHA512 147f4fa47b54bf3ec4dfcebf2a6c98cee26ea6780244ef99e181bada65978375ca7731ed05cb98f1b92f7a44a357faae374d97d489ec6e2318ff94e526cd9a40 |
25 |
+DIST hypothesis-python-5.26.0.tar.gz 9062003 BLAKE2B 7a75c6fb2205944fc64100708c38417a5d3f1dd602a7fc14a464acb79e5d91b5513e9080e23c9ec5547edc6dbbe3b6a2c0425077a697a5656c0112d65adbaefd SHA512 8fc23a5e753cffe4a6a6b1be68fa96042933ef7ec8f8c4f88fbf0901996da9de576457647bea55ff2ceca4d71db322f927847258ca9bda90e1fac9f19c79a42b |
26 |
|
27 |
diff --git a/dev-python/hypothesis/hypothesis-5.26.0.ebuild b/dev-python/hypothesis/hypothesis-5.26.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..36a076362ce |
30 |
--- /dev/null |
31 |
+++ b/dev-python/hypothesis/hypothesis-5.26.0.ebuild |
32 |
@@ -0,0 +1,68 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
39 |
+PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 ) |
40 |
+PYTHON_REQ_USE="threads(+),sqlite" |
41 |
+ |
42 |
+inherit distutils-r1 eutils |
43 |
+ |
44 |
+DESCRIPTION="A library for property based testing" |
45 |
+HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/" |
46 |
+SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz" |
47 |
+S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python" |
48 |
+ |
49 |
+LICENSE="MPL-2.0" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~x86" |
52 |
+IUSE="cli test" |
53 |
+RESTRICT="!test? ( test )" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] |
58 |
+ cli? ( |
59 |
+ $(python_gen_cond_dep ' |
60 |
+ dev-python/black[${PYTHON_USEDEP}] |
61 |
+ dev-python/click[${PYTHON_USEDEP}] |
62 |
+ ' python3_{6..8}) |
63 |
+ ) |
64 |
+" |
65 |
+BDEPEND=" |
66 |
+ test? ( |
67 |
+ ${RDEPEND} |
68 |
+ dev-python/mock[${PYTHON_USEDEP}] |
69 |
+ dev-python/pexpect[${PYTHON_USEDEP}] |
70 |
+ >=dev-python/pytest-5.3.5[${PYTHON_USEDEP}] |
71 |
+ !!<dev-python/typing-3.7.4.1 |
72 |
+ ) |
73 |
+" |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ # avoid pytest-xdist dep for one test |
77 |
+ sed -i -e 's:test_prints_statistics_given_option_under_xdist:_&:' \ |
78 |
+ tests/pytest/test_statistics.py || die |
79 |
+ distutils-r1_src_prepare |
80 |
+} |
81 |
+ |
82 |
+python_prepare() { |
83 |
+ if ! use cli || [[ ${EPYTHON} != python3.[678] ]]; then |
84 |
+ sed -i -e '/console_scripts/d' setup.py || die |
85 |
+ fi |
86 |
+} |
87 |
+ |
88 |
+python_test() { |
89 |
+ pytest -vv tests/cover tests/pytest tests/quality || |
90 |
+ die "Tests fail with ${EPYTHON}" |
91 |
+} |
92 |
+ |
93 |
+pkg_postinst() { |
94 |
+ optfeature "datetime support" dev-python/pytz |
95 |
+ optfeature "dateutil support" dev-python/python-dateutil |
96 |
+ optfeature "numpy support" dev-python/numpy |
97 |
+ optfeature "django support" dev-python/django dev-python/pytz |
98 |
+ optfeature "pandas support" dev-python/pandas |
99 |
+ optfeature "pytest support" dev-python/pytest |
100 |
+} |
101 |
|
102 |
diff --git a/dev-python/hypothesis/metadata.xml b/dev-python/hypothesis/metadata.xml |
103 |
index 91f12574aa2..7c5b75670d1 100644 |
104 |
--- a/dev-python/hypothesis/metadata.xml |
105 |
+++ b/dev-python/hypothesis/metadata.xml |
106 |
@@ -19,4 +19,9 @@ |
107 |
<remote-id type="pypi">hypothesis</remote-id> |
108 |
<remote-id type="github">HypothesisWorks/hypothesis</remote-id> |
109 |
</upstream> |
110 |
+ <use> |
111 |
+ <flag name="cli"> |
112 |
+ Install a CLI tool used to write tests. |
113 |
+ </flag> |
114 |
+ </use> |
115 |
</pkgmetadata> |