1 |
commit: 69728190390769db3f564920cf8489bc46926faa |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 1 12:46:30 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 1 13:47:25 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69728190 |
7 |
|
8 |
dev-python/hypothesis: Bump to 5.19.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.19.0.ebuild | 56 ++++++++++++++++++++++++++ |
14 |
2 files changed, 57 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest |
17 |
index 4c2402d5959..a7c7973b6f5 100644 |
18 |
--- a/dev-python/hypothesis/Manifest |
19 |
+++ b/dev-python/hypothesis/Manifest |
20 |
@@ -11,3 +11,4 @@ DIST hypothesis-python-5.16.3.tar.gz 9011952 BLAKE2B d74a68c4ee1e5aacf4be1da5a46 |
21 |
DIST hypothesis-python-5.18.0.tar.gz 9013356 BLAKE2B 3863414e54e40ac5f2a45edbb57fbee058e82f04cbde9eadb99ed6b03a2a2684777b46eabdbe136aea74b835e343485d80cfe98c263afa537c7437e7566f796f SHA512 b1a1f37f1f58a6401a31f32ef0e7de452b8a8bd71fe5aeb72eeac197a23b78c3ff17b61f7940e2a2a755f7f008f0ea3df5b0f2ad5e4c0d2d316bf13dbd7cbdaf |
22 |
DIST hypothesis-python-5.18.1.tar.gz 9013452 BLAKE2B a513c19a19b3ff49c78d97839dea7d857d9a00f7d42e5e0376cd6fec9ff9a86f9b6b9471da474ec7724e41254105c0ac65fc7d772f01bfc40f6deda200f11629 SHA512 19455699ed50d30767edc5627f797992f2542aeb3ca9e38603a68ffe1108f0287baa183e4dca101f21eaea6c7c7501e135b5baf9e09117a2cae92ec1e437e8b5 |
23 |
DIST hypothesis-python-5.18.3.tar.gz 9017453 BLAKE2B 85356e723fca66853e388a4a3e791dd4b1cfb80b7a4b62363a4f0d0aeffc44c051eeabd516eebd5737a96050edef978a87788c1141f87aa2e310eda9bf64a0a7 SHA512 baeb4644a90fd8694d88819a46ba1ea6c60ad13e00f07cb923a3d0f43cd4b4d61bd07bf25e45e6d1203f9db44fbe8ec7eca7e029c804659025df89a80520e550 |
24 |
+DIST hypothesis-python-5.19.0.tar.gz 9022213 BLAKE2B d8996cfd18d24722cd4faaf8335ce2b1c67757e3ffe973a33bd8ad087fcde513442d9fdf01f486ee07b33504e4088aa9e4c104782c3b03aa4f0d77a99ba6f672 SHA512 c26b0c9c5c7e1941c7f491e8e8165fda86a6e985204b9098c214080e508167f77f7dffe65192a4418f4958c3c6df44a20d75131895517c40c1113995ace3b604 |
25 |
|
26 |
diff --git a/dev-python/hypothesis/hypothesis-5.19.0.ebuild b/dev-python/hypothesis/hypothesis-5.19.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..494668bd6a8 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/hypothesis/hypothesis-5.19.0.ebuild |
31 |
@@ -0,0 +1,56 @@ |
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="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
51 |
+IUSE="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 |
+" |
58 |
+BDEPEND=" |
59 |
+ test? ( |
60 |
+ ${RDEPEND} |
61 |
+ dev-python/mock[${PYTHON_USEDEP}] |
62 |
+ dev-python/pexpect[${PYTHON_USEDEP}] |
63 |
+ >=dev-python/pytest-5.3.5[${PYTHON_USEDEP}] |
64 |
+ !!<dev-python/typing-3.7.4.1 |
65 |
+ ) |
66 |
+" |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ # avoid pytest-xdist dep for one test |
70 |
+ sed -i -e 's:test_prints_statistics_given_option_under_xdist:_&:' \ |
71 |
+ tests/pytest/test_statistics.py || die |
72 |
+ distutils-r1_src_prepare |
73 |
+} |
74 |
+ |
75 |
+python_test() { |
76 |
+ pytest -vv tests/cover tests/pytest tests/quality || |
77 |
+ die "Tests fail with ${EPYTHON}" |
78 |
+} |
79 |
+ |
80 |
+pkg_postinst() { |
81 |
+ optfeature "datetime support" dev-python/pytz |
82 |
+ optfeature "dateutil support" dev-python/python-dateutil |
83 |
+ optfeature "numpy support" dev-python/numpy |
84 |
+ optfeature "django support" dev-python/django dev-python/pytz |
85 |
+ optfeature "pandas support" dev-python/pandas |
86 |
+ optfeature "pytest support" dev-python/pytest |
87 |
+} |