Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mypy/
Date: Mon, 06 Jun 2022 19:01:36
Message-Id: 1654541793.806f7aad1ced846fa65c223a9ff3d0551eae1f89.arthurzam@gentoo
1 commit: 806f7aad1ced846fa65c223a9ff3d0551eae1f89
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 6 18:51:44 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 6 18:56:33 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=806f7aad
7
8 dev-python/mypy: add 0.961
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/mypy/Manifest | 1 +
13 dev-python/mypy/mypy-0.961.ebuild | 62 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 63 insertions(+)
15
16 diff --git a/dev-python/mypy/Manifest b/dev-python/mypy/Manifest
17 index c52a506d1736..9666a5900758 100644
18 --- a/dev-python/mypy/Manifest
19 +++ b/dev-python/mypy/Manifest
20 @@ -1,3 +1,4 @@
21 DIST mypy-0.942.tar.gz 2701940 BLAKE2B 5501466e57b4afb8825e6c804cbdc270c79ff457c39f2e5834f4b68df70263c05b2b9abb08fe58202ee65f5e22d2291f39fcb1fc47168416134538c5f6e12ab3 SHA512 79b83587eefad10d7d20d3bfd8484a9e8b2d363e68c1e5ffaa3a82ca8b8f8d9183036ea46695a634f9156911d6f918af684ac636105b37b3a5d0e958f5d661f4
22 DIST mypy-0.950.tar.gz 2746164 BLAKE2B 8466012fd3622f5e730acef774115ac84ff8c6f5488213a450de63d5acc790f937b7c69a1b05b46deef6fe8f81a13ed8e85f83c6c22cce9abdbb73b2ecf4179c SHA512 949d1dade3f225bbef0934fff040f7d5aec47039f554a669ca491d6cb46d56de3fcae0186864cdcaf5dec1347bc3af453218520536a0afa77e89a5c0e4640500
23 DIST mypy-0.960.tar.gz 2767017 BLAKE2B 54ca4b9ffeef1f9211569ae8daee3ae201bfc6239eb9530dd5b7bb53983b0f9d343951dc49e4c4cd257660491be3805d7b8a3b5621dd25f1b7726f522a1c74df SHA512 1caa5ea5d87631a00acabd712053193aac4ed2f475760da90e395d64c44092797e45a4793a5fa2dc05458e9d2411b5cde14811c8a5112376c00baf9792df923f
24 +DIST mypy-0.961.gh.tar.gz 2767264 BLAKE2B 333e860f2416d065fd26f29f818e88c25f223c8f558bd174280ccfbe856c823253095830cc9cc44dd453b3661583d7626e5679ce1e44479b62ed75139051a9a2 SHA512 f7f57d38777256a45c950a45e832b6f1b9465a6663056472a9b32dc8c1d38b4d28ed856f4de12202de5910eeb6197a22073e12924a1e3f58d5631aaa938c0f2a
25
26 diff --git a/dev-python/mypy/mypy-0.961.ebuild b/dev-python/mypy/mypy-0.961.ebuild
27 new file mode 100644
28 index 000000000000..b704d0fda712
29 --- /dev/null
30 +++ b/dev-python/mypy/mypy-0.961.ebuild
31 @@ -0,0 +1,62 @@
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="
44 + http://www.mypy-lang.org/
45 + https://github.com/python/mypy/
46 + https://pypi.org/project/mypy/
47 +"
48 +SRC_URI="
49 + https://github.com/python/mypy/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz
50 +"
51 +
52 +LICENSE="MIT"
53 +SLOT="0"
54 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
55 +
56 +# stubgen collides with this package: https://bugs.gentoo.org/585594
57 +RDEPEND="
58 + !dev-util/stubgen
59 + >=dev-python/psutil-4[${PYTHON_USEDEP}]
60 + >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}]
61 + <dev-python/typed-ast-1.5.0[${PYTHON_USEDEP}]
62 + >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}]
63 + >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}]
64 + <dev-python/mypy_extensions-0.5.0[${PYTHON_USEDEP}]
65 + $(python_gen_cond_dep '
66 + dev-python/tomli[${PYTHON_USEDEP}]
67 + ' 3.8 3.9 3.10)
68 +"
69 +BDEPEND="
70 + test? (
71 + >=dev-python/attrs-18.0[${PYTHON_USEDEP}]
72 + >=dev-python/lxml-4.4.0[${PYTHON_USEDEP}]
73 + >=dev-python/pytest-6.1.0[${PYTHON_USEDEP}]
74 + >=dev-python/pytest-xdist-1.18[${PYTHON_USEDEP}]
75 + >=dev-python/py-1.5.2[${PYTHON_USEDEP}]
76 + >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}]
77 + >=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}]
78 + )
79 +"
80 +
81 +distutils_enable_sphinx docs/source \
82 + dev-python/sphinx_rtd_theme
83 +distutils_enable_tests pytest
84 +
85 +# this requires packaging a lot of type stubs
86 +export MYPY_USE_MYPYC=0
87 +
88 +python_test() {
89 + # Some mypy/test/testcmdline.py::PythonCmdlineSuite tests
90 + # fail with high COLUMNS values
91 + local -x COLUMNS=80
92 + epytest -n "$(makeopts_jobs)"
93 +}