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, 10 Sep 2021 07:15:00
Message-Id: 1631258084.117a521cacc6d697aa4aa81eff0327ff1fe00dd1.mgorny@gentoo
1 commit: 117a521cacc6d697aa4aa81eff0327ff1fe00dd1
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 10 05:55:33 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 10 07:14:44 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=117a521c
7
8 dev-python/hypothesis: Bump to 6.20.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.20.1.ebuild | 62 ++++++++++++++++++++++++++
14 2 files changed, 63 insertions(+)
15
16 diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
17 index 133edcf346e..71f3438cadf 100644
18 --- a/dev-python/hypothesis/Manifest
19 +++ b/dev-python/hypothesis/Manifest
20 @@ -4,3 +4,4 @@ DIST hypothesis-python-6.17.4.tar.gz 9144209 BLAKE2B b110e355b34f386c51e9edeb258
21 DIST hypothesis-python-6.18.0.tar.gz 9145660 BLAKE2B 6fb47aeb134363e50944d08f0658245d9cc5190260e56cc16c394499df0bcf3739fd69c22bcfce6f3b290a1ecd9bdc8ac6bfd7c5f2efd4b00694b81d7dba062d SHA512 069deaa91b7dc7244c8fccb046e384c60009365418dfb7f76ed75428446a731ec860613201d0657c2c8b3b29e4fce3c403a93aa082f48b072471f919b7a1af5a
22 DIST hypothesis-python-6.19.0.tar.gz 9146087 BLAKE2B 11cf1e76735f2d57ee793c131a055c0e349bf7a39b072ac33914bcc371d44a607866ec617d2f955779fe99922f968b8da571fea87c45db72583e3ea2026000a5 SHA512 b641938c6f9b5603bb7b72ba1106da16bdcd0528de34317afdc4099bbfa1bfec90e76fbf14dc7cfc773fb02c3fa3b4bcfeea7f3788884cbefb51751f02879f9c
23 DIST hypothesis-python-6.20.0.tar.gz 9146238 BLAKE2B 88009c7369209f8781644a975587d757ecf83e9e84e650fd2f8e88b5e4e1d078dd0639e49a9055c4390c0aba96a661561ff5858bf628036d097c614b7d9fc45a SHA512 6c139c78b75c5b8408345d654e6d638f4f2b0f1567bcb05c430e396d3dbf40fde7e3f6a6af4eea75b2387d395e8ee2a5eb11eabd3183c4eff0a35979aed1bcba
24 +DIST hypothesis-python-6.20.1.tar.gz 9146416 BLAKE2B ae3e10ffe2853009b8d698e0eae391e05632ba1a3d889dbfb498b8f46c18ec16477daefa9052dc6711f3239f9e83ffc7d52c6ad0c554492a00a55417b583afe7 SHA512 8d23bd0311cd8e81d7fd3851f4a72cc92bea4a07943475d8be9bac9dc9d5096f0d7d5e8ed8b14e64dbdb3c49b7d2c7ecc8d85dfe30d5e6f9f0ed96570ce4ddb0
25
26 diff --git a/dev-python/hypothesis/hypothesis-6.20.1.ebuild b/dev-python/hypothesis/hypothesis-6.20.1.ebuild
27 new file mode 100644
28 index 00000000000..119bf66a091
29 --- /dev/null
30 +++ b/dev-python/hypothesis/hypothesis-6.20.1.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=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 + distutils_install_for_testing
81 + epytest tests/cover tests/pytest tests/quality \
82 + -p no:pytest-describe \
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 +}