1 |
commit: 49e18ae74d9718282af36fd0845531f108b711ee |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 30 07:09:55 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 30 07:09:55 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49e18ae7 |
7 |
|
8 |
dev-python/hypothesis: Bump to 5.39.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.39.0.ebuild | 63 ++++++++++++++++++++++++++ |
14 |
2 files changed, 64 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest |
17 |
index 11011daad8d..8939c7500de 100644 |
18 |
--- a/dev-python/hypothesis/Manifest |
19 |
+++ b/dev-python/hypothesis/Manifest |
20 |
@@ -5,3 +5,4 @@ DIST hypothesis-python-5.37.4.tar.gz 9092324 BLAKE2B 95ea82c1a64eaa63f0dc662a9c3 |
21 |
DIST hypothesis-python-5.37.5.tar.gz 9092380 BLAKE2B b5bf9f5c5bb1002154ea6041c38b727e926ae65641a05ddd2bfe919fdb7b6457963ddcc5bf1d57a929c57a3912b15a13c52b4568708348f4f308146cf64caa61 SHA512 ddf2db9d8f9318b0b3ae872fdfebbc4ac8376a86816e7c9a0350738a68a4e3adbe41aaf19a8f54471f551542f3252172cc34f5bc140483989ef8c04c5735f044 |
22 |
DIST hypothesis-python-5.38.0.tar.gz 9092764 BLAKE2B ec805c3df17af88e122e9a462c73768b67d420172d72c088add8056b8de64606a8e6c01f82a0ca4fd05520444482e10b488b4ccf2b78b951288c4e1827e1ce12 SHA512 2a4e57ace3c6487598353bd40a9295d8dd05c6b18493d61674bbb403a4bbd863c43af683b59da990cc5add5dedc789462337140c4d2ed7d2c16567fb254261ff |
23 |
DIST hypothesis-python-5.38.1.tar.gz 9093201 BLAKE2B 093b847524ca1a4a7ec4172585d8cbdc63820165f367a7f5782c0e94ed190f9f271fe0d76f570a5ab95d794951260b93cb4114ac090b56bcdf904e988c00c4c5 SHA512 26db08680464710246bfa3a3dfddbe41e9480e4ce2a50bf75597aa96efe8976d3b7bcf639e2efe9a8bfec64bdfef3fec14093e14cbe8db3f1cf5dafe813a91a0 |
24 |
+DIST hypothesis-python-5.39.0.tar.gz 9094029 BLAKE2B 32f98b9a57993fe95d894625ac2ab44eb52ed1fb301566ad01064a2beb37ae768484797220386c55e5c72f4022819c5be9abaf68b57bfd3385860d8bed9baaaa SHA512 fd683781ea7bf0806cf6f15d0065808e5a83410b9860c23803f9f18ea7be1e372a75221116e1f661f189870141de4b8585029cfcdca5d6140a5140226578a610 |
25 |
|
26 |
diff --git a/dev-python/hypothesis/hypothesis-5.39.0.ebuild b/dev-python/hypothesis/hypothesis-5.39.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..b817839fd0a |
29 |
--- /dev/null |
30 |
+++ b/dev-python/hypothesis/hypothesis-5.39.0.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="~alpha ~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 |
+} |