Gentoo Archives: gentoo-commits

From: Mike Auty <ikelos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mypy/
Date: Sun, 03 Jun 2018 21:12:07
Message-Id: 1528060307.47a3ea00c3fe13ae4b61d680966e4457dd18822b.ikelos@gentoo
1 commit: 47a3ea00c3fe13ae4b61d680966e4457dd18822b
2 Author: Mike Auty <ikelos <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 3 21:11:16 2018 +0000
4 Commit: Mike Auty <ikelos <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 3 21:11:47 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47a3ea00
7
8 dev-python/mypy: bump to version 0.600.
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 dev-python/mypy/Manifest | 3 +-
13 dev-python/mypy/mypy-0.4.5.ebuild | 41 -----------------------
14 dev-python/mypy/mypy-0.600.ebuild | 68 +++++++++++++++++++++++++++++++++++++++
15 3 files changed, 70 insertions(+), 42 deletions(-)
16
17 diff --git a/dev-python/mypy/Manifest b/dev-python/mypy/Manifest
18 index b0782221f3f..90f240ee282 100644
19 --- a/dev-python/mypy/Manifest
20 +++ b/dev-python/mypy/Manifest
21 @@ -1,5 +1,6 @@
22 -DIST mypy-0.4.5.tar.gz 779940 BLAKE2B 5242d57a5c0baf1f32e018e671c5eb21aee3ccbc4e7abfc578562c32c2be425848dcb7cd9a7d726268527337bb11f3dae88f1d79b5db87d1db857927ebad4a45 SHA512 e0bd4cb1080f2a4c0f2c4f9ebbe22d05b8dabb374396e7d91c645724b5d67084fd005e181847fccc45c9c51f3280233185fa6bf08dc24c2d4f6e482197246fa7
23 DIST mypy-0.570.tar.gz 1050041 BLAKE2B 034d49627242ad67283689a653d416e956ae0b78287f78d910aa2b3b2b07af5a07d08503259a2c26bbf37154a52b120fcad1bfbb3daccbd9b80d4c1e9fedbddf SHA512 f0822d9e757faedd9cbce5e8b47782fae02523244688a3900a9f202de9f68b5ae094da65526fba79911a42d4d0621c4e5bf1984e57201117db8f5b630314ea4c
24 DIST mypy-0.590.tar.gz 1081426 BLAKE2B 396083f81a1bf6f8230abe3e3e48b9fcf0288edfa6ae2bbcb7b6bd8f50f4e8dd093cacc326d561f5f10fce0bfd213e559d98e32a35a712bd022d8d0682f239d2 SHA512 129356a4326e80e292645e3b44b673ab463b1ad9b6388396680ca15a4c9aad6da2a3734a3da5d4ab005fb0572fd08863b20ba80e71af2e87d11546abc7fd78c0
25 +DIST mypy-0.600.tar.gz 1097269 BLAKE2B ee3327cdd7383a93f319335017815bb3341d1b91e3620f7bdc69d1c401e3c8aaa3157cfd8d4657fe072ad90b672017fc2b948ad4ff217d5e4ab91b8946d4569e SHA512 8e89bcbb53d385bbc3bf72de123d4a99230ee5154e1af19adccff7133f86495aa366058e04092356a80036214113ac90ecddcf5e30da59ae2a7c6f3d320b07ef
26 DIST mypy-typeshed-0.570.tar.gz 413076 BLAKE2B 774a6d07308228c379a5deec2ee36a498863a1386181b47ceb8783537afdb75bc0fb4893b07cf8cf7bf5bfe977babbdc44a6420784e2cba6ce94346175858573 SHA512 e9afb2fe841fa82ed264a73a1ce6c1c0fede42008042a34cf21f1e39aabaa8f1cd945861aa9e80a86f61f1dd6a362892b25a1c5469915fbca95406e72740ba6d
27 DIST mypy-typeshed-0.590.tar.gz 413076 BLAKE2B 774a6d07308228c379a5deec2ee36a498863a1386181b47ceb8783537afdb75bc0fb4893b07cf8cf7bf5bfe977babbdc44a6420784e2cba6ce94346175858573 SHA512 e9afb2fe841fa82ed264a73a1ce6c1c0fede42008042a34cf21f1e39aabaa8f1cd945861aa9e80a86f61f1dd6a362892b25a1c5469915fbca95406e72740ba6d
28 +DIST mypy-typeshed-0.600-2dc7d39.tar.gz 425045 BLAKE2B e2ef63f2ed988f77f52e2a01c158ff8e3fbdec118c1f613ffe6c57d025da8d5bcf6dc0e6bcbc1bb8655fbf340a0f358535d7e1ed214a5a1af8e3188f2dde5459 SHA512 9c960c2dcb2cd5ed36d77efa47a5632698e841b685386f8d5a31200c61235b68d627fc450d070955ab14962d6a70a2d538929e2dc845512e83161c0299d91807
29
30 diff --git a/dev-python/mypy/mypy-0.4.5.ebuild b/dev-python/mypy/mypy-0.4.5.ebuild
31 deleted file mode 100644
32 index d117678c018..00000000000
33 --- a/dev-python/mypy/mypy-0.4.5.ebuild
34 +++ /dev/null
35 @@ -1,41 +0,0 @@
36 -# Copyright 1999-2017 Gentoo Foundation
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=5
40 -PYTHON_COMPAT=( python3_{4,5,6} )
41 -
42 -inherit distutils-r1 vcs-snapshot
43 -
44 -DESCRIPTION="Optional static typing for Python"
45 -HOMEPAGE="http://www.mypy-lang.org/"
46 -SRC_URI="https://github.com/JukkaL/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
47 -
48 -LICENSE="MIT"
49 -SLOT="0"
50 -KEYWORDS="~amd64"
51 -IUSE="doc test"
52 -
53 -DEPEND="
54 - test? ( dev-python/flake8[${PYTHON_USEDEP}] )
55 - doc? (
56 - dev-python/sphinx[${PYTHON_USEDEP}]
57 - dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
58 - )
59 -"
60 -RDEPEND="$(python_gen_cond_dep '!dev-python/typing[${PYTHON_USEDEP}]' 'python3_3' 'python3_4')"
61 -
62 -python_compile_all() {
63 - use doc && emake -C docs html
64 -}
65 -
66 -python_test() {
67 - local PYTHONPATH="$(pwd)"
68 -
69 - "${PYTHON}" runtests.py || die "tests failed under ${EPYTHON}"
70 -}
71 -
72 -python_install_all() {
73 - use doc && local HTML_DOCS=( docs/build/html/. )
74 -
75 - distutils-r1_python_install_all
76 -}
77
78 diff --git a/dev-python/mypy/mypy-0.600.ebuild b/dev-python/mypy/mypy-0.600.ebuild
79 new file mode 100644
80 index 00000000000..667a3dc20fe
81 --- /dev/null
82 +++ b/dev-python/mypy/mypy-0.600.ebuild
83 @@ -0,0 +1,68 @@
84 +# Copyright 1999-2018 Gentoo Foundation
85 +# Distributed under the terms of the GNU General Public License v2
86 +
87 +EAPI=6
88 +PYTHON_COMPAT=( python3_{4,5,6} )
89 +
90 +if [ "${PV}" == "9999" ]; then
91 + inherit distutils-r1 git-r3
92 + EGIT_REPO_URI="https://github.com/python/${PN}"
93 + SRC_URI=""
94 +else
95 + inherit distutils-r1
96 + TYPESHED_COMMIT="2dc7d39"
97 + SRC_URI="https://github.com/python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
98 + https://api.github.com/repos/python/typeshed/tarball/${TYPESHED_COMMIT} -> mypy-typeshed-${PV}-${TYPESHED_COMMIT}.tar.gz"
99 +fi
100 +
101 +DESCRIPTION="Optional static typing for Python"
102 +HOMEPAGE="http://www.mypy-lang.org/"
103 +
104 +LICENSE="MIT"
105 +SLOT="0"
106 +KEYWORDS="~amd64 ~x86"
107 +IUSE="doc test"
108 +
109 +DEPEND="
110 + dev-python/setuptools[${PYTHON_USEDEP}]
111 + test? ( dev-python/flake8[${PYTHON_USEDEP}] )
112 + doc? (
113 + dev-python/sphinx[${PYTHON_USEDEP}]
114 + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
115 + )
116 +"
117 +CDEPEND="
118 + !dev-util/stubgen
119 + >=dev-python/psutil-5.4.0[${PYTHON_USEDEP}]
120 + <dev-python/psutil-5.5.0[${PYTHON_USEDEP}]
121 + >=dev-python/typed-ast-1.1.0[${PYTHON_USEDEP}]
122 + <dev-python/typed-ast-1.2.0[${PYTHON_USEDEP}]
123 + "
124 +
125 +RDEPEND="${CDEPEND}"
126 +
127 +src_unpack() {
128 + if [ "${PV}" == "9999" ]; then
129 + git-r3_src_unpack
130 + else
131 + unpack ${A}
132 + rmdir "${S}/typeshed"
133 + mv "${WORKDIR}/python-typeshed-${TYPESHED_COMMIT}" "${S}/typeshed"
134 + fi
135 +}
136 +
137 +python_compile_all() {
138 + use doc && emake -C docs html
139 +}
140 +
141 +python_test() {
142 + local PYTHONPATH="$(pwd)"
143 +
144 + "${PYTHON}" runtests.py || die "tests failed under ${EPYTHON}"
145 +}
146 +
147 +python_install_all() {
148 + use doc && local HTML_DOCS=( docs/build/html/. )
149 +
150 + distutils-r1_python_install_all
151 +}