1 |
commit: 6c470010d266aabe0c6106dd9e29d7437b70c609 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 15 06:06:08 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 15 06:46:20 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c470010 |
7 |
|
8 |
dev-python/hypothesis: Bump to 5.35.2 |
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.35.2.ebuild | 63 ++++++++++++++++++++++++++ |
14 |
2 files changed, 64 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest |
17 |
index 019fdd095c2..332328ad8da 100644 |
18 |
--- a/dev-python/hypothesis/Manifest |
19 |
+++ b/dev-python/hypothesis/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST hypothesis-python-4.57.1.tar.gz 9005030 BLAKE2B 3d318896cbe2d24fa6847e764a1 |
21 |
DIST hypothesis-python-5.24.4.tar.gz 9054743 BLAKE2B 5c64c86ed58d8f0e4a07390b1b1b5e405878b9632bf14233e0515ad9d98ec6ddcc57bf39be6b61f53739d34e393b3af64c0d362880019d29a649a9523a0204e3 SHA512 147f4fa47b54bf3ec4dfcebf2a6c98cee26ea6780244ef99e181bada65978375ca7731ed05cb98f1b92f7a44a357faae374d97d489ec6e2318ff94e526cd9a40 |
22 |
DIST hypothesis-python-5.29.4.tar.gz 9071060 BLAKE2B 0668f3c7859fae7024c15f693b1f56ce8d02d6f3b8187d24b2d84e38e7bdb73c0824d2b02cfecc6b40bdfbbb1c91c0aa83d40848c499a97ab7e9223aaa6c78d4 SHA512 9da4b487fd3c56540a20e2fbff635704f0720f422d8a398d0accd24a1fb9517476b0d29135b9113a96e8dc98fcfc31cc53215ad82cb727be54e4e77b44d4c8e4 |
23 |
DIST hypothesis-python-5.35.0.tar.gz 9081292 BLAKE2B 8f1d50d76f589103f7b734cea6008b3533d3c0d62f45ab95a71f079833cb20b766d398a1b9492d592a93156d097d58c14041caf609f035b547f2234cbef2d602 SHA512 e99ce4c2801341fc43c4290afb551bcae69e0747a6b98a633b284bce009cc18d978b75a23bf22dafb39c5020595159806d5627128577770be3aad72a022549a3 |
24 |
+DIST hypothesis-python-5.35.2.tar.gz 9082095 BLAKE2B 6d2d2f74519975455a6d73f5d006837f7f71d162c5fe84c33afe81c7a110ecd93d2643db5b1ed8b00aec212c5c311254dcfbd66ae5bd08b077335a3754c9e9b4 SHA512 f17b7783d689986703bc6755a7dc30e8bfd4977a128954481067780d14b1b3f4bbfb21751a607a215357b5d300ad4e06ce951b81059ac8638c84005d682e2398 |
25 |
|
26 |
diff --git a/dev-python/hypothesis/hypothesis-5.35.2.ebuild b/dev-python/hypothesis/hypothesis-5.35.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..c8d53477c0b |
29 |
--- /dev/null |
30 |
+++ b/dev-python/hypothesis/hypothesis-5.35.2.ebuild |
31 |
@@ -0,0 +1,63 @@ |
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 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="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~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..9}) |
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/pytest-xdist[${PYTHON_USEDEP}] |
71 |
+ !!<dev-python/typing-3.7.4.1 |
72 |
+ ) |
73 |
+" |
74 |
+ |
75 |
+python_prepare() { |
76 |
+ if ! use cli || [[ ${EPYTHON} != python* ]]; then |
77 |
+ sed -i -e '/console_scripts/d' setup.py || die |
78 |
+ fi |
79 |
+} |
80 |
+ |
81 |
+python_test() { |
82 |
+ pytest -vv tests/cover tests/pytest tests/quality \ |
83 |
+ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" || |
84 |
+ die "Tests fail with ${EPYTHON}" |
85 |
+} |
86 |
+ |
87 |
+pkg_postinst() { |
88 |
+ optfeature "datetime support" dev-python/pytz |
89 |
+ optfeature "dateutil support" dev-python/python-dateutil |
90 |
+ optfeature "numpy support" dev-python/numpy |
91 |
+ optfeature "django support" dev-python/django dev-python/pytz |
92 |
+ optfeature "pandas support" dev-python/pandas |
93 |
+ optfeature "pytest support" dev-python/pytest |
94 |
+} |