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 14EFE138335 for ; Sun, 7 Jul 2019 13:10:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9D72EE088F; Sun, 7 Jul 2019 13:10:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 7CB41E088D for ; Sun, 7 Jul 2019 13:10:32 +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 8527C347300 for ; Sun, 7 Jul 2019 13:10:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C50956F0 for ; Sun, 7 Jul 2019 13:10:27 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1562504987.3969820aec335373641d295ade33bb4b03f7c520.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cli_helpers/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/cli_helpers/cli_helpers-9999.ebuild X-VCS-Directories: dev-python/cli_helpers/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 3969820aec335373641d295ade33bb4b03f7c520 X-VCS-Branch: master Date: Sun, 7 Jul 2019 13:10:27 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5ec1399f-5e1e-4b52-8bd8-4c1f9329d1bd X-Archives-Hash: 373f4d188ebbb1a9c065c265e0081032 commit: 3969820aec335373641d295ade33bb4b03f7c520 Author: Michał Górny gentoo org> AuthorDate: Sun Jul 7 13:09:47 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Jul 7 13:09:47 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3969820a dev-python/cli_helpers: Sync the live ebuild Signed-off-by: Michał Górny gentoo.org> dev-python/cli_helpers/cli_helpers-9999.ebuild | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/dev-python/cli_helpers/cli_helpers-9999.ebuild b/dev-python/cli_helpers/cli_helpers-9999.ebuild index a781b76eb17..edaf342667d 100644 --- a/dev-python/cli_helpers/cli_helpers-9999.ebuild +++ b/dev-python/cli_helpers/cli_helpers-9999.ebuild @@ -1,24 +1,38 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -PYTHON_COMPAT=( python{2_7,3_5,3_6} ) +PYTHON_COMPAT=( python{2_7,3_{5,6,7}} ) EGIT_REPO_URI="https://github.com/dbcli/${PN}.git" inherit distutils-r1 git-r3 DESCRIPTION="Python helpers for common CLI tasks" - HOMEPAGE="http://cli-helpers.rtfd.io/" SRC_URI="" + LICENSE="BSD" SLOT="0" KEYWORDS="" IUSE="" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +IUSE="test" +RESTRICT="!test? ( test )" + RDEPEND=" - >=dev-python/backports-csv-1.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep '>=dev-python/backports-csv-1.0[${PYTHON_USEDEP}]' -2) + >=dev-python/configobj-5.0.5[${PYTHON_USEDEP}] + >=dev-python/pygments-2.4.0[${PYTHON_USEDEP}] >=dev-python/tabulate-0.8.0[${PYTHON_USEDEP}] >=dev-python/terminaltables-3.0.0[${PYTHON_USEDEP}] - >=dev-python/pygments-2.0[${PYTHON_USEDEP}] + dev-python/wcwidth[${PYTHON_USEDEP}] " +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + >=dev-python/mock-2[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + )" + +python_test() { + pytest -vv || die "Tests fail with ${EPYTHON}" +}