1 |
commit: d8ac507127674c2ff33ba646d67758eac8c440b0 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 7 09:34:39 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 7 09:34:39 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8ac5071 |
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 | 6 -- |
13 |
.../mypy/files/mypy-0.910-py3.10-tests.patch | 51 ---------------- |
14 |
dev-python/mypy/mypy-0.910-r1.ebuild | 68 ---------------------- |
15 |
dev-python/mypy/mypy-0.921.ebuild | 61 ------------------- |
16 |
dev-python/mypy/mypy-0.930.ebuild | 64 -------------------- |
17 |
dev-python/mypy/mypy-0.931.ebuild | 64 -------------------- |
18 |
dev-python/mypy/mypy-0.940.ebuild | 66 --------------------- |
19 |
dev-python/mypy/mypy-0.941.ebuild | 66 --------------------- |
20 |
8 files changed, 446 deletions(-) |
21 |
|
22 |
diff --git a/dev-python/mypy/Manifest b/dev-python/mypy/Manifest |
23 |
index c43416443d74..0cf397ea48cf 100644 |
24 |
--- a/dev-python/mypy/Manifest |
25 |
+++ b/dev-python/mypy/Manifest |
26 |
@@ -1,8 +1,2 @@ |
27 |
-DIST mypy-0.910.tar.gz 2551057 BLAKE2B a3c6939c8f0e2ea19a3a3f91031330df2fb25a93cc3f9239535f15c17eedcca5716cc75c5412a1d345d8572d396c3d7128e38989fd694833cb6aec8366ac4afe SHA512 49060c13da8bf17385b6b1db6efa9ac5771f2bac92d26760c4087cf128de22846b8a062f38e83ecff524e7893f8c9cd0647a2ef89e10387138544436a2840459 |
28 |
-DIST mypy-0.921.tar.gz 2730985 BLAKE2B cfb7b54165b961758891fcf225f1a7d6bd9c6a7b14e6bb6d8adb990ed047bc4983b5e82de6709d3b8db85a3914e1bae2be4fd36e878d37db7387ebe6e81daac1 SHA512 f592d440b45a1bbcab973aeb717ffc805164168f1369793067a46bd2884fedcb9f981bfadd3447c6801120042553a7a7110d8cfc4e1649241d3b8685dffef653 |
29 |
-DIST mypy-0.930.tar.gz 2777310 BLAKE2B 4681991993b04679d21c8f6bf8327a02eb628addc289ed22fbf06e4865ee9e60b90ab41a0d0b069d0a50924bf210816bdb87cff902d4424741f4e141f0957684 SHA512 f7f7ed762eb0f56b46a174c51c34423633d72b5046129617e456c41647705380b014c0c27bd0a104319e4872f2a7d7900a260bf6151d4419c95c93e4c01c6e9d |
30 |
-DIST mypy-0.931.tar.gz 2779826 BLAKE2B 11986102c6bc498a23bae52002e6ac515fa03724eed867b5356e3fb9aaa9a6eb7e699b612ab81b99dac215119402beecc702421fa82d655913976889dd4cb833 SHA512 8a336ae2f784c8ff912fc6b7dd53ed106cf14f435cee65604de74b8d4d7ab39ad65af0646060ef78e958d5a51a1de090fad628461412f2eef9593a8c032aa87a |
31 |
-DIST mypy-0.940.tar.gz 2700469 BLAKE2B 4ac13002c3752566ade30a720c4de56d600552221c42f930af54a68573e6b5eb10de90ce66e2cd42f9eb419d5d09e354e4bf2d09cbcf0d6b841ab0e6710d7058 SHA512 5131ea3fe8d96f12442c68dddf04261582a063dcdd031804276263949af9f9af967be3dd775868d289709987773e1911f33e1f43951389f93cabf91c771e271f |
32 |
-DIST mypy-0.941.tar.gz 2700297 BLAKE2B 1d0369336b82c167dc25da8bcc21817b351a65a2543727f08c2e14aa15a75fec21b0937eb09b8060b405c09703b8052d4ed2df65d6e27f5dd429998b110a9e35 SHA512 39ef6e0d9215f0f530ca572d3b701a877f9b968034c2ca5a04549bf6a337a8d3609c23bc45bf45b16209128d26ab2b74bca27ecbdc5de53581429b47fb348aa8 |
33 |
DIST mypy-0.942.tar.gz 2701940 BLAKE2B 5501466e57b4afb8825e6c804cbdc270c79ff457c39f2e5834f4b68df70263c05b2b9abb08fe58202ee65f5e22d2291f39fcb1fc47168416134538c5f6e12ab3 SHA512 79b83587eefad10d7d20d3bfd8484a9e8b2d363e68c1e5ffaa3a82ca8b8f8d9183036ea46695a634f9156911d6f918af684ac636105b37b3a5d0e958f5d661f4 |
34 |
DIST mypy-0.950.tar.gz 2746164 BLAKE2B 8466012fd3622f5e730acef774115ac84ff8c6f5488213a450de63d5acc790f937b7c69a1b05b46deef6fe8f81a13ed8e85f83c6c22cce9abdbb73b2ecf4179c SHA512 949d1dade3f225bbef0934fff040f7d5aec47039f554a669ca491d6cb46d56de3fcae0186864cdcaf5dec1347bc3af453218520536a0afa77e89a5c0e4640500 |
35 |
|
36 |
diff --git a/dev-python/mypy/files/mypy-0.910-py3.10-tests.patch b/dev-python/mypy/files/mypy-0.910-py3.10-tests.patch |
37 |
deleted file mode 100644 |
38 |
index 16e85049cc1e..000000000000 |
39 |
--- a/dev-python/mypy/files/mypy-0.910-py3.10-tests.patch |
40 |
+++ /dev/null |
41 |
@@ -1,51 +0,0 @@ |
42 |
-diff --git a/mypyc/test-data/run-misc.test b/mypyc/test-data/run-misc.test |
43 |
-index 431efc228..0c1a26c1b 100644 |
44 |
---- a/mypyc/test-data/run-misc.test |
45 |
-+++ b/mypyc/test-data/run-misc.test |
46 |
-@@ -13,8 +13,7 @@ async def g() -> int: |
47 |
- async def f() -> int: |
48 |
- return await g() |
49 |
- |
50 |
--loop = asyncio.get_event_loop() |
51 |
--result = loop.run_until_complete(f()) |
52 |
-+result = asyncio.run(f()) |
53 |
- assert result == 1 |
54 |
- |
55 |
- [typing fixtures/typing-full.pyi] |
56 |
-@@ -22,8 +21,8 @@ assert result == 1 |
57 |
- [file driver.py] |
58 |
- from native import f |
59 |
- import asyncio |
60 |
--loop = asyncio.get_event_loop() |
61 |
--result = loop.run_until_complete(f()) |
62 |
-+ |
63 |
-+result = asyncio.run(f()) |
64 |
- assert result == 1 |
65 |
- |
66 |
- [case testMaybeUninitVar] |
67 |
-diff --git a/test-data/stdlib-samples/3.2/random.py b/test-data/stdlib-samples/3.2/random.py |
68 |
-index 7eecdfe04..82bda03f7 100644 |
69 |
---- a/test-data/stdlib-samples/3.2/random.py |
70 |
-+++ b/test-data/stdlib-samples/3.2/random.py |
71 |
-@@ -41,7 +41,7 @@ from types import MethodType as _MethodType, BuiltinMethodType as _BuiltinMethod |
72 |
- from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil |
73 |
- from math import sqrt as _sqrt, acos as _acos, cos as _cos, sin as _sin |
74 |
- from os import urandom as _urandom |
75 |
--from collections import Set as _Set, Sequence as _Sequence |
76 |
-+from collections.abc import Set as _Set, Sequence as _Sequence |
77 |
- from hashlib import sha512 as _sha512 |
78 |
- |
79 |
- from typing import ( |
80 |
-diff --git a/test-data/unit/cmdline.test b/test-data/unit/cmdline.test |
81 |
-index 92ef7e069..87d04f3c4 100644 |
82 |
---- a/test-data/unit/cmdline.test |
83 |
-+++ b/test-data/unit/cmdline.test |
84 |
-@@ -791,7 +791,7 @@ c.py:2: error: Argument 1 to "bar" has incompatible type "str"; expected "int" |
85 |
- [case testSrcPEP420Packages] |
86 |
- # cmd: mypy -p anamespace --namespace-packages |
87 |
- [file mypy.ini] |
88 |
--\[mypy]] |
89 |
-+\[mypy] |
90 |
- mypy_path = src |
91 |
- [file src/setup.cfg] |
92 |
- [file src/anamespace/foo/__init__.py] |
93 |
|
94 |
diff --git a/dev-python/mypy/mypy-0.910-r1.ebuild b/dev-python/mypy/mypy-0.910-r1.ebuild |
95 |
deleted file mode 100644 |
96 |
index dcee802477a7..000000000000 |
97 |
--- a/dev-python/mypy/mypy-0.910-r1.ebuild |
98 |
+++ /dev/null |
99 |
@@ -1,68 +0,0 @@ |
100 |
-# Copyright 1999-2021 Gentoo Authors |
101 |
-# Distributed under the terms of the GNU General Public License v2 |
102 |
- |
103 |
-EAPI=7 |
104 |
- |
105 |
-PYTHON_COMPAT=( python3_{8..10} ) |
106 |
-inherit distutils-r1 multiprocessing |
107 |
- |
108 |
-DESCRIPTION="Optional static typing for Python" |
109 |
-HOMEPAGE="http://www.mypy-lang.org/" |
110 |
-SRC_URI="https://github.com/python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
111 |
- |
112 |
-LICENSE="MIT" |
113 |
-SLOT="0" |
114 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86" |
115 |
- |
116 |
-# stubgen collides with this package: https://bugs.gentoo.org/585594 |
117 |
-# Note: replace toml with tomli on next version bump |
118 |
-# https://github.com/python/mypy/pull/10824 |
119 |
-RDEPEND=" |
120 |
- !dev-util/stubgen |
121 |
- >=dev-python/psutil-4[${PYTHON_USEDEP}] |
122 |
- >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}] |
123 |
- <dev-python/typed-ast-1.5.0[${PYTHON_USEDEP}] |
124 |
- >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}] |
125 |
- >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}] |
126 |
- <dev-python/mypy_extensions-0.5.0[${PYTHON_USEDEP}] |
127 |
- dev-python/toml[${PYTHON_USEDEP}] |
128 |
-" |
129 |
-BDEPEND=" |
130 |
- test? ( |
131 |
- >=dev-python/attrs-18.0[${PYTHON_USEDEP}] |
132 |
- >=dev-python/lxml-4.4.0[${PYTHON_USEDEP}] |
133 |
- >=dev-python/pytest-6.1.0[${PYTHON_USEDEP}] |
134 |
- >=dev-python/pytest-xdist-1.18[${PYTHON_USEDEP}] |
135 |
- >=dev-python/py-1.5.2[${PYTHON_USEDEP}] |
136 |
- >=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}] |
137 |
- ) |
138 |
-" |
139 |
- |
140 |
-distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme |
141 |
-distutils_enable_tests pytest |
142 |
- |
143 |
-PATCHES=( |
144 |
- # https://github.com/python/mypy/pull/11017 |
145 |
- "${FILESDIR}/${P}-py3.10-tests.patch" |
146 |
-) |
147 |
- |
148 |
-# this requires packaging a lot of type stubs |
149 |
-export MYPY_USE_MYPYC=0 |
150 |
- |
151 |
-python_test() { |
152 |
- local EPYTEST_DESELECT=( |
153 |
- # Fails with pytest-xdist 2.3.0 |
154 |
- # https://github.com/python/mypy/issues/11019 |
155 |
- mypy/test/teststubtest.py |
156 |
- ) |
157 |
- |
158 |
- [[ "${EPYTHON}" == "python3.10" ]] && EPYTEST_DESELECT+=( |
159 |
- # https://github.com/python/mypy/issues/11018 |
160 |
- mypyc/test/test_commandline.py::TestCommandLine::testErrorOutput |
161 |
- ) |
162 |
- |
163 |
- # Some mypy/test/testcmdline.py::PythonCmdlineSuite tests |
164 |
- # fail with high COLUMNS values |
165 |
- local -x COLUMNS=80 |
166 |
- epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
167 |
-} |
168 |
|
169 |
diff --git a/dev-python/mypy/mypy-0.921.ebuild b/dev-python/mypy/mypy-0.921.ebuild |
170 |
deleted file mode 100644 |
171 |
index 5b0169a2ae37..000000000000 |
172 |
--- a/dev-python/mypy/mypy-0.921.ebuild |
173 |
+++ /dev/null |
174 |
@@ -1,61 +0,0 @@ |
175 |
-# Copyright 1999-2021 Gentoo Authors |
176 |
-# Distributed under the terms of the GNU General Public License v2 |
177 |
- |
178 |
-EAPI=8 |
179 |
- |
180 |
-PYTHON_COMPAT=( python3_{8..10} ) |
181 |
-inherit distutils-r1 multiprocessing |
182 |
- |
183 |
-DESCRIPTION="Optional static typing for Python" |
184 |
-HOMEPAGE="http://www.mypy-lang.org/" |
185 |
-SRC_URI="https://github.com/python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
186 |
- |
187 |
-LICENSE="MIT" |
188 |
-SLOT="0" |
189 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
190 |
- |
191 |
-# stubgen collides with this package: https://bugs.gentoo.org/585594 |
192 |
-RDEPEND=" |
193 |
- !dev-util/stubgen |
194 |
- >=dev-python/psutil-4[${PYTHON_USEDEP}] |
195 |
- >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}] |
196 |
- <dev-python/typed-ast-1.5.0[${PYTHON_USEDEP}] |
197 |
- >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}] |
198 |
- >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}] |
199 |
- <dev-python/mypy_extensions-0.5.0[${PYTHON_USEDEP}] |
200 |
- dev-python/tomli[${PYTHON_USEDEP}] |
201 |
-" |
202 |
-BDEPEND=" |
203 |
- test? ( |
204 |
- >=dev-python/attrs-18.0[${PYTHON_USEDEP}] |
205 |
- >=dev-python/lxml-4.4.0[${PYTHON_USEDEP}] |
206 |
- >=dev-python/pytest-6.1.0[${PYTHON_USEDEP}] |
207 |
- >=dev-python/pytest-xdist-1.18[${PYTHON_USEDEP}] |
208 |
- >=dev-python/py-1.5.2[${PYTHON_USEDEP}] |
209 |
- >=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}] |
210 |
- ) |
211 |
-" |
212 |
- |
213 |
-distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme |
214 |
-distutils_enable_tests pytest |
215 |
- |
216 |
-# this requires packaging a lot of type stubs |
217 |
-export MYPY_USE_MYPYC=0 |
218 |
- |
219 |
-python_test() { |
220 |
- local EPYTEST_DESELECT=( |
221 |
- # Fails with pytest-xdist 2.3.0 |
222 |
- # https://github.com/python/mypy/issues/11019 |
223 |
- mypy/test/teststubtest.py |
224 |
- ) |
225 |
- |
226 |
- [[ "${EPYTHON}" == "python3.10" ]] && EPYTEST_DESELECT+=( |
227 |
- # https://github.com/python/mypy/issues/11018 |
228 |
- mypyc/test/test_commandline.py::TestCommandLine::testErrorOutput |
229 |
- ) |
230 |
- |
231 |
- # Some mypy/test/testcmdline.py::PythonCmdlineSuite tests |
232 |
- # fail with high COLUMNS values |
233 |
- local -x COLUMNS=80 |
234 |
- epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
235 |
-} |
236 |
|
237 |
diff --git a/dev-python/mypy/mypy-0.930.ebuild b/dev-python/mypy/mypy-0.930.ebuild |
238 |
deleted file mode 100644 |
239 |
index f1b8dc80aa27..000000000000 |
240 |
--- a/dev-python/mypy/mypy-0.930.ebuild |
241 |
+++ /dev/null |
242 |
@@ -1,64 +0,0 @@ |
243 |
-# Copyright 1999-2022 Gentoo Authors |
244 |
-# Distributed under the terms of the GNU General Public License v2 |
245 |
- |
246 |
-EAPI=8 |
247 |
- |
248 |
-PYTHON_COMPAT=( python3_{8..10} ) |
249 |
-inherit distutils-r1 multiprocessing |
250 |
- |
251 |
-DESCRIPTION="Optional static typing for Python" |
252 |
-HOMEPAGE="http://www.mypy-lang.org/" |
253 |
-SRC_URI="https://github.com/python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
254 |
- |
255 |
-LICENSE="MIT" |
256 |
-SLOT="0" |
257 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc ~x86" |
258 |
- |
259 |
-# stubgen collides with this package: https://bugs.gentoo.org/585594 |
260 |
-RDEPEND=" |
261 |
- !dev-util/stubgen |
262 |
- >=dev-python/psutil-4[${PYTHON_USEDEP}] |
263 |
- >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}] |
264 |
- <dev-python/typed-ast-1.5.0[${PYTHON_USEDEP}] |
265 |
- >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}] |
266 |
- >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}] |
267 |
- <dev-python/mypy_extensions-0.5.0[${PYTHON_USEDEP}] |
268 |
- dev-python/tomli[${PYTHON_USEDEP}] |
269 |
-" |
270 |
-BDEPEND=" |
271 |
- test? ( |
272 |
- >=dev-python/attrs-18.0[${PYTHON_USEDEP}] |
273 |
- >=dev-python/lxml-4.4.0[${PYTHON_USEDEP}] |
274 |
- >=dev-python/pytest-6.1.0[${PYTHON_USEDEP}] |
275 |
- >=dev-python/pytest-xdist-1.18[${PYTHON_USEDEP}] |
276 |
- >=dev-python/py-1.5.2[${PYTHON_USEDEP}] |
277 |
- >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}] |
278 |
- >=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}] |
279 |
- ) |
280 |
-" |
281 |
- |
282 |
-distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme |
283 |
-distutils_enable_tests pytest |
284 |
- |
285 |
-# this requires packaging a lot of type stubs |
286 |
-export MYPY_USE_MYPYC=0 |
287 |
- |
288 |
-python_test() { |
289 |
- local EPYTEST_DESELECT=( |
290 |
- # Fails with pytest-xdist 2.3.0 |
291 |
- # https://github.com/python/mypy/issues/11019 |
292 |
- mypy/test/teststubtest.py |
293 |
- # fails due to setuptools deprecation warnings |
294 |
- mypyc/test/test_run.py::TestRun::run-imports.test::testImports |
295 |
- ) |
296 |
- |
297 |
- [[ "${EPYTHON}" == "python3.10" ]] && EPYTEST_DESELECT+=( |
298 |
- # https://github.com/python/mypy/issues/11018 |
299 |
- mypyc/test/test_commandline.py::TestCommandLine::testErrorOutput |
300 |
- ) |
301 |
- |
302 |
- # Some mypy/test/testcmdline.py::PythonCmdlineSuite tests |
303 |
- # fail with high COLUMNS values |
304 |
- local -x COLUMNS=80 |
305 |
- epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
306 |
-} |
307 |
|
308 |
diff --git a/dev-python/mypy/mypy-0.931.ebuild b/dev-python/mypy/mypy-0.931.ebuild |
309 |
deleted file mode 100644 |
310 |
index 2cbc867f7765..000000000000 |
311 |
--- a/dev-python/mypy/mypy-0.931.ebuild |
312 |
+++ /dev/null |
313 |
@@ -1,64 +0,0 @@ |
314 |
-# Copyright 1999-2022 Gentoo Authors |
315 |
-# Distributed under the terms of the GNU General Public License v2 |
316 |
- |
317 |
-EAPI=8 |
318 |
- |
319 |
-PYTHON_COMPAT=( python3_{8..10} ) |
320 |
-inherit distutils-r1 multiprocessing |
321 |
- |
322 |
-DESCRIPTION="Optional static typing for Python" |
323 |
-HOMEPAGE="http://www.mypy-lang.org/" |
324 |
-SRC_URI="https://github.com/python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
325 |
- |
326 |
-LICENSE="MIT" |
327 |
-SLOT="0" |
328 |
-KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86" |
329 |
- |
330 |
-# stubgen collides with this package: https://bugs.gentoo.org/585594 |
331 |
-RDEPEND=" |
332 |
- !dev-util/stubgen |
333 |
- >=dev-python/psutil-4[${PYTHON_USEDEP}] |
334 |
- >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}] |
335 |
- <dev-python/typed-ast-1.5.0[${PYTHON_USEDEP}] |
336 |
- >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}] |
337 |
- >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}] |
338 |
- <dev-python/mypy_extensions-0.5.0[${PYTHON_USEDEP}] |
339 |
- dev-python/tomli[${PYTHON_USEDEP}] |
340 |
-" |
341 |
-BDEPEND=" |
342 |
- test? ( |
343 |
- >=dev-python/attrs-18.0[${PYTHON_USEDEP}] |
344 |
- >=dev-python/lxml-4.4.0[${PYTHON_USEDEP}] |
345 |
- >=dev-python/pytest-6.1.0[${PYTHON_USEDEP}] |
346 |
- >=dev-python/pytest-xdist-1.18[${PYTHON_USEDEP}] |
347 |
- >=dev-python/py-1.5.2[${PYTHON_USEDEP}] |
348 |
- >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}] |
349 |
- >=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}] |
350 |
- ) |
351 |
-" |
352 |
- |
353 |
-distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme |
354 |
-distutils_enable_tests pytest |
355 |
- |
356 |
-# this requires packaging a lot of type stubs |
357 |
-export MYPY_USE_MYPYC=0 |
358 |
- |
359 |
-python_test() { |
360 |
- local EPYTEST_DESELECT=( |
361 |
- # Fails with pytest-xdist 2.3.0 |
362 |
- # https://github.com/python/mypy/issues/11019 |
363 |
- mypy/test/teststubtest.py |
364 |
- # fails due to setuptools deprecation warnings |
365 |
- mypyc/test/test_run.py::TestRun::run-imports.test::testImports |
366 |
- ) |
367 |
- |
368 |
- [[ "${EPYTHON}" == "python3.10" ]] && EPYTEST_DESELECT+=( |
369 |
- # https://github.com/python/mypy/issues/11018 |
370 |
- mypyc/test/test_commandline.py::TestCommandLine::testErrorOutput |
371 |
- ) |
372 |
- |
373 |
- # Some mypy/test/testcmdline.py::PythonCmdlineSuite tests |
374 |
- # fail with high COLUMNS values |
375 |
- local -x COLUMNS=80 |
376 |
- epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
377 |
-} |
378 |
|
379 |
diff --git a/dev-python/mypy/mypy-0.940.ebuild b/dev-python/mypy/mypy-0.940.ebuild |
380 |
deleted file mode 100644 |
381 |
index aa40a8f0ad7f..000000000000 |
382 |
--- a/dev-python/mypy/mypy-0.940.ebuild |
383 |
+++ /dev/null |
384 |
@@ -1,66 +0,0 @@ |
385 |
-# Copyright 1999-2022 Gentoo Authors |
386 |
-# Distributed under the terms of the GNU General Public License v2 |
387 |
- |
388 |
-EAPI=8 |
389 |
- |
390 |
-DISTUTILS_USE_PEP517=setuptools |
391 |
-PYTHON_COMPAT=( python3_{8..10} ) |
392 |
- |
393 |
-inherit distutils-r1 multiprocessing |
394 |
- |
395 |
-DESCRIPTION="Optional static typing for Python" |
396 |
-HOMEPAGE="http://www.mypy-lang.org/" |
397 |
-SRC_URI="https://github.com/python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
398 |
- |
399 |
-LICENSE="MIT" |
400 |
-SLOT="0" |
401 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
402 |
- |
403 |
-# stubgen collides with this package: https://bugs.gentoo.org/585594 |
404 |
-RDEPEND=" |
405 |
- !dev-util/stubgen |
406 |
- >=dev-python/psutil-4[${PYTHON_USEDEP}] |
407 |
- >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}] |
408 |
- <dev-python/typed-ast-1.5.0[${PYTHON_USEDEP}] |
409 |
- >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}] |
410 |
- >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}] |
411 |
- <dev-python/mypy_extensions-0.5.0[${PYTHON_USEDEP}] |
412 |
- dev-python/tomli[${PYTHON_USEDEP}] |
413 |
-" |
414 |
-BDEPEND=" |
415 |
- test? ( |
416 |
- >=dev-python/attrs-18.0[${PYTHON_USEDEP}] |
417 |
- >=dev-python/lxml-4.4.0[${PYTHON_USEDEP}] |
418 |
- >=dev-python/pytest-6.1.0[${PYTHON_USEDEP}] |
419 |
- >=dev-python/pytest-xdist-1.18[${PYTHON_USEDEP}] |
420 |
- >=dev-python/py-1.5.2[${PYTHON_USEDEP}] |
421 |
- >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}] |
422 |
- >=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}] |
423 |
- ) |
424 |
-" |
425 |
- |
426 |
-distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme |
427 |
-distutils_enable_tests pytest |
428 |
- |
429 |
-# this requires packaging a lot of type stubs |
430 |
-export MYPY_USE_MYPYC=0 |
431 |
- |
432 |
-python_test() { |
433 |
- local EPYTEST_DESELECT=( |
434 |
- # Fails with pytest-xdist 2.3.0 |
435 |
- # https://github.com/python/mypy/issues/11019 |
436 |
- mypy/test/teststubtest.py |
437 |
- # fails due to setuptools deprecation warnings |
438 |
- mypyc/test/test_run.py::TestRun::run-imports.test::testImports |
439 |
- ) |
440 |
- |
441 |
- [[ "${EPYTHON}" == "python3.10" ]] && EPYTEST_DESELECT+=( |
442 |
- # https://github.com/python/mypy/issues/11018 |
443 |
- mypyc/test/test_commandline.py::TestCommandLine::testErrorOutput |
444 |
- ) |
445 |
- |
446 |
- # Some mypy/test/testcmdline.py::PythonCmdlineSuite tests |
447 |
- # fail with high COLUMNS values |
448 |
- local -x COLUMNS=80 |
449 |
- epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
450 |
-} |
451 |
|
452 |
diff --git a/dev-python/mypy/mypy-0.941.ebuild b/dev-python/mypy/mypy-0.941.ebuild |
453 |
deleted file mode 100644 |
454 |
index 7c67c9d5047e..000000000000 |
455 |
--- a/dev-python/mypy/mypy-0.941.ebuild |
456 |
+++ /dev/null |
457 |
@@ -1,66 +0,0 @@ |
458 |
-# Copyright 1999-2022 Gentoo Authors |
459 |
-# Distributed under the terms of the GNU General Public License v2 |
460 |
- |
461 |
-EAPI=8 |
462 |
- |
463 |
-DISTUTILS_USE_PEP517=setuptools |
464 |
-PYTHON_COMPAT=( python3_{8..10} ) |
465 |
- |
466 |
-inherit distutils-r1 multiprocessing |
467 |
- |
468 |
-DESCRIPTION="Optional static typing for Python" |
469 |
-HOMEPAGE="http://www.mypy-lang.org/" |
470 |
-SRC_URI="https://github.com/python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
471 |
- |
472 |
-LICENSE="MIT" |
473 |
-SLOT="0" |
474 |
-KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
475 |
- |
476 |
-# stubgen collides with this package: https://bugs.gentoo.org/585594 |
477 |
-RDEPEND=" |
478 |
- !dev-util/stubgen |
479 |
- >=dev-python/psutil-4[${PYTHON_USEDEP}] |
480 |
- >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}] |
481 |
- <dev-python/typed-ast-1.5.0[${PYTHON_USEDEP}] |
482 |
- >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}] |
483 |
- >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}] |
484 |
- <dev-python/mypy_extensions-0.5.0[${PYTHON_USEDEP}] |
485 |
- dev-python/tomli[${PYTHON_USEDEP}] |
486 |
-" |
487 |
-BDEPEND=" |
488 |
- test? ( |
489 |
- >=dev-python/attrs-18.0[${PYTHON_USEDEP}] |
490 |
- >=dev-python/lxml-4.4.0[${PYTHON_USEDEP}] |
491 |
- >=dev-python/pytest-6.1.0[${PYTHON_USEDEP}] |
492 |
- >=dev-python/pytest-xdist-1.18[${PYTHON_USEDEP}] |
493 |
- >=dev-python/py-1.5.2[${PYTHON_USEDEP}] |
494 |
- >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}] |
495 |
- >=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}] |
496 |
- ) |
497 |
-" |
498 |
- |
499 |
-distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme |
500 |
-distutils_enable_tests pytest |
501 |
- |
502 |
-# this requires packaging a lot of type stubs |
503 |
-export MYPY_USE_MYPYC=0 |
504 |
- |
505 |
-python_test() { |
506 |
- local EPYTEST_DESELECT=( |
507 |
- # Fails with pytest-xdist 2.3.0 |
508 |
- # https://github.com/python/mypy/issues/11019 |
509 |
- mypy/test/teststubtest.py |
510 |
- # fails due to setuptools deprecation warnings |
511 |
- mypyc/test/test_run.py::TestRun::run-imports.test::testImports |
512 |
- ) |
513 |
- |
514 |
- [[ "${EPYTHON}" == "python3.10" ]] && EPYTEST_DESELECT+=( |
515 |
- # https://github.com/python/mypy/issues/11018 |
516 |
- mypyc/test/test_commandline.py::TestCommandLine::testErrorOutput |
517 |
- ) |
518 |
- |
519 |
- # Some mypy/test/testcmdline.py::PythonCmdlineSuite tests |
520 |
- # fail with high COLUMNS values |
521 |
- local -x COLUMNS=80 |
522 |
- epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
523 |
-} |