Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/hypothesis/
Date: Fri, 02 Apr 2021 08:51:35
Message-Id: 1617353484.954293ee2150a5c3b5401efe26d47aff75450980.mgorny@gentoo
1 commit: 954293ee2150a5c3b5401efe26d47aff75450980
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 2 08:01:02 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 2 08:51:24 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=954293ee
7
8 dev-python/hypothesis: Bump to 6.8.4
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.8.4.ebuild | 62 +++++++++++++++++++++++++++
14 2 files changed, 63 insertions(+)
15
16 diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
17 index e07172618b5..6e6905e38ce 100644
18 --- a/dev-python/hypothesis/Manifest
19 +++ b/dev-python/hypothesis/Manifest
20 @@ -2,3 +2,4 @@ DIST hypothesis-python-6.3.4.tar.gz 9112374 BLAKE2B 78867f0ff142d6059a20c437c3fa
21 DIST hypothesis-python-6.6.0.tar.gz 9117847 BLAKE2B bb88ebee9db53f1c5753730d04e5dfe6a39ac4c5f7d534778b22b813ba188a55de6ad8a34f611f7863d1c3287be39ed7e10981e9d6ed8d8dd106688f154c3a49 SHA512 a446b4a11c6ee013225bfcd58e26efc6c9d867545d9bcf90a19468cb01fc5e2c5a7280ff9a80d4a1adbfe06dd155df6152941d5f53869d85e1d259e68a33a5e2
22 DIST hypothesis-python-6.8.1.tar.gz 9119495 BLAKE2B 4d98e30a04f652af79dd49e921b856124a312b63f087a6fd200282e9b0a0cd6fcad1a42a6008406bc347f21bf9cd6c5ff2db79d013987281f59365bd9d91550d SHA512 2f25e994438479b5faa15b2038146ab385445bf2722b0951ff55f324b074248d7322c4c6f3e9c659c18d0aa94150eea4c6567a7ac24debf2de4b32bab37a4dcc
23 DIST hypothesis-python-6.8.3.tar.gz 9120421 BLAKE2B 9511f63aafe499316750ec8a993726d4e8db87b42fb772cf79cde1be18b23e99f55c1a2638f3ee7afadae5f323792322cf87b747ac428146fea2abc92793f8f5 SHA512 83660978dc4ff49a04d7167994821a18c769039c49dcbc515b28591651bb9ab2121e3a7267cb20281efade85003a5808e0898fda5dfe1e4be563a03d4688085c
24 +DIST hypothesis-python-6.8.4.tar.gz 9120762 BLAKE2B 00c6348c924252207cfca30babb2b281b70067478892ec154ef6fa40f87d5a1a4d7d4047eb2cb9f3e6b8cadee240f3475c2dc912f393553b35b0a6c71cf0ae4b SHA512 bb1c14aedf51bee4394c6b27d9c92d5c13b1d1e690608efff0cb68ae3ae7e8a078c99c10d0f1c4a6977430c8ebefea083af1be28f1535f93e320579614c9f46c
25
26 diff --git a/dev-python/hypothesis/hypothesis-6.8.4.ebuild b/dev-python/hypothesis/hypothesis-6.8.4.ebuild
27 new file mode 100644
28 index 00000000000..75d02aad2bd
29 --- /dev/null
30 +++ b/dev-python/hypothesis/hypothesis-6.8.4.ebuild
31 @@ -0,0 +1,62 @@
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"
52 +
53 +RDEPEND="
54 + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
55 + >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}]
56 + cli? (
57 + $(python_gen_cond_dep '
58 + dev-python/black[${PYTHON_USEDEP}]
59 + dev-python/click[${PYTHON_USEDEP}]
60 + ' 'python*')
61 + )
62 +"
63 +BDEPEND="
64 + test? (
65 + dev-python/mock[${PYTHON_USEDEP}]
66 + dev-python/pexpect[${PYTHON_USEDEP}]
67 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
68 + !!<dev-python/typing-3.7.4.1
69 + )
70 +"
71 +
72 +distutils_enable_tests --install pytest
73 +
74 +python_prepare() {
75 + if ! use cli || [[ ${EPYTHON} != python* ]]; then
76 + sed -i -e '/console_scripts/d' setup.py || die
77 + fi
78 +}
79 +
80 +python_test() {
81 + distutils_install_for_testing
82 + epytest tests/cover tests/pytest tests/quality \
83 + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
84 +}
85 +
86 +pkg_postinst() {
87 + optfeature "datetime support" dev-python/pytz
88 + optfeature "dateutil support" dev-python/python-dateutil
89 + optfeature "numpy support" dev-python/numpy
90 + optfeature "django support" dev-python/django dev-python/pytz
91 + optfeature "pandas support" dev-python/pandas
92 + optfeature "pytest support" dev-python/pytest
93 +}