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: Wed, 19 Jan 2022 22:59:46
Message-Id: 1642633178.9c21a98a63994c09e7e17ccafea74a503db91a82.mgorny@gentoo
1 commit: 9c21a98a63994c09e7e17ccafea74a503db91a82
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 19 22:32:25 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 19 22:59:38 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c21a98a
7
8 dev-python/hypothesis: Bump to 6.36.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.36.0.ebuild | 65 ++++++++++++++++++++++++++
14 2 files changed, 66 insertions(+)
15
16 diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
17 index f5b8f7c043db..a20f0581b759 100644
18 --- a/dev-python/hypothesis/Manifest
19 +++ b/dev-python/hypothesis/Manifest
20 @@ -5,3 +5,4 @@ DIST hypothesis-python-6.34.1.tar.gz 9178792 BLAKE2B 72cbb1b372fb23da8ecf4eb8355
21 DIST hypothesis-python-6.34.2.tar.gz 9178843 BLAKE2B 24bbc19ea5c207880d577a3c451f6e90c4b124a934aa1cd103c11ec77cbb5076d75e3860abd2b9bd2fc75640ba562b81d3fa038cc7752109625990e0ac0e1039 SHA512 a03233a2b84b1e009ad246663b0c7f6b56f2c04d08d69297ff50b02b8af292fdee37f877ca2f709e6ef64192d31e3d9bf18f78a6f5c92b8f03bf04ba398d063c
22 DIST hypothesis-python-6.35.0.tar.gz 9178905 BLAKE2B 7cb55da84b979d8a075361674bbfa00cfeb5276e0ae25c153794fd876d1f65c7a88c5cc16e8b0c085560be937be14a113ba4854b734808b592f3d7c0be30215f SHA512 b390272ac471b23d8de1414cb7e2fd9d814318bc1063e4ad2bb2d61ba3b3af0c92701fa7a737117dc894a71e8d0473f52c11caf70fbb35d0837a4927537daaf5
23 DIST hypothesis-python-6.35.1.tar.gz 9179056 BLAKE2B 3667ed7fe2a5402a3055941c44afe8e3e909381a0cbc1bec61cdcec18cb102796d283c737d5642ff6242fee4f0a2dc88774befe880a58f64bb4e183789b21e09 SHA512 839c9b2cf607f44fccf20c814a774889484f61a40a93e976f7bcb457dceac272bf6b775231fb36009e115181cf2089907bcad898f795e266d98ca218c5c4af28
24 +DIST hypothesis-python-6.36.0.tar.gz 9179303 BLAKE2B f7e1b7f4400f4e6acd15898a32630420b693dd41d432e0914b56469f7781e5ff4df2e2679be9af36bcfe65a618ddd5d8be9ff22b9df8b05af697960c6721a813 SHA512 afff635df30552aa8165a28e2dd02e01cd265e22793d788b8a7009f5d3f85fee6330423eed405f64a13d8749c852b81b3d21b4c48f3b3b3a3682e8cdd4cdf238
25
26 diff --git a/dev-python/hypothesis/hypothesis-6.36.0.ebuild b/dev-python/hypothesis/hypothesis-6.36.0.ebuild
27 new file mode 100644
28 index 000000000000..1cf6111cc060
29 --- /dev/null
30 +++ b/dev-python/hypothesis/hypothesis-6.36.0.ebuild
31 @@ -0,0 +1,65 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DISTUTILS_USE_PEP517=setuptools
38 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
39 +PYTHON_REQ_USE="threads(+),sqlite"
40 +
41 +inherit distutils-r1 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 ~m68k ~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 + ' python3_{8..9})
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 pytest
73 +
74 +python_prepare() {
75 + if ! use cli || ! has "${EPYTHON}" python3.{8..9}; then
76 + sed -i -e '/console_scripts/d' setup.py || die
77 + fi
78 +}
79 +
80 +python_test() {
81 + # subtests are broken by warnings from random plugins
82 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
83 + local -x PYTEST_PLUGINS=xdist.plugin,pytest_forked,_hypothesis_pytestplugin
84 +
85 + epytest tests/cover tests/pytest tests/quality \
86 + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
87 +}
88 +
89 +pkg_postinst() {
90 + optfeature "datetime support" dev-python/pytz
91 + optfeature "dateutil support" dev-python/python-dateutil
92 + optfeature "numpy support" dev-python/numpy
93 + optfeature "django support" dev-python/django dev-python/pytz
94 + optfeature "pandas support" dev-python/pandas
95 + optfeature "pytest support" dev-python/pytest
96 +}