From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B9DF61382C5 for ; Fri, 9 Feb 2018 12:32:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1404BE0C3B; Fri, 9 Feb 2018 12:32:11 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DB87CE0C3B for ; Fri, 9 Feb 2018 12:32:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4767C335CC9 for ; Fri, 9 Feb 2018 12:32:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F41F11D4 for ; Fri, 9 Feb 2018 12:32:06 +0000 (UTC) From: "Andrey Grozin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrey Grozin" Message-ID: <1518179496.3ffed0fe7306fe52f1c1b9ef9ddfcc0f23b90e17.grozin@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/bpython/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/bpython/Manifest dev-python/bpython/bpython-0.17.ebuild X-VCS-Directories: dev-python/bpython/ X-VCS-Committer: grozin X-VCS-Committer-Name: Andrey Grozin X-VCS-Revision: 3ffed0fe7306fe52f1c1b9ef9ddfcc0f23b90e17 X-VCS-Branch: master Date: Fri, 9 Feb 2018 12:32:06 +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: 0472da3b-a608-4af2-9be0-d72c179f1119 X-Archives-Hash: a0d56847881513fdb855e0ac43ae6ed7 commit: 3ffed0fe7306fe52f1c1b9ef9ddfcc0f23b90e17 Author: Andrey Grozin gentoo org> AuthorDate: Fri Feb 9 12:31:36 2018 +0000 Commit: Andrey Grozin gentoo org> CommitDate: Fri Feb 9 12:31:36 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ffed0fe dev-python/bpython: bump to 0.17 Package-Manager: Portage-2.3.19, Repoman-2.3.6 dev-python/bpython/Manifest | 1 + dev-python/bpython/bpython-0.17.ebuild | 55 ++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/dev-python/bpython/Manifest b/dev-python/bpython/Manifest index 117fa888d57..e6e6a98e616 100644 --- a/dev-python/bpython/Manifest +++ b/dev-python/bpython/Manifest @@ -1 +1,2 @@ DIST bpython-0.16.tar.gz 201898 BLAKE2B 907f6a506d2b52db01e7b84c615574a7daad36f630646a345c963e432cc394330339390b6afc2585845b19d6c00d9c0b95e06b9d3b0fe85fe20daad3f5cf208a SHA512 1173d720aa679e4a6079c7febd36abbffa901604c99c6d1ce1e940a8fbcf8a4ba7bc526de0ef5290e3859a4384d1cd5cbef62fd9f056ddcb545b64d69d103a5b +DIST bpython-0.17.tar.gz 214230 BLAKE2B dc26de037eb5698c04afb74472fe9483e1398f4f40b7da21520f2e7e2ba6e510bcbf200938d520d95b976a6fbeb31af7b1b1f828a022835edbe40d381c82797d SHA512 17c25f4ed69eb7cff27ba0a488434623a7105c60bbf1e6f608c91babf240741ab7a7097ad347f897cd5f39f2fedb944fd69d8dbfbc66da6b910e1a14ace6fd1f diff --git a/dev-python/bpython/bpython-0.17.ebuild b/dev-python/bpython/bpython-0.17.ebuild new file mode 100644 index 00000000000..6905eb54495 --- /dev/null +++ b/dev-python/bpython/bpython-0.17.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 + +DESCRIPTION="Syntax highlighting and autocompletion for the Python interpreter" +HOMEPAGE="http://www.bpython-interpreter.org/ https://github.com/bpython/bpython https://pypi.python.org/pypi/bpython" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +RDEPEND=" + >=dev-python/curtsies-0.2.11[${PYTHON_USEDEP}] + dev-python/greenlet[${PYTHON_USEDEP}] + dev-python/jedi[${PYTHON_USEDEP}] + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/six-1.5[${PYTHON_USEDEP}] + dev-python/urwid[${PYTHON_USEDEP}] + dev-python/watchdog[${PYTHON_USEDEP}] + " +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/mock[${PYTHON_USEDEP}] )" + +DOCS=( AUTHORS CHANGELOG sample.theme light.theme ) + +# Req'd for clean build by each impl +DISTUTILS_IN_SOURCE_BUILD=1 + +python_compile_all() { + if use doc; then + sphinx-build -b html -c doc/sphinx/source/ \ + doc/sphinx/source/ doc/sphinx/source/html || die "docs build failed" + fi +} + +python_test() { + pushd build/lib > /dev/null + "${PYTHON}" -m unittest discover || die + popd > /dev/null +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/sphinx/source/html/. ) + distutils-r1_python_install_all +}