1 |
commit: 36586ace46b5fd8a4dbb3ea3b8e1f866131dfce6 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 22 06:17:35 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 22 06:17:35 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36586ace |
7 |
|
8 |
dev-python/hypothesis: Bump to 6.15.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-6.15.0.ebuild | 67 ++++++++++++++++++++++++++ |
14 |
2 files changed, 68 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest |
17 |
index 7620ec10adb..fb61c587579 100644 |
18 |
--- a/dev-python/hypothesis/Manifest |
19 |
+++ b/dev-python/hypothesis/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST hypothesis-python-6.14.5.tar.gz 9135819 BLAKE2B 2e42949f81024038b901231a844 |
21 |
DIST hypothesis-python-6.14.7.tar.gz 9136527 BLAKE2B 46176df0ffac48d3bff68a83b03b316506236e8a89365c419d61d0e8dae98a54961da3715377475ba7ce89d9d989e63b75eed1473758896c13bc8c0937617b12 SHA512 bb04434893c7cf937c1f1fc733fc424b48e87ec00d3f650ad85b1749b37f18b3a4718c346739d9121b4461d46516ee1af934a34922cc6ec626defa5ffb1e531b |
22 |
DIST hypothesis-python-6.14.8.tar.gz 9137594 BLAKE2B 421c3fdb13e172bdb93cd15f625dd1fbae576ab37b48181eb82e6f1ebed92284a3c2ea4d0314f9dfd735f3ccd968465b28b94525614a7cb0834985f8cdae79df SHA512 3f99bf54e01a7d6945d898b8065b3241a1d9fc871adc9e3bec9cfe187e36651aee78eb57fa69e28405a668a0f784a5dc90acf213211d0c060a1e9a82de8e243e |
23 |
DIST hypothesis-python-6.14.9.tar.gz 9138640 BLAKE2B 3cda0edace7b3a1c373bdd61267013874fe78ae18aa7fda02759ac451f7e576614a61c3ce1d588e24afe4333f61680d89eb30f6f055e41fee91312c791b1af5d SHA512 a32d4f09ae6a44354d136164a517ea53c653fccb3e21a39ac63df78ebdf695c887f13749d2f310ac67863b6645a85dca73ef0bfab077aefe0486e445f6a85dce |
24 |
+DIST hypothesis-python-6.15.0.tar.gz 9138803 BLAKE2B 537d40d2f86b16730391e4f4f7fc692d882793b47854f1645eb587dddf41e37e27f74588c8fb8829e0b0ceb2b563f8f88006f8be6dd28c954be59ba76b81e8e6 SHA512 19b8b5d71156c08d77c11b6d675cca3df1a66beec493e2a52600e14c2d1444f42f58b55ed769f9d99c16dc6844da1843539b995bb972daa6bbd35480edc444ed |
25 |
|
26 |
diff --git a/dev-python/hypothesis/hypothesis-6.15.0.ebuild b/dev-python/hypothesis/hypothesis-6.15.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..5a04d107e65 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/hypothesis/hypothesis-6.15.0.ebuild |
31 |
@@ -0,0 +1,67 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
38 |
+PYTHON_REQ_USE="threads(+),sqlite" |
39 |
+ |
40 |
+inherit distutils-r1 multiprocessing optfeature |
41 |
+ |
42 |
+DESCRIPTION="A library for property based testing" |
43 |
+HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/" |
44 |
+SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz" |
45 |
+S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python" |
46 |
+ |
47 |
+LICENSE="MPL-2.0" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" |
50 |
+IUSE="cli" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] |
55 |
+ cli? ( |
56 |
+ $(python_gen_cond_dep ' |
57 |
+ dev-python/black[${PYTHON_USEDEP}] |
58 |
+ dev-python/click[${PYTHON_USEDEP}] |
59 |
+ ' python3_{7..9}) |
60 |
+ ) |
61 |
+" |
62 |
+BDEPEND=" |
63 |
+ test? ( |
64 |
+ dev-python/mock[${PYTHON_USEDEP}] |
65 |
+ dev-python/pexpect[${PYTHON_USEDEP}] |
66 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
67 |
+ !!<dev-python/typing-3.7.4.1 |
68 |
+ ) |
69 |
+" |
70 |
+ |
71 |
+distutils_enable_tests --install pytest |
72 |
+ |
73 |
+python_prepare() { |
74 |
+ if ! use cli || ! has "${EPYTHON}" python3.{7..9}; then |
75 |
+ sed -i -e '/console_scripts/d' setup.py || die |
76 |
+ fi |
77 |
+} |
78 |
+ |
79 |
+python_test() { |
80 |
+ # disable autoloading pytest-asyncio in nested pytest calls |
81 |
+ #local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 |
82 |
+ # since we disabled autoloading, load necessary plugins explicitly |
83 |
+ #local -x PYTEST_PLUGINS=xdist.plugin |
84 |
+ |
85 |
+ distutils_install_for_testing |
86 |
+ epytest tests/cover tests/pytest tests/quality \ |
87 |
+ -p no:pytest-describe \ |
88 |
+ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
89 |
+} |
90 |
+ |
91 |
+pkg_postinst() { |
92 |
+ optfeature "datetime support" dev-python/pytz |
93 |
+ optfeature "dateutil support" dev-python/python-dateutil |
94 |
+ optfeature "numpy support" dev-python/numpy |
95 |
+ optfeature "django support" dev-python/django dev-python/pytz |
96 |
+ optfeature "pandas support" dev-python/pandas |
97 |
+ optfeature "pytest support" dev-python/pytest |
98 |
+} |