1 |
commit: c92eb6ba79949e0e51d4d2a7879c3dd7eae059ba |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 22 19:29:01 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 22 20:06:00 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c92eb6ba |
7 |
|
8 |
dev-python/mypy: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/mypy/Manifest | 1 - |
13 |
dev-python/mypy/files/mypy-0.782-conftest.patch | 24 --- |
14 |
dev-python/mypy/files/mypy-0.782-py39-fixes.patch | 138 -------------- |
15 |
dev-python/mypy/files/mypy-0.782-pytest-6.patch | 210 ---------------------- |
16 |
dev-python/mypy/mypy-0.782.ebuild | 58 ------ |
17 |
5 files changed, 431 deletions(-) |
18 |
|
19 |
diff --git a/dev-python/mypy/Manifest b/dev-python/mypy/Manifest |
20 |
index 75ba045782b..c0fe8427dd1 100644 |
21 |
--- a/dev-python/mypy/Manifest |
22 |
+++ b/dev-python/mypy/Manifest |
23 |
@@ -1,3 +1,2 @@ |
24 |
-DIST mypy-0.782.tar.gz 2529814 BLAKE2B c75771fb40524c2c8675236eaaddd6e39d13b4fd4f6f15f279b2e0be75eb0630987cb90f31bd7c65c4a322de4915d3a260e8f6f375b49157fea4b6362316f333 SHA512 f94433f79ea76b53ebb70589ca04ba3f39847050f73cf6deac00a3db13d742613a8ecb1a11fb84a878458025c6776b236b074e93e577c1b597e31d1300974767 |
25 |
DIST mypy-0.790.tar.gz 2082487 BLAKE2B f8efcb701b4b7533306948721968c9a01ab6c6e56ec99fe6c36e35aca50b52f29f518aee2268a628539a372b8024094ef2d4d87da580b4dd667f41133351596e SHA512 be670456bb64cd197bb6a73832b7e0fd6439ae4af128212328a41cd93d9f644a82e79ffb05bf4695e99bd9788244a24916bf765cf30a6f162cf3b471f45c25b8 |
26 |
DIST mypy-typeshed-5be9c91.tar.gz 583006 BLAKE2B 08ab2b6d479ccc66493524482051e825c65c0a94ea5cac8e56a8ea1dca85eda6104e4ed3188b7d5ce1ea99058019d66a21a7e270e3ad9df694be67ea1e6a7ce9 SHA512 2912bcf66e0f550941eb9c1f34979644857448a4bec478cfc0d662e9a401ade93ccfb2f57b5348504b4d6f0f23e576da609167f1ec3a0861414fc9c7dea80243 |
27 |
|
28 |
diff --git a/dev-python/mypy/files/mypy-0.782-conftest.patch b/dev-python/mypy/files/mypy-0.782-conftest.patch |
29 |
deleted file mode 100644 |
30 |
index 08da1b1b690..00000000000 |
31 |
--- a/dev-python/mypy/files/mypy-0.782-conftest.patch |
32 |
+++ /dev/null |
33 |
@@ -1,24 +0,0 @@ |
34 |
-diff --git a/conftest.py b/conftest.py |
35 |
-new file mode 100644 |
36 |
-index 00000000..83a6689f |
37 |
---- /dev/null |
38 |
-+++ b/conftest.py |
39 |
-@@ -0,0 +1,18 @@ |
40 |
-+import os.path |
41 |
-+ |
42 |
-+pytest_plugins = [ |
43 |
-+ 'mypy.test.data', |
44 |
-+] |
45 |
-+ |
46 |
-+ |
47 |
-+def pytest_configure(config): |
48 |
-+ mypy_source_root = os.path.dirname(os.path.abspath(__file__)) |
49 |
-+ if os.getcwd() != mypy_source_root: |
50 |
-+ os.chdir(mypy_source_root) |
51 |
-+ |
52 |
-+ |
53 |
-+# This function name is special to pytest. See |
54 |
-+# http://doc.pytest.org/en/latest/writing_plugins.html#initialization-command-line-and-configuration-hooks |
55 |
-+def pytest_addoption(parser) -> None: |
56 |
-+ parser.addoption('--bench', action='store_true', default=False, |
57 |
-+ help='Enable the benchmark test runs') |
58 |
|
59 |
diff --git a/dev-python/mypy/files/mypy-0.782-py39-fixes.patch b/dev-python/mypy/files/mypy-0.782-py39-fixes.patch |
60 |
deleted file mode 100644 |
61 |
index 16c12daecae..00000000000 |
62 |
--- a/dev-python/mypy/files/mypy-0.782-py39-fixes.patch |
63 |
+++ /dev/null |
64 |
@@ -1,138 +0,0 @@ |
65 |
-From 13ae58ffe8bedb7da9f4c657297f0d61e681d671 Mon Sep 17 00:00:00 2001 |
66 |
-From: Shantanu <12621235+hauntsaninja@××××××××××××××××××××.com> |
67 |
-Date: Sun, 30 Aug 2020 18:11:57 -0700 |
68 |
-Subject: [PATCH] mypy: get CI green for py39 (#9376) |
69 |
- |
70 |
-Due to Python 3.9's new parser, this has a different (and better) error |
71 |
-message on Python 3.9. |
72 |
- |
73 |
-This is effectively a test of typed_ast / ast, so I don't think it |
74 |
-matters too much. I'm happy to alternatively just get rid of the test |
75 |
-altogether, or if people feel strongly, come up with a way to run the |
76 |
-test when run with older Pythons. |
77 |
- |
78 |
-Co-authored-by: hauntsaninja <> |
79 |
---- |
80 |
- .travis.yml | 3 --- |
81 |
- mypy/test/testcheck.py | 2 ++ |
82 |
- test-data/unit/check-kwargs.test | 7 ------- |
83 |
- test-data/unit/check-python39.test | 9 +++++++++ |
84 |
- 4 files changed, 11 insertions(+), 10 deletions(-) |
85 |
- create mode 100644 test-data/unit/check-python39.test |
86 |
- |
87 |
-diff --git a/mypy/test/testcheck.py b/mypy/test/testcheck.py |
88 |
-index 49a85861b6..39a35c7280 100644 |
89 |
---- a/mypy/test/testcheck.py |
90 |
-+++ b/mypy/test/testcheck.py |
91 |
-@@ -94,6 +94,8 @@ |
92 |
- # Tests that use Python 3.8-only AST features (like expression-scoped ignores): |
93 |
- if sys.version_info >= (3, 8): |
94 |
- typecheck_files.append('check-python38.test') |
95 |
-+if sys.version_info >= (3, 9): |
96 |
-+ typecheck_files.append('check-python39.test') |
97 |
- |
98 |
- # Special tests for platforms with case-insensitive filesystems. |
99 |
- if sys.platform in ('darwin', 'win32'): |
100 |
-diff --git a/test-data/unit/check-kwargs.test b/test-data/unit/check-kwargs.test |
101 |
-index 1dd450caae..a587be3e06 100644 |
102 |
---- a/test-data/unit/check-kwargs.test |
103 |
-+++ b/test-data/unit/check-kwargs.test |
104 |
-@@ -53,13 +53,6 @@ f(b=[], a=A()) |
105 |
- class A: pass |
106 |
- [builtins fixtures/list.pyi] |
107 |
- |
108 |
--[case testGivingSameKeywordArgumentTwice] |
109 |
--import typing |
110 |
--def f(a: 'A', b: 'B') -> None: pass |
111 |
--f(a=A(), b=B(), a=A()) # E: keyword argument repeated |
112 |
--class A: pass |
113 |
--class B: pass |
114 |
-- |
115 |
- [case testGivingArgumentAsPositionalAndKeywordArg] |
116 |
- import typing |
117 |
- def f(a: 'A', b: 'B' = None) -> None: pass |
118 |
-diff --git a/test-data/unit/check-python39.test b/test-data/unit/check-python39.test |
119 |
-new file mode 100644 |
120 |
-index 0000000000..0e9ec683ae |
121 |
---- /dev/null |
122 |
-+++ b/test-data/unit/check-python39.test |
123 |
-@@ -0,0 +1,9 @@ |
124 |
-+[case testGivingSameKeywordArgumentTwice] |
125 |
-+# This test was originally in check-kwargs.test |
126 |
-+# Python 3.9's new parser started producing a different error message here. Since this isn't the |
127 |
-+# most important test, to deal with this we'll only run this test with Python 3.9 and later. |
128 |
-+import typing |
129 |
-+def f(a: 'A', b: 'B') -> None: pass |
130 |
-+f(a=A(), b=B(), a=A()) # E: "f" gets multiple values for keyword argument "a" |
131 |
-+class A: pass |
132 |
-+class B: pass |
133 |
-From da4430119255ac9205c96d54deb2e2ebed0ce8ce Mon Sep 17 00:00:00 2001 |
134 |
-From: Shantanu <12621235+hauntsaninja@××××××××××××××××××××.com> |
135 |
-Date: Fri, 31 Jul 2020 09:58:15 -0700 |
136 |
-Subject: [PATCH] mypyc: ignore deprecation (#9107) |
137 |
- |
138 |
-PyUnicode_AsUnicodeAndSize has been deprecated since 3.3 |
139 |
- |
140 |
-Python 3.9 has compiler warnings for this deprecated function, and we |
141 |
-compile with Werror, causing Python 3.9 builds to fail. |
142 |
- |
143 |
-I've just copied over the relevant deprecation ignoring code from the |
144 |
-original getargs.c (including the TODO, but I can remove that) |
145 |
- |
146 |
-Co-authored-by: hauntsaninja <> |
147 |
---- |
148 |
- mypyc/lib-rt/getargs.c | 27 +++++++++++++++++++++++++++ |
149 |
- 1 file changed, 27 insertions(+) |
150 |
- |
151 |
-diff --git a/mypyc/lib-rt/getargs.c b/mypyc/lib-rt/getargs.c |
152 |
-index 32b387c8ab..e6b1a0c937 100644 |
153 |
---- a/mypyc/lib-rt/getargs.c |
154 |
-+++ b/mypyc/lib-rt/getargs.c |
155 |
-@@ -18,6 +18,29 @@ |
156 |
- * and is responsible for decrefing them. |
157 |
- */ |
158 |
- |
159 |
-+// These macro definitions are copied from pyport.h in Python 3.9 and later |
160 |
-+// https://bugs.python.org/issue19569 |
161 |
-+#if defined(__clang__) |
162 |
-+#define _Py_COMP_DIAG_PUSH _Pragma("clang diagnostic push") |
163 |
-+#define _Py_COMP_DIAG_IGNORE_DEPR_DECLS \ |
164 |
-+ _Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"") |
165 |
-+#define _Py_COMP_DIAG_POP _Pragma("clang diagnostic pop") |
166 |
-+#elif defined(__GNUC__) \ |
167 |
-+ && ((__GNUC__ >= 5) || (__GNUC__ == 4) && (__GNUC_MINOR__ >= 6)) |
168 |
-+#define _Py_COMP_DIAG_PUSH _Pragma("GCC diagnostic push") |
169 |
-+#define _Py_COMP_DIAG_IGNORE_DEPR_DECLS \ |
170 |
-+ _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") |
171 |
-+#define _Py_COMP_DIAG_POP _Pragma("GCC diagnostic pop") |
172 |
-+#elif defined(_MSC_VER) |
173 |
-+#define _Py_COMP_DIAG_PUSH __pragma(warning(push)) |
174 |
-+#define _Py_COMP_DIAG_IGNORE_DEPR_DECLS __pragma(warning(disable: 4996)) |
175 |
-+#define _Py_COMP_DIAG_POP __pragma(warning(pop)) |
176 |
-+#else |
177 |
-+#define _Py_COMP_DIAG_PUSH |
178 |
-+#define _Py_COMP_DIAG_IGNORE_DEPR_DECLS |
179 |
-+#define _Py_COMP_DIAG_POP |
180 |
-+#endif |
181 |
-+ |
182 |
- #include "Python.h" |
183 |
- #include "pythonsupport.h" |
184 |
- |
185 |
-@@ -756,6 +779,9 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags, |
186 |
- case 'u': /* raw unicode buffer (Py_UNICODE *) */ |
187 |
- case 'Z': /* raw unicode buffer or None */ |
188 |
- { |
189 |
-+ // TODO: Raise DeprecationWarning |
190 |
-+_Py_COMP_DIAG_PUSH |
191 |
-+_Py_COMP_DIAG_IGNORE_DEPR_DECLS |
192 |
- Py_UNICODE **p = va_arg(*p_va, Py_UNICODE **); |
193 |
- |
194 |
- if (*format == '#') { |
195 |
-@@ -795,6 +821,7 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags, |
196 |
- arg, msgbuf, bufsize); |
197 |
- } |
198 |
- break; |
199 |
-+_Py_COMP_DIAG_POP |
200 |
- } |
201 |
- |
202 |
- case 'e': {/* encoded string */ |
203 |
|
204 |
diff --git a/dev-python/mypy/files/mypy-0.782-pytest-6.patch b/dev-python/mypy/files/mypy-0.782-pytest-6.patch |
205 |
deleted file mode 100644 |
206 |
index 0252d113880..00000000000 |
207 |
--- a/dev-python/mypy/files/mypy-0.782-pytest-6.patch |
208 |
+++ /dev/null |
209 |
@@ -1,210 +0,0 @@ |
210 |
-From 3e77959eacf3d445a0cb4db5a4bc6dcf606fc040 Mon Sep 17 00:00:00 2001 |
211 |
-From: Lawrence Chan <llchan@××××××××××××××××××××.com> |
212 |
-Date: Tue, 4 Aug 2020 18:14:55 -0500 |
213 |
-Subject: [PATCH] Use pytest Node.from_parent if available (#9263) |
214 |
- |
215 |
-* Use pytest Node.from_parent if available |
216 |
- |
217 |
-* Use pytest Node.from_parent unconditionally (requires pytest 5.4+) |
218 |
- |
219 |
-* Bump pytest test requirements |
220 |
- |
221 |
-* Require pytest 6.0 and remove unused type ignores |
222 |
- |
223 |
-* Make flake8 happy |
224 |
---- |
225 |
- mypy/test/data.py | 37 ++++++++++++++++++++++-------------- |
226 |
- mypy/test/helpers.py | 2 +- |
227 |
- mypy/test/testfinegrained.py | 2 +- |
228 |
- mypy/test/testipc.py | 2 +- |
229 |
- mypy/test/testparse.py | 2 +- |
230 |
- mypy/test/testpep561.py | 2 +- |
231 |
- mypy/test/testpythoneval.py | 2 +- |
232 |
- mypyc/test/testutil.py | 2 +- |
233 |
- pytest.ini | 3 +-- |
234 |
- test-requirements.txt | 9 ++++----- |
235 |
- 10 files changed, 35 insertions(+), 28 deletions(-) |
236 |
- |
237 |
-diff --git a/mypy/test/data.py b/mypy/test/data.py |
238 |
-index 5484fd99e9..a4f2d798b1 100644 |
239 |
---- a/mypy/test/data.py |
240 |
-+++ b/mypy/test/data.py |
241 |
-@@ -9,7 +9,7 @@ |
242 |
- from abc import abstractmethod |
243 |
- import sys |
244 |
- |
245 |
--import pytest # type: ignore # no pytest in typeshed |
246 |
-+import pytest |
247 |
- from typing import List, Tuple, Set, Optional, Iterator, Any, Dict, NamedTuple, Union |
248 |
- |
249 |
- from mypy.test.config import test_data_prefix, test_temp_dir, PREFIX |
250 |
-@@ -160,9 +160,12 @@ def parse_test_case(case: 'DataDrivenTestCase') -> None: |
251 |
- case.expected_fine_grained_targets = targets |
252 |
- |
253 |
- |
254 |
--class DataDrivenTestCase(pytest.Item): # type: ignore # inheriting from Any |
255 |
-+class DataDrivenTestCase(pytest.Item): |
256 |
- """Holds parsed data-driven test cases, and handles directory setup and teardown.""" |
257 |
- |
258 |
-+ # Override parent member type |
259 |
-+ parent = None # type: DataSuiteCollector |
260 |
-+ |
261 |
- input = None # type: List[str] |
262 |
- output = None # type: List[str] # Output for the first pass |
263 |
- output2 = None # type: Dict[int, List[str]] # Output for runs 2+, indexed by run number |
264 |
-@@ -266,7 +269,7 @@ def repr_failure(self, excinfo: Any, style: Optional[Any] = None) -> str: |
265 |
- # call exit() and they already print out a stack trace. |
266 |
- excrepr = excinfo.exconly() |
267 |
- else: |
268 |
-- self.parent._prunetraceback(excinfo) |
269 |
-+ self.parent._prunetraceback(excinfo) # type: ignore[no-untyped-call] |
270 |
- excrepr = excinfo.getrepr(style='short') |
271 |
- |
272 |
- return "data: {}:{}:\n{}".format(self.file, self.line, excrepr) |
273 |
-@@ -510,7 +513,9 @@ def pytest_pycollect_makeitem(collector: Any, name: str, |
274 |
- # Non-None result means this obj is a test case. |
275 |
- # The collect method of the returned DataSuiteCollector instance will be called later, |
276 |
- # with self.obj being obj. |
277 |
-- return DataSuiteCollector(name, parent=collector) |
278 |
-+ return DataSuiteCollector.from_parent( # type: ignore[no-untyped-call] |
279 |
-+ parent=collector, name=name |
280 |
-+ ) |
281 |
- return None |
282 |
- |
283 |
- |
284 |
-@@ -535,19 +540,23 @@ def split_test_cases(parent: 'DataSuiteCollector', suite: 'DataSuite', |
285 |
- for i in range(1, len(cases), 6): |
286 |
- name, writescache, only_when, platform_flag, skip, data = cases[i:i + 6] |
287 |
- platform = platform_flag[1:] if platform_flag else None |
288 |
-- yield DataDrivenTestCase(parent, suite, file, |
289 |
-- name=add_test_name_suffix(name, suite.test_name_suffix), |
290 |
-- writescache=bool(writescache), |
291 |
-- only_when=only_when, |
292 |
-- platform=platform, |
293 |
-- skip=bool(skip), |
294 |
-- data=data, |
295 |
-- line=line_no) |
296 |
-+ yield DataDrivenTestCase.from_parent( |
297 |
-+ parent=parent, |
298 |
-+ suite=suite, |
299 |
-+ file=file, |
300 |
-+ name=add_test_name_suffix(name, suite.test_name_suffix), |
301 |
-+ writescache=bool(writescache), |
302 |
-+ only_when=only_when, |
303 |
-+ platform=platform, |
304 |
-+ skip=bool(skip), |
305 |
-+ data=data, |
306 |
-+ line=line_no, |
307 |
-+ ) |
308 |
- line_no += data.count('\n') + 1 |
309 |
- |
310 |
- |
311 |
--class DataSuiteCollector(pytest.Class): # type: ignore # inheriting from Any |
312 |
-- def collect(self) -> Iterator[pytest.Item]: # type: ignore |
313 |
-+class DataSuiteCollector(pytest.Class): |
314 |
-+ def collect(self) -> Iterator[pytest.Item]: |
315 |
- """Called by pytest on each of the object returned from pytest_pycollect_makeitem""" |
316 |
- |
317 |
- # obj is the object for which pytest_pycollect_makeitem returned self. |
318 |
-diff --git a/mypy/test/helpers.py b/mypy/test/helpers.py |
319 |
-index 46c01114c4..91c5ff6ab2 100644 |
320 |
---- a/mypy/test/helpers.py |
321 |
-+++ b/mypy/test/helpers.py |
322 |
-@@ -10,7 +10,7 @@ |
323 |
- from mypy import defaults |
324 |
- import mypy.api as api |
325 |
- |
326 |
--import pytest # type: ignore # no pytest in typeshed |
327 |
-+import pytest |
328 |
- |
329 |
- # Exporting Suite as alias to TestCase for backwards compatibility |
330 |
- # TODO: avoid aliasing - import and subclass TestCase directly |
331 |
-diff --git a/mypy/test/testfinegrained.py b/mypy/test/testfinegrained.py |
332 |
-index 596391da44..d4ed18cab0 100644 |
333 |
---- a/mypy/test/testfinegrained.py |
334 |
-+++ b/mypy/test/testfinegrained.py |
335 |
-@@ -35,7 +35,7 @@ |
336 |
- from mypy.config_parser import parse_config_file |
337 |
- from mypy.find_sources import create_source_list |
338 |
- |
339 |
--import pytest # type: ignore # no pytest in typeshed |
340 |
-+import pytest |
341 |
- |
342 |
- # Set to True to perform (somewhat expensive) checks for duplicate AST nodes after merge |
343 |
- CHECK_CONSISTENCY = False |
344 |
-diff --git a/mypy/test/testipc.py b/mypy/test/testipc.py |
345 |
-index 1d4829d561..7dd829a590 100644 |
346 |
---- a/mypy/test/testipc.py |
347 |
-+++ b/mypy/test/testipc.py |
348 |
-@@ -3,7 +3,7 @@ |
349 |
- |
350 |
- from mypy.ipc import IPCClient, IPCServer |
351 |
- |
352 |
--import pytest # type: ignore |
353 |
-+import pytest |
354 |
- import sys |
355 |
- import time |
356 |
- |
357 |
-diff --git a/mypy/test/testparse.py b/mypy/test/testparse.py |
358 |
-index e990a403a5..e9ff6839bc 100644 |
359 |
---- a/mypy/test/testparse.py |
360 |
-+++ b/mypy/test/testparse.py |
361 |
-@@ -2,7 +2,7 @@ |
362 |
- |
363 |
- import sys |
364 |
- |
365 |
--from pytest import skip # type: ignore[import] |
366 |
-+from pytest import skip |
367 |
- |
368 |
- from mypy import defaults |
369 |
- from mypy.test.helpers import assert_string_arrays_equal, parse_options |
370 |
-diff --git a/mypy/test/testpep561.py b/mypy/test/testpep561.py |
371 |
-index a8eabd7702..aadf01ae5f 100644 |
372 |
---- a/mypy/test/testpep561.py |
373 |
-+++ b/mypy/test/testpep561.py |
374 |
-@@ -1,6 +1,6 @@ |
375 |
- from contextlib import contextmanager |
376 |
- import os |
377 |
--import pytest # type: ignore |
378 |
-+import pytest |
379 |
- import re |
380 |
- import subprocess |
381 |
- from subprocess import PIPE |
382 |
-diff --git a/mypy/test/testpythoneval.py b/mypy/test/testpythoneval.py |
383 |
-index 7586a3854e..e7e9f16183 100644 |
384 |
---- a/mypy/test/testpythoneval.py |
385 |
-+++ b/mypy/test/testpythoneval.py |
386 |
-@@ -18,7 +18,7 @@ |
387 |
- import sys |
388 |
- from tempfile import TemporaryDirectory |
389 |
- |
390 |
--import pytest # type: ignore # no pytest in typeshed |
391 |
-+import pytest |
392 |
- |
393 |
- from typing import List |
394 |
- |
395 |
-diff --git a/mypyc/test/testutil.py b/mypyc/test/testutil.py |
396 |
-index 18ab39a103..c1ce8626ba 100644 |
397 |
---- a/mypyc/test/testutil.py |
398 |
-+++ b/mypyc/test/testutil.py |
399 |
-@@ -7,7 +7,7 @@ |
400 |
- import shutil |
401 |
- from typing import List, Callable, Iterator, Optional, Tuple |
402 |
- |
403 |
--import pytest # type: ignore[import] |
404 |
-+import pytest |
405 |
- |
406 |
- from mypy import build |
407 |
- from mypy.errors import CompileError |
408 |
-diff --git a/pytest.ini b/pytest.ini |
409 |
-index 81586a2370..ed76809091 100644 |
410 |
---- a/pytest.ini |
411 |
-+++ b/pytest.ini |
412 |
-@@ -1,6 +1,5 @@ |
413 |
- [pytest] |
414 |
--# testpaths is new in 2.8 |
415 |
--minversion = 2.8 |
416 |
-+minversion = 6.0.0 |
417 |
- |
418 |
- testpaths = mypy/test mypyc/test |
419 |
- |
420 |
|
421 |
diff --git a/dev-python/mypy/mypy-0.782.ebuild b/dev-python/mypy/mypy-0.782.ebuild |
422 |
deleted file mode 100644 |
423 |
index c5290e4f5d9..00000000000 |
424 |
--- a/dev-python/mypy/mypy-0.782.ebuild |
425 |
+++ /dev/null |
426 |
@@ -1,58 +0,0 @@ |
427 |
-# Copyright 1999-2020 Gentoo Authors |
428 |
-# Distributed under the terms of the GNU General Public License v2 |
429 |
- |
430 |
-EAPI=7 |
431 |
- |
432 |
-PYTHON_COMPAT=( python3_{6..9} ) |
433 |
-DISTUTILS_USE_SETUPTOOLS=rdepend |
434 |
- |
435 |
-inherit distutils-r1 |
436 |
- |
437 |
-DESCRIPTION="Optional static typing for Python" |
438 |
-HOMEPAGE="http://www.mypy-lang.org/" |
439 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
440 |
- |
441 |
-LICENSE="MIT" |
442 |
-SLOT="0" |
443 |
-KEYWORDS="amd64 arm64 ~ia64 x86" |
444 |
- |
445 |
-# stubgen collides with this package: https://bugs.gentoo.org/585594 |
446 |
-RDEPEND=" |
447 |
- !dev-util/stubgen |
448 |
- >=dev-python/psutil-4[${PYTHON_USEDEP}] |
449 |
- >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}] |
450 |
- <dev-python/typed-ast-1.5.0[${PYTHON_USEDEP}] |
451 |
- >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}] |
452 |
- >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}] |
453 |
- <dev-python/mypy_extensions-0.5.0[${PYTHON_USEDEP}] |
454 |
-" |
455 |
-BDEPEND=" |
456 |
- test? ( |
457 |
- >=dev-python/attrs-18.0[${PYTHON_USEDEP}] |
458 |
- >=dev-python/lxml-4.4.0[${PYTHON_USEDEP}] |
459 |
- >=dev-python/pytest-6.0.0[${PYTHON_USEDEP}] |
460 |
- >=dev-python/pytest-xdist-1.18[${PYTHON_USEDEP}] |
461 |
- >=dev-python/py-1.5.2[${PYTHON_USEDEP}] |
462 |
- >=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}] |
463 |
- ) |
464 |
-" |
465 |
- |
466 |
-PATCHES=( |
467 |
- # The first two patches are backports from upstream commits |
468 |
- # They should be removed during the next bump |
469 |
- "${FILESDIR}/${P}-py39-fixes.patch" |
470 |
- "${FILESDIR}/${P}-pytest-6.patch" |
471 |
- # Needed to collect all tests |
472 |
- # https://github.com/python/mypy/pull/9543 |
473 |
- "${FILESDIR}/${P}-conftest.patch" |
474 |
-) |
475 |
- |
476 |
-distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme |
477 |
-distutils_enable_tests pytest |
478 |
- |
479 |
-python_prepare_all() { |
480 |
- # https://github.com/python/mypy/commit/2f291f2e312dd3bf2c05c45da0b032b240bfd7ab |
481 |
- # Avoid a big patch by deleting the file manually |
482 |
- rm test-data/samples/crawl.py || die |
483 |
- distutils-r1_python_prepare_all |
484 |
-} |