From abc56484100f3d8457f0f2babed3f4cebde054d2 Mon Sep 17 00:00:00 2001 From: Justin Lecher Date: Thu, 15 Oct 2015 10:18:02 +0200 Subject: dev-python/coloredlogs: Version Bump Package-Manager: portage-2.2.23 Signed-off-by: Justin Lecher --- dev-python/coloredlogs/Manifest | 1 + dev-python/coloredlogs/coloredlogs-2.0.ebuild | 34 ++++++++++++++++++++++ .../files/coloredlogs-2.0-skip-cli-test.patch | 20 +++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 dev-python/coloredlogs/coloredlogs-2.0.ebuild create mode 100644 dev-python/coloredlogs/files/coloredlogs-2.0-skip-cli-test.patch (limited to 'dev-python/coloredlogs') diff --git a/dev-python/coloredlogs/Manifest b/dev-python/coloredlogs/Manifest index b184f86e5831..f33b1f3a6449 100644 --- a/dev-python/coloredlogs/Manifest +++ b/dev-python/coloredlogs/Manifest @@ -1 +1,2 @@ DIST coloredlogs-1.0.1.tar.gz 13926 SHA256 11067ca91532ba4a316fa53b005152a08b3e015dcb1234d393cfc25af88ebc3e SHA512 098aa22b371ffdb6400fac7d2f000aa73f8956eae71f48ceed2110eb35a4b4d11f814f8cacca643c4deccd82da058a750c700264e7c71c2351514a6f887101a5 WHIRLPOOL 71b447498d5e91a0cda131046f7545230bc0c13aa814f0d79cf8888bd60934dee7c5cc54a729dd36b0a937451f80302384fb0733fd94e43e09c2ce9258c950fd +DIST coloredlogs-2.0.tar.gz 15486 SHA256 532198042eac7560f5292961bfb6f844343132fda805575684f67deeb780b2c2 SHA512 b42e18b563caef4506377fba754e976fed31b7402d418ca79d1875504986572b36fe90b602afcb952dc8b06b9f7bc7ed6861abc2239ae5b5340e006377f9a14d WHIRLPOOL 6cbec16a204f91a218428c8056e2c39d94aeaedbf3356b2548fa288a386b8583bf639a40f0c40dc596096bf44ccb28acb7c2d66403d19cf72143599ba88a82b5 diff --git a/dev-python/coloredlogs/coloredlogs-2.0.ebuild b/dev-python/coloredlogs/coloredlogs-2.0.ebuild new file mode 100644 index 000000000000..74cc4955d2bc --- /dev/null +++ b/dev-python/coloredlogs/coloredlogs-2.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4} ) + +inherit distutils-r1 + +DESCRIPTION="Colored stream handler for the logging module" +HOMEPAGE="https://pypi.python.org/pypi/coloredlogs https://github.com/xolox/python-coloredlogs http://coloredlogs.readthedocs.org" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND=">=dev-python/humanfriendly-1.25.1[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/capturer[${PYTHON_USEDEP}] + dev-python/verboselogs[${PYTHON_USEDEP}] + )" + +DOCS=( README.rst ) + +PATCHES=( "${FILESDIR}"/${P}-skip-cli-test.patch ) + +python_test() { + esetup.py test +} diff --git a/dev-python/coloredlogs/files/coloredlogs-2.0-skip-cli-test.patch b/dev-python/coloredlogs/files/coloredlogs-2.0-skip-cli-test.patch new file mode 100644 index 000000000000..cacd016159e9 --- /dev/null +++ b/dev-python/coloredlogs/files/coloredlogs-2.0-skip-cli-test.patch @@ -0,0 +1,20 @@ + coloredlogs/tests.py | 6 ------ + 1 file changed, 6 deletions(-) + +diff --git a/coloredlogs/tests.py b/coloredlogs/tests.py +index 2010b12..7ab18a8 100644 +--- a/coloredlogs/tests.py ++++ b/coloredlogs/tests.py +@@ -160,12 +160,6 @@ class ColoredLogsTestCase(unittest.TestCase): + for name in 'debug', 'info', 'warning', 'error', 'critical': + assert name.upper() in output + +- def test_cli_conversion(self): +- """Test the command line HTML conversion.""" +- output = main('coloredlogs', '--convert', 'coloredlogs', '--demo', capture=True) +- # Make sure the output is encoded as HTML. +- assert '