1 |
commit: d01e4eb342b91eff2acb44f172afc69ba0470e1f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 12 22:48:18 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 12 22:48:18 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d01e4eb3 |
7 |
|
8 |
dev-python/hypothesis: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/hypothesis/Manifest | 3 - |
13 |
.../hypothesis/files/hypothesis-6.10.1-py310.patch | 75 ---------------------- |
14 |
dev-python/hypothesis/hypothesis-6.10.1-r1.ebuild | 65 ------------------- |
15 |
dev-python/hypothesis/hypothesis-6.13.14-r1.ebuild | 62 ------------------ |
16 |
dev-python/hypothesis/hypothesis-6.14.1.ebuild | 62 ------------------ |
17 |
5 files changed, 267 deletions(-) |
18 |
|
19 |
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest |
20 |
index ddb7cc423a3..66ba4087162 100644 |
21 |
--- a/dev-python/hypothesis/Manifest |
22 |
+++ b/dev-python/hypothesis/Manifest |
23 |
@@ -1,5 +1,2 @@ |
24 |
-DIST hypothesis-python-6.10.1.tar.gz 9126246 BLAKE2B cc8cb3436d1de5d3d65a13cb5edefdbaae8bf9daed296eea9111ac46c002c34f43119f10b2ab1f45c5cbca5fe46d00738676290eb0e8437f2c10b5926d9e0915 SHA512 586b7f380cb850089f7d5321f11da92ef4a9b80e2ea925103e29c1f6c6c9da0a2a899a1a45ce77e0a40073f147561bc4fcbd5cb2ce77a9c0c65f6f64dfe4b716 |
25 |
-DIST hypothesis-python-6.13.14.tar.gz 9134690 BLAKE2B 821fa0baa47dd896fc5ec61d0a96fec3da225dbc35306e6cf684641262c9ff0b714ca95aff69daca4bda551033a67d90b411f0cc2abff8edd41e5d749939344f SHA512 74397fd77e6e70df918e0fa605180e2bfd509fb26ef8b4a86020524611a315950073c3babd65bb2d2ff65d39e027bc52da88c0125f422cc2493076398e733853 |
26 |
DIST hypothesis-python-6.14.0.tar.gz 9135056 BLAKE2B 47d1efcee5e1c4037f1a20f08e3bc873fc143a2182bbde07e897812622c4d68923f78ac356bd97ef541566a27a874705eb2438747daaebe84f95fc2a2262bac1 SHA512 f7821449d3bf7f3656b52dad09027e40ea4af1779fcc7c0b995dac55843953fdab3f2ba69eb1b8de8258616f49cf8e5098c6a222d01071916c6f0c9fe184c80b |
27 |
-DIST hypothesis-python-6.14.1.tar.gz 9135154 BLAKE2B 0fa62cf4b512acf433a94edd14b2bc4c2c86cdbcc95e4a2760a1914e85f1149d9a5db6b22222c4954d2db109d3bff877ca0e5e8ec6842ff5b3c794a211ea9b57 SHA512 b84776e2bfff130c4db7582defbe9bc55183d624b45defffebdc954ca8e1dda1dec78f921e1bc7839a1167c37bce693711cd500da547dc6f2a8fa610c0bd3540 |
28 |
DIST hypothesis-python-6.14.2.tar.gz 9135496 BLAKE2B f77f0668c4d0c2f5a952e06a40ae7898631804d3406c9711eb30a4e5a11e73ba2772be3cb437aacea2a75cd65f688a2485b98885c19cf743020900b0cf70f08c SHA512 e495e1c471fd4b185e23326700e85bf90635fcc8bf316c758c3285803ff0f7ad0269351b3a7631033495bb6498a8f19cb8661c55248ec5e14ff2a09e0c3af3c1 |
29 |
|
30 |
diff --git a/dev-python/hypothesis/files/hypothesis-6.10.1-py310.patch b/dev-python/hypothesis/files/hypothesis-6.10.1-py310.patch |
31 |
deleted file mode 100644 |
32 |
index f81186a46e6..00000000000 |
33 |
--- a/dev-python/hypothesis/files/hypothesis-6.10.1-py310.patch |
34 |
+++ /dev/null |
35 |
@@ -1,75 +0,0 @@ |
36 |
-From 27ee073728e70e930118a36ffa4f8123ce363099 Mon Sep 17 00:00:00 2001 |
37 |
-From: Zac-HD <zac.hatfield.dodds@×××××.com> |
38 |
-Date: Wed, 5 May 2021 13:01:21 +1000 |
39 |
-Subject: [PATCH] Test on 3.10-dev again |
40 |
- |
41 |
-now that pytest has been fixed |
42 |
---- |
43 |
- tests/cover/test_annotations.py | 4 +--- |
44 |
- tests/cover/test_lookup.py | 7 +------ |
45 |
- tests/cover/test_lookup_py38.py | 2 -- |
46 |
- 4 files changed, 3 insertions(+), 12 deletions(-) |
47 |
- |
48 |
-diff --git a/tests/cover/test_annotations.py b/tests/cover/test_annotations.py |
49 |
-index 564339d39..95ebea3c5 100644 |
50 |
---- a/tests/cover/test_annotations.py |
51 |
-+++ b/tests/cover/test_annotations.py |
52 |
-@@ -13,7 +13,6 @@ |
53 |
- # |
54 |
- # END HEADER |
55 |
- |
56 |
--import sys |
57 |
- from inspect import getfullargspec |
58 |
- |
59 |
- import attr |
60 |
-@@ -116,8 +115,7 @@ def test_composite_edits_annotations(): |
61 |
- @pytest.mark.parametrize("nargs", [1, 2, 3]) |
62 |
- def test_given_edits_annotations(nargs): |
63 |
- spec_given = getfullargspec(given(*(nargs * [st.none()]))(pointless_composite)) |
64 |
-- expected = None if sys.version_info[:2] < (3, 10) else type(None) |
65 |
-- assert spec_given.annotations.pop("return") == expected |
66 |
-+ assert spec_given.annotations.pop("return") is None |
67 |
- assert len(spec_given.annotations) == 3 - nargs |
68 |
- |
69 |
- |
70 |
-diff --git a/tests/cover/test_lookup.py b/tests/cover/test_lookup.py |
71 |
-index b74eccc62..33cb78050 100644 |
72 |
---- a/tests/cover/test_lookup.py |
73 |
-+++ b/tests/cover/test_lookup.py |
74 |
-@@ -756,12 +756,7 @@ def test_compat_get_type_hints_aware_of_None_default(): |
75 |
- find_any(strategy, lambda x: x.a is not None) |
76 |
- |
77 |
- assert typing.get_type_hints(constructor)["a"] == typing.Optional[str] |
78 |
-- annotation = inspect.signature(constructor).parameters["a"].annotation |
79 |
-- assert annotation == str or ( |
80 |
-- # See https://bugs.python.org/issue43006 |
81 |
-- annotation == typing.Optional[str] |
82 |
-- and sys.version_info[:2] >= (3, 10) |
83 |
-- ) |
84 |
-+ assert inspect.signature(constructor).parameters["a"].annotation == str |
85 |
- |
86 |
- |
87 |
- _ValueType = typing.TypeVar("_ValueType") |
88 |
-diff --git a/tests/cover/test_lookup_py38.py b/tests/cover/test_lookup_py38.py |
89 |
-index 6a68254a7..db11777fe 100644 |
90 |
---- a/tests/cover/test_lookup_py38.py |
91 |
-+++ b/tests/cover/test_lookup_py38.py |
92 |
-@@ -14,7 +14,6 @@ |
93 |
- # END HEADER |
94 |
- |
95 |
- import dataclasses |
96 |
--import sys |
97 |
- import typing |
98 |
- |
99 |
- import pytest |
100 |
-@@ -103,7 +102,6 @@ class NestedDict(typing.TypedDict): |
101 |
- inner: A |
102 |
- |
103 |
- |
104 |
--@×××××××××××.skipif(sys.version_info[:2] >= (3, 10), reason="see issue #2897") |
105 |
- @given(from_type(NestedDict)) |
106 |
- def test_typeddict_with_nested_value(value): |
107 |
- assert type(value) == dict |
108 |
--- |
109 |
-2.31.1 |
110 |
- |
111 |
|
112 |
diff --git a/dev-python/hypothesis/hypothesis-6.10.1-r1.ebuild b/dev-python/hypothesis/hypothesis-6.10.1-r1.ebuild |
113 |
deleted file mode 100644 |
114 |
index b7536f7f4da..00000000000 |
115 |
--- a/dev-python/hypothesis/hypothesis-6.10.1-r1.ebuild |
116 |
+++ /dev/null |
117 |
@@ -1,65 +0,0 @@ |
118 |
-# Copyright 1999-2021 Gentoo Authors |
119 |
-# Distributed under the terms of the GNU General Public License v2 |
120 |
- |
121 |
-EAPI=7 |
122 |
- |
123 |
-PYTHON_COMPAT=( python3_{7..10} pypy3 ) |
124 |
-PYTHON_REQ_USE="threads(+),sqlite" |
125 |
- |
126 |
-inherit distutils-r1 multiprocessing optfeature |
127 |
- |
128 |
-DESCRIPTION="A library for property based testing" |
129 |
-HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/" |
130 |
-SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz" |
131 |
-S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python" |
132 |
- |
133 |
-LICENSE="MPL-2.0" |
134 |
-SLOT="0" |
135 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos" |
136 |
-IUSE="cli" |
137 |
- |
138 |
-RDEPEND=" |
139 |
- >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] |
140 |
- >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] |
141 |
- cli? ( |
142 |
- $(python_gen_cond_dep ' |
143 |
- dev-python/black[${PYTHON_USEDEP}] |
144 |
- dev-python/click[${PYTHON_USEDEP}] |
145 |
- ' python3_{7..9}) |
146 |
- ) |
147 |
-" |
148 |
-BDEPEND=" |
149 |
- test? ( |
150 |
- dev-python/mock[${PYTHON_USEDEP}] |
151 |
- dev-python/pexpect[${PYTHON_USEDEP}] |
152 |
- dev-python/pytest-xdist[${PYTHON_USEDEP}] |
153 |
- !!<dev-python/typing-3.7.4.1 |
154 |
- ) |
155 |
-" |
156 |
- |
157 |
-distutils_enable_tests --install pytest |
158 |
- |
159 |
-PATCHES=( |
160 |
- "${FILESDIR}"/${P}-py310.patch |
161 |
-) |
162 |
- |
163 |
-python_prepare() { |
164 |
- if ! use cli || ! has "${EPYTHON}" python3.{7..9}; then |
165 |
- sed -i -e '/console_scripts/d' setup.py || die |
166 |
- fi |
167 |
-} |
168 |
- |
169 |
-python_test() { |
170 |
- distutils_install_for_testing |
171 |
- epytest tests/cover tests/pytest tests/quality \ |
172 |
- -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
173 |
-} |
174 |
- |
175 |
-pkg_postinst() { |
176 |
- optfeature "datetime support" dev-python/pytz |
177 |
- optfeature "dateutil support" dev-python/python-dateutil |
178 |
- optfeature "numpy support" dev-python/numpy |
179 |
- optfeature "django support" dev-python/django dev-python/pytz |
180 |
- optfeature "pandas support" dev-python/pandas |
181 |
- optfeature "pytest support" dev-python/pytest |
182 |
-} |
183 |
|
184 |
diff --git a/dev-python/hypothesis/hypothesis-6.13.14-r1.ebuild b/dev-python/hypothesis/hypothesis-6.13.14-r1.ebuild |
185 |
deleted file mode 100644 |
186 |
index 536affb7ae1..00000000000 |
187 |
--- a/dev-python/hypothesis/hypothesis-6.13.14-r1.ebuild |
188 |
+++ /dev/null |
189 |
@@ -1,62 +0,0 @@ |
190 |
-# Copyright 1999-2021 Gentoo Authors |
191 |
-# Distributed under the terms of the GNU General Public License v2 |
192 |
- |
193 |
-EAPI=7 |
194 |
- |
195 |
-PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
196 |
-PYTHON_REQ_USE="threads(+),sqlite" |
197 |
- |
198 |
-inherit distutils-r1 multiprocessing optfeature |
199 |
- |
200 |
-DESCRIPTION="A library for property based testing" |
201 |
-HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/" |
202 |
-SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz" |
203 |
-S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python" |
204 |
- |
205 |
-LICENSE="MPL-2.0" |
206 |
-SLOT="0" |
207 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" |
208 |
-IUSE="cli" |
209 |
- |
210 |
-RDEPEND=" |
211 |
- >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] |
212 |
- >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] |
213 |
- cli? ( |
214 |
- $(python_gen_cond_dep ' |
215 |
- dev-python/black[${PYTHON_USEDEP}] |
216 |
- dev-python/click[${PYTHON_USEDEP}] |
217 |
- ' python3_{7..9}) |
218 |
- ) |
219 |
-" |
220 |
-BDEPEND=" |
221 |
- test? ( |
222 |
- dev-python/mock[${PYTHON_USEDEP}] |
223 |
- dev-python/pexpect[${PYTHON_USEDEP}] |
224 |
- dev-python/pytest-xdist[${PYTHON_USEDEP}] |
225 |
- !!dev-python/pytest-describe |
226 |
- !!<dev-python/typing-3.7.4.1 |
227 |
- ) |
228 |
-" |
229 |
- |
230 |
-distutils_enable_tests --install pytest |
231 |
- |
232 |
-python_prepare() { |
233 |
- if ! use cli || ! has "${EPYTHON}" python3.{7..9}; then |
234 |
- sed -i -e '/console_scripts/d' setup.py || die |
235 |
- fi |
236 |
-} |
237 |
- |
238 |
-python_test() { |
239 |
- distutils_install_for_testing |
240 |
- epytest tests/cover tests/pytest tests/quality \ |
241 |
- -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
242 |
-} |
243 |
- |
244 |
-pkg_postinst() { |
245 |
- optfeature "datetime support" dev-python/pytz |
246 |
- optfeature "dateutil support" dev-python/python-dateutil |
247 |
- optfeature "numpy support" dev-python/numpy |
248 |
- optfeature "django support" dev-python/django dev-python/pytz |
249 |
- optfeature "pandas support" dev-python/pandas |
250 |
- optfeature "pytest support" dev-python/pytest |
251 |
-} |
252 |
|
253 |
diff --git a/dev-python/hypothesis/hypothesis-6.14.1.ebuild b/dev-python/hypothesis/hypothesis-6.14.1.ebuild |
254 |
deleted file mode 100644 |
255 |
index 536affb7ae1..00000000000 |
256 |
--- a/dev-python/hypothesis/hypothesis-6.14.1.ebuild |
257 |
+++ /dev/null |
258 |
@@ -1,62 +0,0 @@ |
259 |
-# Copyright 1999-2021 Gentoo Authors |
260 |
-# Distributed under the terms of the GNU General Public License v2 |
261 |
- |
262 |
-EAPI=7 |
263 |
- |
264 |
-PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
265 |
-PYTHON_REQ_USE="threads(+),sqlite" |
266 |
- |
267 |
-inherit distutils-r1 multiprocessing optfeature |
268 |
- |
269 |
-DESCRIPTION="A library for property based testing" |
270 |
-HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/" |
271 |
-SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz" |
272 |
-S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python" |
273 |
- |
274 |
-LICENSE="MPL-2.0" |
275 |
-SLOT="0" |
276 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" |
277 |
-IUSE="cli" |
278 |
- |
279 |
-RDEPEND=" |
280 |
- >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] |
281 |
- >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] |
282 |
- cli? ( |
283 |
- $(python_gen_cond_dep ' |
284 |
- dev-python/black[${PYTHON_USEDEP}] |
285 |
- dev-python/click[${PYTHON_USEDEP}] |
286 |
- ' python3_{7..9}) |
287 |
- ) |
288 |
-" |
289 |
-BDEPEND=" |
290 |
- test? ( |
291 |
- dev-python/mock[${PYTHON_USEDEP}] |
292 |
- dev-python/pexpect[${PYTHON_USEDEP}] |
293 |
- dev-python/pytest-xdist[${PYTHON_USEDEP}] |
294 |
- !!dev-python/pytest-describe |
295 |
- !!<dev-python/typing-3.7.4.1 |
296 |
- ) |
297 |
-" |
298 |
- |
299 |
-distutils_enable_tests --install pytest |
300 |
- |
301 |
-python_prepare() { |
302 |
- if ! use cli || ! has "${EPYTHON}" python3.{7..9}; then |
303 |
- sed -i -e '/console_scripts/d' setup.py || die |
304 |
- fi |
305 |
-} |
306 |
- |
307 |
-python_test() { |
308 |
- distutils_install_for_testing |
309 |
- epytest tests/cover tests/pytest tests/quality \ |
310 |
- -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
311 |
-} |
312 |
- |
313 |
-pkg_postinst() { |
314 |
- optfeature "datetime support" dev-python/pytz |
315 |
- optfeature "dateutil support" dev-python/python-dateutil |
316 |
- optfeature "numpy support" dev-python/numpy |
317 |
- optfeature "django support" dev-python/django dev-python/pytz |
318 |
- optfeature "pandas support" dev-python/pandas |
319 |
- optfeature "pytest support" dev-python/pytest |
320 |
-} |