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: Sat, 06 Nov 2021 10:59:13
Message-Id: 1636196340.aca60ee24d4df28a76c4bd3464e1f490e7708d71.mgorny@gentoo
1 commit: aca60ee24d4df28a76c4bd3464e1f490e7708d71
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 6 08:25:57 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 6 10:59:00 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aca60ee2
7
8 dev-python/hypothesis: Bump to 6.24.2
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.24.2.ebuild | 62 ++++++++++++++++++++++++++
14 2 files changed, 63 insertions(+)
15
16 diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
17 index 1c128c496f7..90230e1dd71 100644
18 --- a/dev-python/hypothesis/Manifest
19 +++ b/dev-python/hypothesis/Manifest
20 @@ -3,3 +3,4 @@ DIST hypothesis-python-6.23.2.tar.gz 9167318 BLAKE2B 0a1ccf0235c64dd69705e48f67c
21 DIST hypothesis-python-6.23.4.tar.gz 9167755 BLAKE2B c953e54abf704f1e4d8ab74abb046c19a9bd7e1f32ae7a17133d2b042ce5a06063999249284e0afa2d650575b69bca646e52bfdb3648ac2972077f4d74b82557 SHA512 9d178545bb6c6cb8ecebbaeefea16b5d7390691536b724742b94a94d881ccc4b2f1b82f865fd7860b0f9b688c19aa60929aabf2e7ba8ce255ee5bbf79ed873ab
22 DIST hypothesis-python-6.24.0.tar.gz 9168076 BLAKE2B 550b42c39712f47c74d935b24a5bba98a50ac38b839d94a487a655ce1938d382a30b443107deadaf2b97fb89ea8f53df5aaceaabf23e0f8e221a45120163cb91 SHA512 2bc815876a295b366c4b167e7e13bfe11683b0d0111263f6129ab0ef441151554298c43bf1caa4345eff2d7e9a11bd63450e7b1bf00f8ece4dd49b3f4469defa
23 DIST hypothesis-python-6.24.1.tar.gz 9168432 BLAKE2B 4d8e548cd001cd279076990034716692983b799e81063e377fa3f5636671d2bceba718f7ba05d97843968610d2c0d444ad7bb00a774f59aad9b1f17210222001 SHA512 ae321f386be0b9e5b79630b98fc14a24ba3c9285ec9bab880c52fe462800a952bfff07a398199080a59c6e7c32f0700a6f1f36692bb6f3d332cb817441ff5d6f
24 +DIST hypothesis-python-6.24.2.tar.gz 9168397 BLAKE2B 87070841a01c7c9de79b5d786867024873f7de186bbee01bba708e783fd1268523b2e0398a055c92b782f27d0f67679bf5852bd49371932d277726517d12bd91 SHA512 9e4ee194fe561f8a39a26ab63cad4b6f093b2fcb56d02a5adfc4bdee1d7ccf55e6712d1af41d17155c6e88ecc75e6f191cf2761c2d71c2c052d7e8259cff0326
25
26 diff --git a/dev-python/hypothesis/hypothesis-6.24.2.ebuild b/dev-python/hypothesis/hypothesis-6.24.2.ebuild
27 new file mode 100644
28 index 00000000000..119bf66a091
29 --- /dev/null
30 +++ b/dev-python/hypothesis/hypothesis-6.24.2.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 +}