1 |
commit: 1eb2711a39d56cb5e8ade0c9e47a1c922c42c8c1 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 28 07:00:35 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 28 08:13:36 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1eb2711a |
7 |
|
8 |
dev-python/mypy: Bump to 0.950 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/mypy/Manifest | 1 + |
13 |
dev-python/mypy/mypy-0.950.ebuild | 55 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 56 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/mypy/Manifest b/dev-python/mypy/Manifest |
17 |
index 4437c142098e..c43416443d74 100644 |
18 |
--- a/dev-python/mypy/Manifest |
19 |
+++ b/dev-python/mypy/Manifest |
20 |
@@ -5,3 +5,4 @@ DIST mypy-0.931.tar.gz 2779826 BLAKE2B 11986102c6bc498a23bae52002e6ac515fa03724e |
21 |
DIST mypy-0.940.tar.gz 2700469 BLAKE2B 4ac13002c3752566ade30a720c4de56d600552221c42f930af54a68573e6b5eb10de90ce66e2cd42f9eb419d5d09e354e4bf2d09cbcf0d6b841ab0e6710d7058 SHA512 5131ea3fe8d96f12442c68dddf04261582a063dcdd031804276263949af9f9af967be3dd775868d289709987773e1911f33e1f43951389f93cabf91c771e271f |
22 |
DIST mypy-0.941.tar.gz 2700297 BLAKE2B 1d0369336b82c167dc25da8bcc21817b351a65a2543727f08c2e14aa15a75fec21b0937eb09b8060b405c09703b8052d4ed2df65d6e27f5dd429998b110a9e35 SHA512 39ef6e0d9215f0f530ca572d3b701a877f9b968034c2ca5a04549bf6a337a8d3609c23bc45bf45b16209128d26ab2b74bca27ecbdc5de53581429b47fb348aa8 |
23 |
DIST mypy-0.942.tar.gz 2701940 BLAKE2B 5501466e57b4afb8825e6c804cbdc270c79ff457c39f2e5834f4b68df70263c05b2b9abb08fe58202ee65f5e22d2291f39fcb1fc47168416134538c5f6e12ab3 SHA512 79b83587eefad10d7d20d3bfd8484a9e8b2d363e68c1e5ffaa3a82ca8b8f8d9183036ea46695a634f9156911d6f918af684ac636105b37b3a5d0e958f5d661f4 |
24 |
+DIST mypy-0.950.tar.gz 2746164 BLAKE2B 8466012fd3622f5e730acef774115ac84ff8c6f5488213a450de63d5acc790f937b7c69a1b05b46deef6fe8f81a13ed8e85f83c6c22cce9abdbb73b2ecf4179c SHA512 949d1dade3f225bbef0934fff040f7d5aec47039f554a669ca491d6cb46d56de3fcae0186864cdcaf5dec1347bc3af453218520536a0afa77e89a5c0e4640500 |
25 |
|
26 |
diff --git a/dev-python/mypy/mypy-0.950.ebuild b/dev-python/mypy/mypy-0.950.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..7a153fc2a262 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/mypy/mypy-0.950.ebuild |
31 |
@@ -0,0 +1,55 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+DISTUTILS_USE_PEP517=setuptools |
38 |
+PYTHON_COMPAT=( python3_{8..10} ) |
39 |
+ |
40 |
+inherit distutils-r1 multiprocessing |
41 |
+ |
42 |
+DESCRIPTION="Optional static typing for Python" |
43 |
+HOMEPAGE="http://www.mypy-lang.org/" |
44 |
+SRC_URI="https://github.com/python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="MIT" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
49 |
+ |
50 |
+# stubgen collides with this package: https://bugs.gentoo.org/585594 |
51 |
+RDEPEND=" |
52 |
+ !dev-util/stubgen |
53 |
+ >=dev-python/psutil-4[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}] |
55 |
+ <dev-python/typed-ast-1.5.0[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}] |
58 |
+ <dev-python/mypy_extensions-0.5.0[${PYTHON_USEDEP}] |
59 |
+ $(python_gen_cond_dep ' |
60 |
+ dev-python/tomli[${PYTHON_USEDEP}] |
61 |
+ ' 3.8 3.9 3.10) |
62 |
+" |
63 |
+BDEPEND=" |
64 |
+ test? ( |
65 |
+ >=dev-python/attrs-18.0[${PYTHON_USEDEP}] |
66 |
+ >=dev-python/lxml-4.4.0[${PYTHON_USEDEP}] |
67 |
+ >=dev-python/pytest-6.1.0[${PYTHON_USEDEP}] |
68 |
+ >=dev-python/pytest-xdist-1.18[${PYTHON_USEDEP}] |
69 |
+ >=dev-python/py-1.5.2[${PYTHON_USEDEP}] |
70 |
+ >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}] |
71 |
+ >=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}] |
72 |
+ ) |
73 |
+" |
74 |
+ |
75 |
+distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme |
76 |
+distutils_enable_tests pytest |
77 |
+ |
78 |
+# this requires packaging a lot of type stubs |
79 |
+export MYPY_USE_MYPYC=0 |
80 |
+ |
81 |
+python_test() { |
82 |
+ # Some mypy/test/testcmdline.py::PythonCmdlineSuite tests |
83 |
+ # fail with high COLUMNS values |
84 |
+ local -x COLUMNS=80 |
85 |
+ epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
86 |
+} |