1 |
commit: 8c553e259f82e0e05404a92bac3ae2b7a47ed060 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 31 18:04:08 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 31 18:31:46 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c553e25 |
7 |
|
8 |
dev-python/hypothesis: Bump to 6.1.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-6.1.1.ebuild | 64 +++++++++++++++++++++++++++ |
14 |
2 files changed, 65 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest |
17 |
index 63bb602bca4..4bd16399751 100644 |
18 |
--- a/dev-python/hypothesis/Manifest |
19 |
+++ b/dev-python/hypothesis/Manifest |
20 |
@@ -5,3 +5,4 @@ DIST hypothesis-python-6.0.2.tar.gz 9104422 BLAKE2B 1f932e2e2c7f3b3f56863fecfeaf |
21 |
DIST hypothesis-python-6.0.3.tar.gz 9104754 BLAKE2B 46b713820790daa60b4a7d56bca4ebc72482e9d39b6b37c929b91eebb1f48324e56206f85de78c7744f65d54dd678075aa040f1a745e56a8db217ffc26f3ced2 SHA512 7762c6a1da52cf21f1fb7333cb6f7d302e825a9fe4ad13b85cf94f5f1b450410ed2bdbc40cff54a23629c758e8513d1a39767e0b415db61a07ff74489573a916 |
22 |
DIST hypothesis-python-6.0.4.tar.gz 9106652 BLAKE2B 4a35185605476d70ef6c768f4fe76c75341cfe18e7c0ba45e8c1c445f4f49d376bd580fd8b0910fc35b123e5f1756df0c4e848d79789b531bf5b35180980b3b9 SHA512 834b5c19760e9639baba0fcb3e5a09fb1d94c4ab763049e5f16df7fd8db357bc300041293b951a9078752fd05dd9cfd5b39fa45d78742e92ff77a17bb49d3f43 |
23 |
DIST hypothesis-python-6.1.0.tar.gz 9108138 BLAKE2B 30ac9e8b40fb073e15dc480b19b6d448c14c04b6b0e405720c05fa5f93532986e5956e27e28d966aad4378b7168d1a923bb28a87db87529d9995e526fa40e44b SHA512 897758e3bd6295dd8acf192a180a244277dc408dff851b7964878b3efbadf5c636961048cb8af89478e9ceceaafeb796526ca846355711f27dadc9c099517e44 |
24 |
+DIST hypothesis-python-6.1.1.tar.gz 9107792 BLAKE2B 50d3b284f0ab1b7c1a25fbf1488b8fea74c66aaac07d58e3271f187e54579011311ef3c20cf5525e84058382c516e6cf1495201e8b6fbd45fe28309a25fda0e0 SHA512 7d6ef548333b860dd868a9aa2a220191c237ac8e843cff835f423332fa561377ced29a9703cf0a49c76594a986048c1b1a1b8df5b38b2848410cfd7708168d58 |
25 |
|
26 |
diff --git a/dev-python/hypothesis/hypothesis-6.1.1.ebuild b/dev-python/hypothesis/hypothesis-6.1.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..973ce1a66b6 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/hypothesis/hypothesis-6.1.1.ebuild |
31 |
@@ -0,0 +1,64 @@ |
32 |
+# Copyright 1999-2021 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_{7..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="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" |
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 |
+ ' 'python*') |
62 |
+ ) |
63 |
+" |
64 |
+BDEPEND=" |
65 |
+ test? ( |
66 |
+ ${RDEPEND} |
67 |
+ dev-python/mock[${PYTHON_USEDEP}] |
68 |
+ dev-python/pexpect[${PYTHON_USEDEP}] |
69 |
+ <dev-python/pytest-6.2[${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 |
+ distutils_install_for_testing --via-root |
83 |
+ pytest -vv tests/cover tests/pytest tests/quality \ |
84 |
+ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" || |
85 |
+ die "Tests fail with ${EPYTHON}" |
86 |
+} |
87 |
+ |
88 |
+pkg_postinst() { |
89 |
+ optfeature "datetime support" dev-python/pytz |
90 |
+ optfeature "dateutil support" dev-python/python-dateutil |
91 |
+ optfeature "numpy support" dev-python/numpy |
92 |
+ optfeature "django support" dev-python/django dev-python/pytz |
93 |
+ optfeature "pandas support" dev-python/pandas |
94 |
+ optfeature "pytest support" dev-python/pytest |
95 |
+} |