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 8942C1382C5 for ; Thu, 21 May 2020 00:36:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C8FF4E08FB; Thu, 21 May 2020 00:36:48 +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 B47E6E08FB for ; Thu, 21 May 2020 00:36:48 +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 36EAB34F3A5 for ; Thu, 21 May 2020 00:36:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DF048242 for ; Thu, 21 May 2020 00:36:45 +0000 (UTC) From: "Sebastian Pipping" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" Message-ID: <1590021397.d1c76a77e45040bbb59c0f34e87f1f7391f9fa7e.sping@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/ansi2html/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/ansi2html/ansi2html-1.5.2-r1.ebuild X-VCS-Directories: dev-python/ansi2html/ X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: d1c76a77e45040bbb59c0f34e87f1f7391f9fa7e X-VCS-Branch: master Date: Thu, 21 May 2020 00:36:45 +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: ac89d325-ad1a-4e5d-89ab-38234aa10882 X-Archives-Hash: af6c1ae1c20f6c885c62ec0f11eeac67 commit: d1c76a77e45040bbb59c0f34e87f1f7391f9fa7e Author: Sebastian Pipping gentoo org> AuthorDate: Thu May 21 00:35:21 2020 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Thu May 21 00:36:37 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1c76a77 dev-python/ansi2html: Fix test deps + QA Closes: https://bugs.gentoo.org/723688 Signed-off-by: Sebastian Pipping gentoo.org> Package-Manager: Portage-2.3.99, Repoman-2.3.22 dev-python/ansi2html/ansi2html-1.5.2-r1.ebuild | 45 ++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/dev-python/ansi2html/ansi2html-1.5.2-r1.ebuild b/dev-python/ansi2html/ansi2html-1.5.2-r1.ebuild new file mode 100644 index 00000000000..68135b1df10 --- /dev/null +++ b/dev-python/ansi2html/ansi2html-1.5.2-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="Convert text with ANSI color codes to HTML" +HOMEPAGE="https://pypi.org/project/ansi2html/ https://github.com/ralphbean/ansi2html" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/six-1.7.3[${PYTHON_USEDEP}]" +DEPEND=" + test? ( + ${RDEPEND} + dev-python/mock[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + ) + " + +src_compile() { + distutils-r1_src_compile +} + +python_test() { + chmod -x "${S}"/tests/* || die + esetup.py check + esetup.py test +} + +python_install_all() { + doman man/${PN}.1 + DOCS=( README.rst man/${PN}.1.txt ) + distutils-r1_python_install_all +}