From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5BAA81382BD for ; Sat, 18 Jun 2016 19:00:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 730A7E09B0; Sat, 18 Jun 2016 19:00:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F1F01E09B0 for ; Sat, 18 Jun 2016 19:00:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8901334081F for ; Sat, 18 Jun 2016 19:00:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1553118A6 for ; Sat, 18 Jun 2016 19:00:07 +0000 (UTC) From: "Alex Brandt" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alex Brandt" Message-ID: <1466276250.563b8e3499bcad8d975395469debaafae48fe06f.alunduil@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mypy/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/mypy/Manifest dev-python/mypy/mypy-0.4.2.ebuild X-VCS-Directories: dev-python/mypy/ X-VCS-Committer: alunduil X-VCS-Committer-Name: Alex Brandt X-VCS-Revision: 563b8e3499bcad8d975395469debaafae48fe06f X-VCS-Branch: master Date: Sat, 18 Jun 2016 19:00:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: bcdca9f8-760f-4fce-b1eb-42f6ab0aa5fc X-Archives-Hash: 25a5eff4f48a9caf8387d34afb32ac4b commit: 563b8e3499bcad8d975395469debaafae48fe06f Author: Alex Brandt gentoo org> AuthorDate: Sat Jun 18 18:57:30 2016 +0000 Commit: Alex Brandt gentoo org> CommitDate: Sat Jun 18 18:57:30 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=563b8e34 dev-python/mypy: add version 0.4.2 Package-Manager: portage-2.3.0_rc1 dev-python/mypy/Manifest | 1 + dev-python/mypy/mypy-0.4.2.ebuild | 43 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/dev-python/mypy/Manifest b/dev-python/mypy/Manifest index 3e0fd87..5a4527b 100644 --- a/dev-python/mypy/Manifest +++ b/dev-python/mypy/Manifest @@ -1,2 +1,3 @@ DIST mypy-0.2.0.tar.gz 626604 SHA256 0c24f50509bdf3e0d9bd386a08ef4f11ee0114e1f5a9b2afeacbf9561cf022c1 SHA512 b03014abf152407c7629dba925aca6178fcdf57532f47c728edcb591a56942cda13e02122f405aa269e9b6303de1f4a9d5cbb2d5a5af6e90a808a3db94cca53f WHIRLPOOL 7d9f05ead0bfea78bdf228b0bb7c3519e8eaa70f52c00049963780f42e71e9f44168edb09d2e558f59b07a4d09912d1d6d3c8b11a2b9e47db77b2c06e56eb910 DIST mypy-0.4.1.tar.gz 682081 SHA256 37e94e528078fff782bfbe36c0e9cbd2ff40aa436eb335c2c75d006136aee3e7 SHA512 fafe93ba5e5989be5ebe966c9b8ca3ff899101b56407d5167ef42173374aae5f8ebf5631e573b5d45b845fe2b17488834c72e2483e68abf4992a39188ffa50a1 WHIRLPOOL 5b2f2d5d6fe00ccad93824476e55f673c9ecc8bc38b0aa2f3ce2f25850a9dca17b8bb91ad537801a6ecc0bc2ac0210282bcbd755e6c0a96cd9f8b647530cc093 +DIST mypy-0.4.2.tar.gz 697919 SHA256 d39607701c226007f3bb5a7619222c6c6e7e4c4a2c565d99d44377324d2072ad SHA512 16d2f1476bc7b40c20b66aca81b3c99477394cbcbbff5541ca26179bde0634794126c0b28506ad3019d6a1c5cd0bf48292b4de0152927123ffdfb3bbbc69ee15 WHIRLPOOL 45e459ac076e5bb800a3b8f62828fb326a43d69522caf493166694e4a11b65136756dde43f01e13ac4c74a0535595914364096042dad40c631f17837ca1aca0b diff --git a/dev-python/mypy/mypy-0.4.2.ebuild b/dev-python/mypy/mypy-0.4.2.ebuild new file mode 100644 index 0000000..5d7d96c --- /dev/null +++ b/dev-python/mypy/mypy-0.4.2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python3_3 python3_4 python3_5 ) + +inherit distutils-r1 vcs-snapshot + +DESCRIPTION="Optional static typing for Python" +HOMEPAGE="http://www.mypy-lang.org/" +SRC_URI="https://github.com/JukkaL/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc examples test" + +DEPEND=" + test? ( dev-python/flake8[${PYTHON_USEDEP}] ) + doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] + ) +" +RDEPEND="$(python_gen_cond_dep '!dev-python/typing[${PYTHON_USEDEP}]' 'python3_3' 'python3_4')" + +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/. ) + use examples && local EXAMPLES=( samples/. ) + + distutils-r1_python_install_all +}