1 |
commit: da5279e4c7e418a436490b45e89878db1699613a |
2 |
Author: Matoro Mahri <matoro <AT> users <DOT> noreply <DOT> github <DOT> com> |
3 |
AuthorDate: Mon Sep 26 22:38:03 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 27 02:03:47 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da5279e4 |
7 |
|
8 |
dev-python/mypy: add 0.981 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/854462 |
11 |
Signed-off-by: Matoro Mahri <matoro <AT> users.noreply.github.com> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/27485 |
13 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
14 |
|
15 |
dev-python/mypy/Manifest | 1 + |
16 |
dev-python/mypy/mypy-0.981.ebuild | 63 +++++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 64 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/mypy/Manifest b/dev-python/mypy/Manifest |
20 |
index f119a4becb2e..db2969f375c3 100644 |
21 |
--- a/dev-python/mypy/Manifest |
22 |
+++ b/dev-python/mypy/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST mypy-0.971.gh.tar.gz 2808674 BLAKE2B 7f3b183a4c5342ddfc501b8091c078ac55803db86d43042220e18e3e616664ce91ddeb341b45b1d80c7686f8c2f3606af074a5dcb9c9eaacd6307578d3689981 SHA512 5088efbd74385b5a8c155ae6e756deed274bf3e597df13e57970a29c029c34c91453c45fc1d2d03b7d83cd786b8930a387a781e1b9cb72102c1f07263a346c6d |
25 |
+DIST mypy-0.981.gh.tar.gz 2628442 BLAKE2B 484ba2da1e3c8988ce4bfa7681592b6ca4f409ca9078319428e11407fa2dec38deace41e77278bab835eee1e3690d8bf213c44ecb82ac5e9a5f759b030df93fe SHA512 8deb66e48b74c50027fd95533935fa6643beaa30b28d25c5783645f9efaedf6138379c262a91abbca62c6e269677f0ee1325fe93ea48d587f1aae8eec21eb15e |
26 |
|
27 |
diff --git a/dev-python/mypy/mypy-0.981.ebuild b/dev-python/mypy/mypy-0.981.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..75044659afd0 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/mypy/mypy-0.981.ebuild |
32 |
@@ -0,0 +1,63 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+DISTUTILS_USE_PEP517=setuptools |
39 |
+PYTHON_COMPAT=( python3_{8..10} ) |
40 |
+ |
41 |
+inherit distutils-r1 multiprocessing |
42 |
+ |
43 |
+DESCRIPTION="Optional static typing for Python" |
44 |
+HOMEPAGE=" |
45 |
+ http://www.mypy-lang.org/ |
46 |
+ https://github.com/python/mypy/ |
47 |
+ https://pypi.org/project/mypy/ |
48 |
+" |
49 |
+SRC_URI=" |
50 |
+ https://github.com/python/mypy/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz |
51 |
+" |
52 |
+ |
53 |
+LICENSE="MIT" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
56 |
+ |
57 |
+# stubgen collides with this package: https://bugs.gentoo.org/585594 |
58 |
+RDEPEND=" |
59 |
+ !dev-util/stubgen |
60 |
+ >=dev-python/psutil-4[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}] |
62 |
+ <dev-python/typed-ast-1.5.0[${PYTHON_USEDEP}] |
63 |
+ >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}] |
65 |
+ <dev-python/mypy_extensions-0.5.0[${PYTHON_USEDEP}] |
66 |
+ $(python_gen_cond_dep ' |
67 |
+ dev-python/tomli[${PYTHON_USEDEP}] |
68 |
+ ' 3.8 3.9 3.10) |
69 |
+" |
70 |
+BDEPEND=" |
71 |
+ test? ( |
72 |
+ >=dev-python/attrs-18.0[${PYTHON_USEDEP}] |
73 |
+ >=dev-python/filelock-3.3.0[${PYTHON_USEDEP}] |
74 |
+ >=dev-python/lxml-4.4.0[${PYTHON_USEDEP}] |
75 |
+ >=dev-python/pytest-6.1.0[${PYTHON_USEDEP}] |
76 |
+ >=dev-python/pytest-xdist-1.18[${PYTHON_USEDEP}] |
77 |
+ >=dev-python/py-1.5.2[${PYTHON_USEDEP}] |
78 |
+ >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}] |
79 |
+ >=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}] |
80 |
+ ) |
81 |
+" |
82 |
+ |
83 |
+distutils_enable_sphinx docs/source \ |
84 |
+ dev-python/furo |
85 |
+distutils_enable_tests pytest |
86 |
+ |
87 |
+# this requires packaging a lot of type stubs |
88 |
+export MYPY_USE_MYPYC=0 |
89 |
+ |
90 |
+python_test() { |
91 |
+ # Some mypy/test/testcmdline.py::PythonCmdlineSuite tests |
92 |
+ # fail with high COLUMNS values |
93 |
+ local -x COLUMNS=80 |
94 |
+ epytest -n "$(makeopts_jobs)" |
95 |
+} |