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 ABA34138334 for ; Wed, 22 Aug 2018 22:56:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C1E4BE0B29; Wed, 22 Aug 2018 22:56:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 82C76E0B29 for ; Wed, 22 Aug 2018 22:56:18 +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 68018335C9F for ; Wed, 22 Aug 2018 22:56:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E41162B9 for ; Wed, 22 Aug 2018 22:56:13 +0000 (UTC) From: "Louis Sautier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Louis Sautier" Message-ID: <1534978565.707fc76726f30db6508102a0fbe6bb89c3060552.sbraz@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/blessings/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/blessings/Manifest dev-python/blessings/blessings-1.7.ebuild X-VCS-Directories: dev-python/blessings/ X-VCS-Committer: sbraz X-VCS-Committer-Name: Louis Sautier X-VCS-Revision: 707fc76726f30db6508102a0fbe6bb89c3060552 X-VCS-Branch: master Date: Wed, 22 Aug 2018 22:56:13 +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: 7c8f91ca-c801-4805-b457-a6e5d9bb986b X-Archives-Hash: 3876882b4a88574b960d7d56d09a40e6 commit: 707fc76726f30db6508102a0fbe6bb89c3060552 Author: Louis Sautier gentoo org> AuthorDate: Wed Aug 22 22:52:01 2018 +0000 Commit: Louis Sautier gentoo org> CommitDate: Wed Aug 22 22:56:05 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=707fc767 dev-python/blessings: bump to 1.7, add doc, Python 3.7, PyPy{,3} Also make tests verbose and bump to EAPI=7. Package-Manager: Portage-2.3.48, Repoman-2.3.10 dev-python/blessings/Manifest | 1 + dev-python/blessings/blessings-1.7.ebuild | 42 +++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/dev-python/blessings/Manifest b/dev-python/blessings/Manifest index a9c86ac74ef..51dcd0eba64 100644 --- a/dev-python/blessings/Manifest +++ b/dev-python/blessings/Manifest @@ -1,2 +1,3 @@ DIST blessings-1.6.1.tar.gz 20122 BLAKE2B b2158f3fd538ef8641438bce7800efc9417e9febec6509d0e11389277b02ee03e661fe70198176a6a3578c216aeb4a6957da28d090cb1dc2849efff135cdf400 SHA512 7a4b051e448cddde7e8ce24106ce0d5d893eb442b19fff04f9ddf28381dfa1b4bdd4be79b87782162b2ead13597a346f533edb944130f2e5bc39aa936ca48db2 DIST blessings-1.6.tar.gz 19974 BLAKE2B 5b454c7199c637f9b8d4de69a92b8137e65b925898064f31dabb56bf4fd7af8b3374b7311bcd0369b668868bc2335ce945306c242c1bf58d6d7d50c09150c017 SHA512 5d0fc365416bf2b36b6de72f6b8c01bf0ab8df4a0148f492c80056a9ebd5d569e9c01966481e0d70a25add16da2bc3e73be933226369abca533ce019f97479f2 +DIST blessings-1.7.tar.gz 22844 BLAKE2B 3694d3e421416bf876265fd0877240b2e0d61e8c58dfa63a6e74dd2f5efd2307cc4a0eef0e825adc0c0f37f6e78e15640362f9477c0dc5c89846416e16f180a9 SHA512 9b1e3eded3fa588c48898d88ba466836be8f25264ce908a2289504e8f13b01315ae1686ee34c0e3a44cdd2bf73da8c1b65e0aaf49ffc0e5b29c412a497c3d76e diff --git a/dev-python/blessings/blessings-1.7.ebuild b/dev-python/blessings/blessings-1.7.ebuild new file mode 100644 index 00000000000..84aa469cfc2 --- /dev/null +++ b/dev-python/blessings/blessings-1.7.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy{,3} python{2_7,3_{4,5,6,7}} ) + +inherit distutils-r1 + +DESCRIPTION="A thin, practical wrapper around terminal coloring, styling, and positioning" +HOMEPAGE="https://github.com/erikrose/blessings https://pypi.org/project/blessings/" +# https://github.com/erikrose/blessings/pull/136 +SRC_URI="https://github.com/erikrose/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc test" + +RDEPEND="dev-python/six[${PYTHON_USEDEP}]" +BDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( + ${RDEPEND} + dev-python/nose[${PYTHON_USEDEP}] + ) +" + +python_compile_all() { + if use doc; then + sphinx-build docs/ docs/_build/html || die + HTML_DOCS=( docs/_build/html/. ) + fi +} + +python_test() { + # The tests need an interactive terminal + # https://github.com/erikrose/blessings/issues/117 + script -eqc "nosetests -v -w \"${BUILD_DIR}\"" /dev/null \ + || die "tests failed with ${EPYTHON}" +}