1 |
commit: 49a4ddd0522c27be61e20a49ea7151f615cc30ba |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 21 20:37:03 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 21 20:43:33 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49a4ddd0 |
7 |
|
8 |
dev-python/mypy: add 0.921 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/829754 |
11 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
12 |
|
13 |
dev-python/mypy/Manifest | 1 + |
14 |
dev-python/mypy/mypy-0.921.ebuild | 61 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 62 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/mypy/Manifest b/dev-python/mypy/Manifest |
18 |
index 473e5edba958..b90016e39a4e 100644 |
19 |
--- a/dev-python/mypy/Manifest |
20 |
+++ b/dev-python/mypy/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST mypy-0.910.tar.gz 2551057 BLAKE2B a3c6939c8f0e2ea19a3a3f91031330df2fb25a93cc3f9239535f15c17eedcca5716cc75c5412a1d345d8572d396c3d7128e38989fd694833cb6aec8366ac4afe SHA512 49060c13da8bf17385b6b1db6efa9ac5771f2bac92d26760c4087cf128de22846b8a062f38e83ecff524e7893f8c9cd0647a2ef89e10387138544436a2840459 |
23 |
+DIST mypy-0.921.tar.gz 2730985 BLAKE2B cfb7b54165b961758891fcf225f1a7d6bd9c6a7b14e6bb6d8adb990ed047bc4983b5e82de6709d3b8db85a3914e1bae2be4fd36e878d37db7387ebe6e81daac1 SHA512 f592d440b45a1bbcab973aeb717ffc805164168f1369793067a46bd2884fedcb9f981bfadd3447c6801120042553a7a7110d8cfc4e1649241d3b8685dffef653 |
24 |
|
25 |
diff --git a/dev-python/mypy/mypy-0.921.ebuild b/dev-python/mypy/mypy-0.921.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..5b0169a2ae37 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/mypy/mypy-0.921.ebuild |
30 |
@@ -0,0 +1,61 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{8..10} ) |
37 |
+inherit distutils-r1 multiprocessing |
38 |
+ |
39 |
+DESCRIPTION="Optional static typing for Python" |
40 |
+HOMEPAGE="http://www.mypy-lang.org/" |
41 |
+SRC_URI="https://github.com/python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="MIT" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
46 |
+ |
47 |
+# stubgen collides with this package: https://bugs.gentoo.org/585594 |
48 |
+RDEPEND=" |
49 |
+ !dev-util/stubgen |
50 |
+ >=dev-python/psutil-4[${PYTHON_USEDEP}] |
51 |
+ >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}] |
52 |
+ <dev-python/typed-ast-1.5.0[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}] |
55 |
+ <dev-python/mypy_extensions-0.5.0[${PYTHON_USEDEP}] |
56 |
+ dev-python/tomli[${PYTHON_USEDEP}] |
57 |
+" |
58 |
+BDEPEND=" |
59 |
+ test? ( |
60 |
+ >=dev-python/attrs-18.0[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/lxml-4.4.0[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/pytest-6.1.0[${PYTHON_USEDEP}] |
63 |
+ >=dev-python/pytest-xdist-1.18[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/py-1.5.2[${PYTHON_USEDEP}] |
65 |
+ >=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}] |
66 |
+ ) |
67 |
+" |
68 |
+ |
69 |
+distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme |
70 |
+distutils_enable_tests pytest |
71 |
+ |
72 |
+# this requires packaging a lot of type stubs |
73 |
+export MYPY_USE_MYPYC=0 |
74 |
+ |
75 |
+python_test() { |
76 |
+ local EPYTEST_DESELECT=( |
77 |
+ # Fails with pytest-xdist 2.3.0 |
78 |
+ # https://github.com/python/mypy/issues/11019 |
79 |
+ mypy/test/teststubtest.py |
80 |
+ ) |
81 |
+ |
82 |
+ [[ "${EPYTHON}" == "python3.10" ]] && EPYTEST_DESELECT+=( |
83 |
+ # https://github.com/python/mypy/issues/11018 |
84 |
+ mypyc/test/test_commandline.py::TestCommandLine::testErrorOutput |
85 |
+ ) |
86 |
+ |
87 |
+ # Some mypy/test/testcmdline.py::PythonCmdlineSuite tests |
88 |
+ # fail with high COLUMNS values |
89 |
+ local -x COLUMNS=80 |
90 |
+ epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
91 |
+} |