summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Auty <ikelos@gentoo.org>2018-03-11 19:05:40 +0000
committerMike Auty <ikelos@gentoo.org>2018-04-22 16:05:33 +0100
commit8959828892269a0bdb9e3ac5c5e3b071f884b14a (patch)
treeb6860e69d22bb8ff7a8b6a64851d99aec113f732 /dev-python/mypy
parentsci-libs/hdf: Revbump that uses libtirpc, bug 630868 (diff)
downloadgentoo-8959828892269a0bdb9e3ac5c5e3b071f884b14a.tar.gz
gentoo-8959828892269a0bdb9e3ac5c5e3b071f884b14a.tar.bz2
gentoo-8959828892269a0bdb9e3ac5c5e3b071f884b14a.zip
dev-python/mypy: Bump to version 0.570.
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-python/mypy')
-rw-r--r--dev-python/mypy/Manifest2
-rw-r--r--dev-python/mypy/mypy-0.570.ebuild68
2 files changed, 70 insertions, 0 deletions
diff --git a/dev-python/mypy/Manifest b/dev-python/mypy/Manifest
index 67e233cc97d0..5df4b984c132 100644
--- a/dev-python/mypy/Manifest
+++ b/dev-python/mypy/Manifest
@@ -1 +1,3 @@
DIST mypy-0.4.5.tar.gz 779940 BLAKE2B 5242d57a5c0baf1f32e018e671c5eb21aee3ccbc4e7abfc578562c32c2be425848dcb7cd9a7d726268527337bb11f3dae88f1d79b5db87d1db857927ebad4a45 SHA512 e0bd4cb1080f2a4c0f2c4f9ebbe22d05b8dabb374396e7d91c645724b5d67084fd005e181847fccc45c9c51f3280233185fa6bf08dc24c2d4f6e482197246fa7
+DIST mypy-0.570.tar.gz 1050041 BLAKE2B 034d49627242ad67283689a653d416e956ae0b78287f78d910aa2b3b2b07af5a07d08503259a2c26bbf37154a52b120fcad1bfbb3daccbd9b80d4c1e9fedbddf SHA512 f0822d9e757faedd9cbce5e8b47782fae02523244688a3900a9f202de9f68b5ae094da65526fba79911a42d4d0621c4e5bf1984e57201117db8f5b630314ea4c
+DIST mypy-typeshed-0.570.tar.gz 413076 BLAKE2B 774a6d07308228c379a5deec2ee36a498863a1386181b47ceb8783537afdb75bc0fb4893b07cf8cf7bf5bfe977babbdc44a6420784e2cba6ce94346175858573 SHA512 e9afb2fe841fa82ed264a73a1ce6c1c0fede42008042a34cf21f1e39aabaa8f1cd945861aa9e80a86f61f1dd6a362892b25a1c5469915fbca95406e72740ba6d
diff --git a/dev-python/mypy/mypy-0.570.ebuild b/dev-python/mypy/mypy-0.570.ebuild
new file mode 100644
index 000000000000..3b32bb998578
--- /dev/null
+++ b/dev-python/mypy/mypy-0.570.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python3_{4,5,6} )
+
+if [ "${PV}" == "9999" ]; then
+ inherit distutils-r1 git-r3
+ EGIT_REPO_URI="https://github.com/python/${PN}"
+ SRC_URI=""
+else
+ inherit distutils-r1
+ TYPESHED_COMMIT="9b6df1d"
+ SRC_URI="https://github.com/python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://api.github.com/repos/python/typeshed/tarball/${TYPESHED_COMMIT} -> mypy-typeshed-${PV}.tar.gz"
+fi
+
+DESCRIPTION="Optional static typing for Python"
+HOMEPAGE="http://www.mypy-lang.org/"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc test"
+
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/flake8[${PYTHON_USEDEP}] )
+ doc? (
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
+ )
+"
+CDEPEND="
+ !dev-util/stubgen
+ >=dev-python/psutil-5.4.0[${PYTHON_USEDEP}]
+ <dev-python/psutil-5.5.0[${PYTHON_USEDEP}]
+ >=dev-python/typed-ast-1.1.0[${PYTHON_USEDEP}]
+ <dev-python/typed-ast-1.2.0[${PYTHON_USEDEP}]
+ "
+
+RDEPEND="${CDEPEND}"
+
+src_unpack() {
+ if [ "${PV}" == "9999" ]; then
+ git-r3_src_unpack
+ else
+ unpack ${A}
+ rmdir "${S}/typeshed"
+ mv "${WORKDIR}/python-typeshed-${TYPESHED_COMMIT}" "${S}/typeshed"
+ fi
+}
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_test() {
+ local PYTHONPATH="$(pwd)"
+
+ "${PYTHON}" runtests.py || die "tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/build/html/. )
+
+ distutils-r1_python_install_all
+}