1 |
commit: d3e1798c98b73a6df4aa3abefda30fce1f266fb6 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 1 09:11:23 2019 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 1 09:11:23 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3e1798c |
7 |
|
8 |
dev-python/future: Remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.65, Repoman-2.3.12 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
dev-python/future/Manifest | 2 - |
14 |
.../future-0.15.2-fix-py35-test-failures.patch | 57 ---------------------- |
15 |
....0-disable-tests-with-internet-connection.patch | 50 ------------------- |
16 |
.../files/future-0.16.0-fix-tests-py37.patch | 43 ---------------- |
17 |
dev-python/future/future-0.15.2.ebuild | 23 --------- |
18 |
dev-python/future/future-0.16.0-r1.ebuild | 52 -------------------- |
19 |
dev-python/future/future-0.16.0.ebuild | 27 ---------- |
20 |
7 files changed, 254 deletions(-) |
21 |
|
22 |
diff --git a/dev-python/future/Manifest b/dev-python/future/Manifest |
23 |
index 0bcf5ff7b5a..48c79e5ce1a 100644 |
24 |
--- a/dev-python/future/Manifest |
25 |
+++ b/dev-python/future/Manifest |
26 |
@@ -1,3 +1 @@ |
27 |
-DIST future-0.15.2.tar.gz 1583441 BLAKE2B 9c552a5f3598922f8910480d054015020112aae4f7e14d2c139dda13a0b26e878b75eaf5068d66f20823ac4659d85edd4087a95d9474dc27bf15767cf6e9d921 SHA512 24a0eaf70795efe1644b098c5abbcb0103d9172a5243721f0d26b1cbd108872b6c0616180da8f5507855ddfc7b26bb10a606a64e59d307d39042b346700f77ee |
28 |
-DIST future-0.16.0.tar.gz 824484 BLAKE2B b098366cc7a7866c4aa4a35f1a6a5cf113698307de8f4cce6c77e4ce72a8433dd102111f991e35ffa920c09a0d31cc048b9502dacd0aba1b701c11eaaeab8392 SHA512 41c795cd1746a76df84de2da9fbc611fc6164322c1c712ec9e8a8626c21c2717cb4899ec150d95c5e0c037270e6bb71e099edd169609369aae619daea9df2e5f |
29 |
DIST future-0.17.0.tar.gz 827812 BLAKE2B 14bfce4927386b157da91e6bbad547e21bb622f7e81997bc4ac400842cec5f7a50d7a0f5a743c4c76a7b80be0dcb6f54c06901311fd27781d89a8d2df1cce7e9 SHA512 f2396379e8e36753aeafdf27225c2551a31b10036f21201f1c24d63c1bb318dbd491ec977af514a19a4d477b397df9eed9711be797a64e86fc00c4692729d876 |
30 |
|
31 |
diff --git a/dev-python/future/files/future-0.15.2-fix-py35-test-failures.patch b/dev-python/future/files/future-0.15.2-fix-py35-test-failures.patch |
32 |
deleted file mode 100644 |
33 |
index 8d8e5daccf1..00000000000 |
34 |
--- a/dev-python/future/files/future-0.15.2-fix-py35-test-failures.patch |
35 |
+++ /dev/null |
36 |
@@ -1,57 +0,0 @@ |
37 |
-* Fix test failures on py3.5, backported from git, see also |
38 |
- https://github.com/PythonCharmers/python-future/issues/183 |
39 |
-* Fix unexpected test successes on py3.5, which are now correct |
40 |
- |
41 |
---- a/tests/test_future/test_bytes.py |
42 |
-+++ b/tests/test_future/test_bytes.py |
43 |
-@@ -10,6 +10,8 @@ |
44 |
- from numbers import Integral |
45 |
- from future.tests.base import unittest, expectedFailurePY2 |
46 |
- |
47 |
-+import sys |
48 |
-+ |
49 |
- |
50 |
- TEST_UNICODE_STR = u'ℝεα∂@ßʟ℮ ☂ℯṧт υηḯ¢☺ḓ℮' |
51 |
- # Tk icon as a .gif: |
52 |
-@@ -534,6 +536,8 @@ |
53 |
- self.assertRaises(ValueError, bytes.maketrans, b'abc', b'xyzq') |
54 |
- self.assertRaises(TypeError, bytes.maketrans, 'abc', 'def') |
55 |
- |
56 |
-+ @unittest.skipIf(sys.version_info[:2] == (3, 5), |
57 |
-+ 'Only works in Py3.5+') |
58 |
- @unittest.expectedFailure |
59 |
- def test_mod(self): |
60 |
- """ |
61 |
-@@ -551,6 +555,8 @@ |
62 |
- a = b % (b'seventy-nine', 79) |
63 |
- self.assertEqual(a, b'seventy-nine / 100 = 79%') |
64 |
- |
65 |
-+ @unittest.skipIf(sys.version_info[:2] == (3, 5), |
66 |
-+ 'Only works in Py3.5+') |
67 |
- @unittest.expectedFailure |
68 |
- def test_imod(self): |
69 |
- """ |
70 |
---- a/tests/test_future/test_builtins.py |
71 |
-+++ b/tests/test_future/test_builtins.py |
72 |
-@@ -525,11 +525,10 @@ |
73 |
- self.assertRaises(ValueError, compile, 'print(42)\n', '<string>', 'badmode') |
74 |
- self.assertRaises(ValueError, compile, 'print(42)\n', '<string>', 'single', 0xff) |
75 |
- # Raises TypeError in Python < v3.5, ValueError in v3.5: |
76 |
-- # self.assertRaises(TypeError, compile, chr(0), 'f', 'exec') |
77 |
-+ self.assertRaises((TypeError, ValueError), compile, chr(0), 'f', 'exec') |
78 |
- self.assertRaises(TypeError, compile, 'pass', '?', 'exec', |
79 |
- mode='eval', source='0', filename='tmp') |
80 |
- compile('print("\xe5")\n', '', 'exec') |
81 |
-- self.assertRaises(TypeError, compile, chr(0), 'f', 'exec') |
82 |
- self.assertRaises(ValueError, compile, str('a = 1'), 'f', 'bad') |
83 |
- |
84 |
- # test the optimize argument |
85 |
-@@ -1287,7 +1286,7 @@ |
86 |
- self.assertAlmostEqual(pow(-1, 1/3), 0.5 + 0.8660254037844386j) |
87 |
- |
88 |
- # Raises TypeError in Python < v3.5, ValueError in v3.5: |
89 |
-- # self.assertRaises(TypeError, pow, -1, -2, 3) |
90 |
-+ self.assertRaises((TypeError, ValueError), pow, -1, -2, 3) |
91 |
- self.assertRaises(ValueError, pow, 1, 2, 0) |
92 |
- |
93 |
- self.assertRaises(TypeError, pow) |
94 |
|
95 |
diff --git a/dev-python/future/files/future-0.16.0-disable-tests-with-internet-connection.patch b/dev-python/future/files/future-0.16.0-disable-tests-with-internet-connection.patch |
96 |
deleted file mode 100644 |
97 |
index b4ba01ed796..00000000000 |
98 |
--- a/dev-python/future/files/future-0.16.0-disable-tests-with-internet-connection.patch |
99 |
+++ /dev/null |
100 |
@@ -1,50 +0,0 @@ |
101 |
-##Skipping tests due to connection failures on Fedora build-system |
102 |
-##See https://github.com/PythonCharmers/python-future/issues/165 |
103 |
- |
104 |
---- a/tests/test_future/test_standard_library.orig.py 2014-11-21 12:52:03.000000000 +0100 |
105 |
-+++ b/tests/test_future/test_standard_library.py 2015-09-02 11:37:36.808826777 +0200 |
106 |
-@@ -318,7 +318,7 @@ |
107 |
- import builtins |
108 |
- self.assertTrue(hasattr(builtins, 'tuple')) |
109 |
- |
110 |
-- # @unittest.skip("ssl support has been stripped out for now ...") |
111 |
-+ @unittest.skip("ConnectionError: ('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))...") |
112 |
- def test_urllib_request_ssl_redirect(self): |
113 |
- """ |
114 |
- This site redirects to https://... |
115 |
-@@ -332,6 +332,7 @@ |
116 |
- # pprint(r.read().decode('utf-8')) |
117 |
- self.assertTrue(True) |
118 |
- |
119 |
-+ @unittest.skip("ConnectionError: ('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))...") |
120 |
- def test_moves_urllib_request_http(self): |
121 |
- """ |
122 |
- This site (python-future.org) uses plain http (as of 2014-09-23). |
123 |
-@@ -343,6 +343,7 @@ |
124 |
- data = r.read() |
125 |
- self.assertTrue(b'</html>' in data) |
126 |
- |
127 |
-+ @unittest.skip("ConnectionError: ('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))...") |
128 |
- def test_urllib_request_http(self): |
129 |
- """ |
130 |
- This site (python-future.org) uses plain http (as of 2014-09-23). |
131 |
- |
132 |
---- a/tests/test_future/test_requests.orig.py 2014-11-21 12:52:03.000000000 +0100 |
133 |
-+++ b/tests/test_future/test_requests.py 2015-09-02 11:39:01.509378296 +0200 |
134 |
-@@ -57,6 +57,7 @@ |
135 |
- This class tests whether the requests module conflicts with the |
136 |
- standard library import hooks, as in issue #19. |
137 |
- """ |
138 |
-+ @unittest.skip("ConnectionError: ('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))...") |
139 |
- def test_remove_hooks_then_requests(self): |
140 |
- code = """ |
141 |
- from future import standard_library |
142 |
-@@ -79,6 +80,7 @@ |
143 |
- self.assertTrue(True) |
144 |
- |
145 |
- |
146 |
-+ @unittest.skip("ConnectionError: ('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))...") |
147 |
- def test_requests_cm(self): |
148 |
- """ |
149 |
- Tests whether requests can be used importing standard_library modules |
150 |
- |
151 |
|
152 |
diff --git a/dev-python/future/files/future-0.16.0-fix-tests-py37.patch b/dev-python/future/files/future-0.16.0-fix-tests-py37.patch |
153 |
deleted file mode 100644 |
154 |
index d925d49f983..00000000000 |
155 |
--- a/dev-python/future/files/future-0.16.0-fix-tests-py37.patch |
156 |
+++ /dev/null |
157 |
@@ -1,43 +0,0 @@ |
158 |
-commit ce4f015978d250718ec8dd9f50721da90a9bd18b |
159 |
-Author: Louis Sautier <sautier.louis@×××××.com> |
160 |
-Date: Mon Aug 20 12:42:29 2018 +0200 |
161 |
- |
162 |
- Skip int() keyword tests with Python 3.7 |
163 |
- |
164 |
- The first argument must be positional since |
165 |
- https://github.com/python/cpython/commit/2e5642422f6234fd8d0c082142b27340e588f96e |
166 |
- |
167 |
-diff --git a/tests/test_future/test_int.py b/tests/test_future/test_int.py |
168 |
-index f1d9c5d..e306550 100644 |
169 |
---- a/tests/test_future/test_int.py |
170 |
-+++ b/tests/test_future/test_int.py |
171 |
-@@ -265,6 +265,9 @@ class IntTestCases(unittest.TestCase): |
172 |
- def test_no_args(self): |
173 |
- self.assertEqual(int(), 0) |
174 |
- |
175 |
-+ @unittest.skipIf(sys.version_info >= (3, 7), |
176 |
-+ "The first parameter must be positional with Python >= 3.7" |
177 |
-+ ) |
178 |
- def test_keyword_args(self): |
179 |
- # Test invoking int() using keyword arguments. |
180 |
- self.assertEqual(int(x=1.2), 1) |
181 |
- |
182 |
-commit d7a3451753982d944ae0894c9e9f01d0460d03d5 |
183 |
-Author: Louis Sautier <sautier.louis@×××××.com> |
184 |
-Date: Mon Aug 20 11:17:59 2018 +0200 |
185 |
- |
186 |
- Make test_bad_status_repr work for Python 3.7 |
187 |
- |
188 |
-diff --git a/tests/test_future/test_httplib.py b/tests/test_future/test_httplib.py |
189 |
-index 968e933..a1e2b19 100644 |
190 |
---- a/tests/test_future/test_httplib.py |
191 |
-+++ b/tests/test_future/test_httplib.py |
192 |
-@@ -197,7 +197,7 @@ class BasicTest(TestCase): |
193 |
- if not utils.PY3: |
194 |
- self.assertEqual(repr(exc), '''BadStatusLine("u\'\'",)''') |
195 |
- else: |
196 |
-- self.assertEqual(repr(exc), '''BadStatusLine("\'\'",)''') |
197 |
-+ self.assertIn(repr(exc), ('''BadStatusLine("''",)''', '''BadStatusLine("''")''')) |
198 |
- |
199 |
- def test_partial_reads(self): |
200 |
- # if we have a length, the system knows when to close itself |
201 |
|
202 |
diff --git a/dev-python/future/future-0.15.2.ebuild b/dev-python/future/future-0.15.2.ebuild |
203 |
deleted file mode 100644 |
204 |
index 7cc10e8da84..00000000000 |
205 |
--- a/dev-python/future/future-0.15.2.ebuild |
206 |
+++ /dev/null |
207 |
@@ -1,23 +0,0 @@ |
208 |
-# Copyright 1999-2019 Gentoo Authors |
209 |
-# Distributed under the terms of the GNU General Public License v2 |
210 |
- |
211 |
-EAPI=6 |
212 |
- |
213 |
-PYTHON_COMPAT=( python{2_7,3_5} ) |
214 |
- |
215 |
-inherit distutils-r1 |
216 |
- |
217 |
-DESCRIPTION="Easy, clean, reliable Python 2/3 compatibility" |
218 |
-HOMEPAGE="http://python-future.org/" |
219 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
220 |
- |
221 |
-LICENSE="MIT" |
222 |
-SLOT="0" |
223 |
-KEYWORDS="~alpha amd64 hppa x86" |
224 |
-IUSE="" |
225 |
- |
226 |
-PATCHES=( "${FILESDIR}/${P}-fix-py35-test-failures.patch" ) |
227 |
- |
228 |
-python_test() { |
229 |
- esetup.py test || die |
230 |
-} |
231 |
|
232 |
diff --git a/dev-python/future/future-0.16.0-r1.ebuild b/dev-python/future/future-0.16.0-r1.ebuild |
233 |
deleted file mode 100644 |
234 |
index e65bb99c9ec..00000000000 |
235 |
--- a/dev-python/future/future-0.16.0-r1.ebuild |
236 |
+++ /dev/null |
237 |
@@ -1,52 +0,0 @@ |
238 |
-# Copyright 1999-2019 Gentoo Authors |
239 |
-# Distributed under the terms of the GNU General Public License v2 |
240 |
- |
241 |
-EAPI=7 |
242 |
- |
243 |
-PYTHON_COMPAT=( python{2_7,3_{5,6,7}} ) |
244 |
- |
245 |
-inherit distutils-r1 |
246 |
- |
247 |
-DESCRIPTION="Easy, clean, reliable Python 2/3 compatibility" |
248 |
-HOMEPAGE="http://python-future.org/" |
249 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
250 |
- |
251 |
-LICENSE="MIT" |
252 |
-SLOT="0" |
253 |
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux" |
254 |
-IUSE="doc test" |
255 |
- |
256 |
-BDEPEND=" |
257 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
258 |
- doc? ( |
259 |
- dev-python/sphinx[${PYTHON_USEDEP}] |
260 |
- dev-python/sphinx-bootstrap-theme[${PYTHON_USEDEP}] |
261 |
- ) |
262 |
- test? ( |
263 |
- dev-python/numpy[${PYTHON_USEDEP}] |
264 |
- dev-python/pytest[${PYTHON_USEDEP}] |
265 |
- ) |
266 |
-" |
267 |
- |
268 |
-PATCHES=( |
269 |
- # https://github.com/PythonCharmers/python-future/issues/165 |
270 |
- "${FILESDIR}/${P}-disable-tests-with-internet-connection.patch" |
271 |
- # https://github.com/PythonCharmers/python-future/pull/355 |
272 |
- "${FILESDIR}/${P}-fix-tests-py37.patch" |
273 |
-) |
274 |
- |
275 |
-python_prepare_all() { |
276 |
- sed -i "/'sphinx.ext.intersphinx'/d" docs/conf.py || die |
277 |
- distutils-r1_python_prepare_all |
278 |
-} |
279 |
- |
280 |
-python_compile_all() { |
281 |
- if use doc; then |
282 |
- sphinx-build docs/ docs/_build/html || die |
283 |
- HTML_DOCS=( docs/_build/html/. ) |
284 |
- fi |
285 |
-} |
286 |
- |
287 |
-python_test() { |
288 |
- pytest -vv || die "Tests failed under ${EPYTHON}" |
289 |
-} |
290 |
|
291 |
diff --git a/dev-python/future/future-0.16.0.ebuild b/dev-python/future/future-0.16.0.ebuild |
292 |
deleted file mode 100644 |
293 |
index aa4638b61ae..00000000000 |
294 |
--- a/dev-python/future/future-0.16.0.ebuild |
295 |
+++ /dev/null |
296 |
@@ -1,27 +0,0 @@ |
297 |
-# Copyright 1999-2019 Gentoo Authors |
298 |
-# Distributed under the terms of the GNU General Public License v2 |
299 |
- |
300 |
-EAPI=6 |
301 |
- |
302 |
-PYTHON_COMPAT=( python2_7 python3_{5,6} ) |
303 |
- |
304 |
-inherit distutils-r1 |
305 |
- |
306 |
-DESCRIPTION="Easy, clean, reliable Python 2/3 compatibility" |
307 |
-HOMEPAGE="http://python-future.org/" |
308 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
309 |
- |
310 |
-LICENSE="MIT" |
311 |
-SLOT="0" |
312 |
-KEYWORDS="alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 ~sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux" |
313 |
-IUSE="test" |
314 |
- |
315 |
-DEPEND=" |
316 |
- test? ( |
317 |
- dev-python/pytest[${PYTHON_USEDEP}] |
318 |
- ) |
319 |
-" |
320 |
- |
321 |
-python_test() { |
322 |
- py.test -v || die "Tests failed under ${EPYTHON}" |
323 |
-} |