Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/hypothesis/, dev-python/hypothesis/files/
Date: Wed, 10 Oct 2018 22:02:48
Message-Id: 1539208909.8831dbe8568d042c8ebd4ebe7fc8042103728b77.monsieurp@gentoo
1 commit: 8831dbe8568d042c8ebd4ebe7fc8042103728b77
2 Author: Michael Seifert <m.seifert <AT> digitalernachschub <DOT> de>
3 AuthorDate: Tue Oct 9 06:17:46 2018 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 10 22:01:49 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8831dbe8
7
8 dev-python/hypothesis: Version bump to 3.74.3.
9
10 Closes: https://bugs.gentoo.org/668108
11 Closes: https://github.com/gentoo/gentoo/pull/10112
12 Signed-off-by: Michael Seifert <m.seifert <AT> digitalernachschub.de>
13 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
14
15 dev-python/hypothesis/Manifest | 1 +
16 .../files/hypothesis-3.74.3-no-werror.patch | 12 +++++
17 dev-python/hypothesis/hypothesis-3.74.3.ebuild | 51 ++++++++++++++++++++++
18 3 files changed, 64 insertions(+)
19
20 diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
21 index cd6a22e9e0c..32ea03e1378 100644
22 --- a/dev-python/hypothesis/Manifest
23 +++ b/dev-python/hypothesis/Manifest
24 @@ -1,2 +1,3 @@
25 DIST hypothesis-3.6.0.tar.gz 73586 BLAKE2B b0ec133e8c71f752114211061155c15a7d536e771ba85eab6489440b2063d3083018bf8502d9e9dbc73105ee5f03060e3189e64574a3dfa052b091040e7e7915 SHA512 cb885628e5c38ab9312cfb177ebc3c014617d21031737f5fba343ba485c1b8ff82b1302e7bc1d3e79192bfd8324fd0501498c968f3ac8343829f8965f6354389
26 DIST hypothesis-python-3.59.1.tar.gz 500529 BLAKE2B 5c171045e363f2337d7ca30797b9fc7f96430c805dd4b3ec78fe927247d2c2ba4a216789a82f1e956b89d66c5ecdb2050a5f93467f2d557a05d1d48507fc06db SHA512 c3aad4cc54152963806e09af5f351e60e30cd64ad48ba3d922451b10dbb1747ea3e5d432ebc611dcb0646687d7e8755051b967304e74798d091be0b2901c832f
27 +DIST hypothesis-python-3.74.3.tar.gz 552616 BLAKE2B e19a0991e7ae2fa6208c81d336cc66e3392bb78663f567fe28b570a1463a5359ccf713776f1f9cbd19a27a53b9a71a5be6eedfa05599fa12c047c373aa339592 SHA512 f4927d6e908a9222fa06f82ad6e4cf90c62a0a3d0c7632c17ee57a3705239901fcb5dbbcfca402c153bf2bea9dde0e51c852d2024ed5a236888327963fe13a3e
28
29 diff --git a/dev-python/hypothesis/files/hypothesis-3.74.3-no-werror.patch b/dev-python/hypothesis/files/hypothesis-3.74.3-no-werror.patch
30 new file mode 100644
31 index 00000000000..1e09133c6fb
32 --- /dev/null
33 +++ b/dev-python/hypothesis/files/hypothesis-3.74.3-no-werror.patch
34 @@ -0,0 +1,12 @@
35 +--- hypothesis-python/tests/common/setup.py 2018-10-09 15:41:19.106029968 +0200
36 ++++ hypothesis-python/tests/common/setup.py 2018-10-09 15:42:09.464413825 +0200
37 +@@ -33,6 +33,9 @@
38 + filterwarnings('ignore', category=ImportWarning)
39 + filterwarnings('ignore', category=FutureWarning, module='pandas._version')
40 +
41 ++ # Fixed in recent versions but allowed by pytest=3.0.0; see #1630
42 ++ filterwarnings('ignore', category=DeprecationWarning, module='pluggy')
43 ++
44 + # See https://github.com/numpy/numpy/pull/432
45 + filterwarnings('ignore', message='numpy.dtype size changed')
46 + filterwarnings('ignore', message='numpy.ufunc size changed')
47
48 diff --git a/dev-python/hypothesis/hypothesis-3.74.3.ebuild b/dev-python/hypothesis/hypothesis-3.74.3.ebuild
49 new file mode 100644
50 index 00000000000..e213b96fb5f
51 --- /dev/null
52 +++ b/dev-python/hypothesis/hypothesis-3.74.3.ebuild
53 @@ -0,0 +1,51 @@
54 +# Copyright 1999-2018 Gentoo Authors
55 +# Distributed under the terms of the GNU General Public License v2
56 +
57 +EAPI=7
58 +
59 +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy{,3} )
60 +PYTHON_REQ_USE="threads(+),sqlite"
61 +
62 +inherit distutils-r1 eutils
63 +
64 +DESCRIPTION="A library for property based testing"
65 +HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/"
66 +SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz"
67 +
68 +LICENSE="MPL-2.0"
69 +SLOT="0"
70 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd"
71 +IUSE="test"
72 +
73 +CDEPEND="
74 + >=dev-python/attrs-16.0.0[${PYTHON_USEDEP}]
75 + $(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' 'python2*' pypy)
76 +"
77 +RDEPEND="${CDEPEND}"
78 +DEPEND="${CDEPEND}
79 + dev-python/setuptools[${PYTHON_USEDEP}]
80 + test? (
81 + dev-python/flaky[${PYTHON_USEDEP}]
82 + dev-python/mock[${PYTHON_USEDEP}]
83 + dev-python/pytest[${PYTHON_USEDEP}]
84 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
85 + )
86 +"
87 +
88 +S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python"
89 +
90 +# See https://github.com/HypothesisWorks/hypothesis/issues/1630
91 +PATCHES=( ${FILESDIR}/${P}-no-werror.patch )
92 +
93 +python_test() {
94 + pytest tests/cover/test_testdecorators.py || die "Tests fail with ${EPYTHON}"
95 +}
96 +
97 +pkg_postinst() {
98 + optfeature "datetime support" dev-python/pytz
99 + optfeature "dateutil support" dev-python/python-dateutil
100 + optfeature "numpy support" dev-python/numpy
101 + optfeature "django support" dev-python/django dev-python/pytz
102 + optfeature "pandas support" dev-python/pandas
103 + optfeature "pytest support" dev-python/pytest
104 +}