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, 30 Nov 2019 07:34:49
Message-Id: 1575099280.def7b44ab87dfc3187c3d04c4e5e215bf8a19f88.mgorny@gentoo
1 commit: def7b44ab87dfc3187c3d04c4e5e215bf8a19f88
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 30 07:13:51 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 30 07:34:40 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=def7b44a
7
8 dev-python/hypothesis: Bump to 4.50.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-4.50.2.ebuild | 58 ++++++++++++++++++++++++++
14 2 files changed, 59 insertions(+)
15
16 diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
17 index 64e7af07845..f5bdbba5872 100644
18 --- a/dev-python/hypothesis/Manifest
19 +++ b/dev-python/hypothesis/Manifest
20 @@ -4,3 +4,4 @@ DIST hypothesis-python-4.15.0.tar.gz 1175925 BLAKE2B f3e3888b3f4e542d567bdaad258
21 DIST hypothesis-python-4.44.2.tar.gz 3240386 BLAKE2B 3fe3295ba1f7401e1fb74af894d91eda525f8ef51eb893f1f8e5224cead8572f3c06f6a4bb345c123e56ed06d0676c85dc4477a80e54480baa6bd9f5f2bc069e SHA512 bebc5da337fa74a75d08cb57531c2f6b8ba1ab16d1a3d9be8348cd56ada1ab25a34e3b812a4aa71bf172bc97ebc8df0accdad37466f9162c3f8f2a8edbea9da9
22 DIST hypothesis-python-4.47.5.tar.gz 6805022 BLAKE2B 737a558c794f3ac428bef4b38858d47fddba613ce37eb9a9554afa3c189776e9172965dd31f8497747ac13b2ab1d34ee6de8671646972e71b82c5260db489b9a SHA512 9b6920181dca75b9e551ae5e598101f35cfc26e9e3a1b20cab652c151bc6355413d0c9602d3242fb23f808ab00335793009df938d55ee19a6af1ce2a8b085e3c
23 DIST hypothesis-python-4.50.1.tar.gz 6811489 BLAKE2B 26efeb6b648f494e5d6c7b36f6c32c92bb7bf6ae0ae776d39d9e4a815122cb3832fc8b035823b7e11de41afa0b529b9ed38ee63b0a3cf0aafa3bded50fc04abb SHA512 b6d2799b2ab8e5809f9ac7bb910bd6844c853a50e1bdacb77afc4c3a09631cd626036dd4edf3b1e211bec4982feeb07c2273ad1a4029b737dc188b0d7c5a3beb
24 +DIST hypothesis-python-4.50.2.tar.gz 6812169 BLAKE2B bcdba296b76d8fad64d2f3fcb23ff7452f558b1b47f1924048395c34f2dc49bd2525a3363a35e0013c8762954b681f96c3309eea3f64b276c13893d3ce40b564 SHA512 cd8a0f62caab16544abf923a43c411dea8abf1e0ed5e8ce18cf574959bbc20c31245b3022def80b0a08f234933cbc354804308942cb575a652a6b36814b58c59
25
26 diff --git a/dev-python/hypothesis/hypothesis-4.50.2.ebuild b/dev-python/hypothesis/hypothesis-4.50.2.ebuild
27 new file mode 100644
28 index 00000000000..3def9e85121
29 --- /dev/null
30 +++ b/dev-python/hypothesis/hypothesis-4.50.2.ebuild
31 @@ -0,0 +1,58 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} )
38 +PYTHON_REQ_USE="threads(+),sqlite"
39 +
40 +inherit distutils-r1 eutils
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 +
46 +LICENSE="MPL-2.0"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
49 +IUSE="test"
50 +RESTRICT="!test? ( test )"
51 +
52 +RDEPEND="
53 + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
54 + $(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' 'python2*' pypy)
55 +"
56 +BDEPEND="
57 + dev-python/setuptools[${PYTHON_USEDEP}]
58 + test? (
59 + ${RDEPEND}
60 + dev-python/mock[${PYTHON_USEDEP}]
61 + dev-python/pexpect[${PYTHON_USEDEP}]
62 + >=dev-python/pytest-4.3[${PYTHON_USEDEP}]
63 + !!<dev-python/typing-3.7.4.1
64 + )
65 +"
66 +
67 +S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python"
68 +
69 +src_prepare() {
70 + # avoid pytest-xdist dep for one test
71 + sed -i -e 's:test_prints_statistics_given_option_under_xdist:_&:' \
72 + tests/pytest/test_statistics.py || die
73 + distutils-r1_src_prepare
74 +}
75 +
76 +python_test() {
77 + local pyver=$(python_is_python3 && echo 3 || echo 2)
78 + pytest -vv tests/cover tests/pytest tests/py${pyver} ||
79 + die "Tests fail with ${EPYTHON}"
80 +}
81 +
82 +pkg_postinst() {
83 + optfeature "datetime support" dev-python/pytz
84 + optfeature "dateutil support" dev-python/python-dateutil
85 + optfeature "numpy support" dev-python/numpy
86 + optfeature "django support" dev-python/django dev-python/pytz
87 + optfeature "pandas support" dev-python/pandas
88 + optfeature "pytest support" dev-python/pytest
89 +}