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 296F2139694 for ; Mon, 15 May 2017 09:47:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9D948E0C47; Mon, 15 May 2017 09:47:27 +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-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 67545E0C47 for ; Mon, 15 May 2017 09:47:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 5A9103416DC for ; Mon, 15 May 2017 09:47:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 008267454 for ; Mon, 15 May 2017 09:47:25 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1494841622.5a582dd4f7fbe284ba95b68ff3c7406eacd4dd90.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cssutils/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/cssutils/Manifest dev-python/cssutils/cssutils-1.0.2.ebuild X-VCS-Directories: dev-python/cssutils/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 5a582dd4f7fbe284ba95b68ff3c7406eacd4dd90 X-VCS-Branch: master Date: Mon, 15 May 2017 09:47:25 +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: d208cd89-0565-4066-a153-8013b95f3f83 X-Archives-Hash: db6f83a3f4179bcfcb8f39dc1b1444e9 commit: 5a582dd4f7fbe284ba95b68ff3c7406eacd4dd90 Author: Lars Wendler gentoo org> AuthorDate: Mon May 15 08:18:25 2017 +0000 Commit: Lars Wendler gentoo org> CommitDate: Mon May 15 09:47:02 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a582dd4 dev-python/cssutils: Bump to version 1.0.2 Package-Manager: Portage-2.3.5, Repoman-2.3.2 dev-python/cssutils/Manifest | 1 + dev-python/cssutils/cssutils-1.0.2.ebuild | 49 +++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/dev-python/cssutils/Manifest b/dev-python/cssutils/Manifest index b66e4c5763d..15d5d79fc87 100644 --- a/dev-python/cssutils/Manifest +++ b/dev-python/cssutils/Manifest @@ -1 +1,2 @@ DIST cssutils-1.0.1.tar.gz 353621 SHA256 d8a18b2848ea1011750231f1dd64fe9053dbec1be0b37563c582561e7a529063 SHA512 932a128443cc31f689d91c7c75a04ddc79824b4e5c0779e48d30fa0a3a760cad82d8208264ec95a3b120c38962f2eabf6b3456aa8f81d24e9c9718e95fd6bf83 WHIRLPOOL b3cf4f4e94671a7cef49956f40b6ea67264fdeb305197e125d059c8fa815747a872bd5e15c2745c6fc602dc7d27881a2258219817b2abc7b9953bb3bb371e808 +DIST cssutils-1.0.2.tar.gz 367038 SHA256 a2fcf06467553038e98fea9cfe36af2bf14063eb147a70958cfcaa8f5786acaf SHA512 4988893875a03923d3127e334654799e5c2ebcdc0a7f5b3fb5c9ab27d1b331caa5bf197161312a298531e0757843aa3259ceba5fa19947353eea24a5da53ceda WHIRLPOOL ffabc8132b9fdc4f3bf6748f8c1892641d0552df4a7ad99b8679fb970903215481d62468a68b151c4f964d05ee2bf589ef00baa7df9de33b8f4aad512bfcc441 diff --git a/dev-python/cssutils/cssutils-1.0.2.ebuild b/dev-python/cssutils/cssutils-1.0.2.ebuild new file mode 100644 index 00000000000..c07182ec400 --- /dev/null +++ b/dev-python/cssutils/cssutils-1.0.2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy ) + +inherit distutils-r1 + +DESCRIPTION="A CSS Cascading Style Sheets library" +HOMEPAGE="https://pypi.python.org/pypi/cssutils/ https://bitbucket.org/cthedot/cssutils http://cthedot.de/cssutils/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="test" + +RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + )" + +python_prepare_all() { + # Disable test failing with dev-python/pyxml installed. + if has_version dev-python/pyxml; then + sed -e "s/test_linecol/_&/" \ + -i src/cssutils/tests/test_errorhandler.py \ + || die + fi + + # requires old pbr, does it really? + sed \ + -e '/tests_require/d' \ + -i setup.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + ln -s "${S}/sheets" "${BUILD_DIR}/sheets" || die + # esetup.py test + # exclude tests that connect to the network + set -- nosetests \ + -e test_parseUrl -e test_handlers -P "${BUILD_DIR}/lib/cssutils/tests" + echo "$@" + "$@" || die "Testing failed with ${EPYTHON}" +}