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 157BB138334 for ; Fri, 27 Dec 2019 16:18:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5606FE0858; Fri, 27 Dec 2019 16:18:03 +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 3835DE0858 for ; Fri, 27 Dec 2019 16:18:03 +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 9675034DBE6 for ; Fri, 27 Dec 2019 16:18:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 31C8E36 for ; Fri, 27 Dec 2019 16:17:59 +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: <1577463470.65a72e8ad95f41c6e3eef415ad17866e60024526.sping@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cssutils/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/cssutils/cssutils-1.0.2-r2.ebuild X-VCS-Directories: dev-python/cssutils/ X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: 65a72e8ad95f41c6e3eef415ad17866e60024526 X-VCS-Branch: master Date: Fri, 27 Dec 2019 16:17:59 +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: d62185bd-fd87-42fd-928a-5379477bf371 X-Archives-Hash: 69a78374dd412d3c1ec8243c479805a2 commit: 65a72e8ad95f41c6e3eef415ad17866e60024526 Author: Sebastian Pipping gentoo org> AuthorDate: Fri Dec 27 16:16:47 2019 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Fri Dec 27 16:17:50 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65a72e8a dev-python/cssutils: Python 3.8 Signed-off-by: Sebastian Pipping gentoo.org> Package-Manager: Portage-2.3.83, Repoman-2.3.20 dev-python/cssutils/cssutils-1.0.2-r2.ebuild | 55 ++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/dev-python/cssutils/cssutils-1.0.2-r2.ebuild b/dev-python/cssutils/cssutils-1.0.2-r2.ebuild new file mode 100644 index 00000000000..35034fb6e40 --- /dev/null +++ b/dev-python/cssutils/cssutils-1.0.2-r2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_{5,6,7,8}} pypy ) + +inherit distutils-r1 + +DESCRIPTION="A CSS Cascading Style Sheets library" +HOMEPAGE="https://pypi.org/project/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 ~arm64 ~ppc ~x86" +IUSE="test" +RESTRICT="!test? ( 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 + + # fix casing of call to Windows-1252. Remove when upstream fixes casing. + sed -i -e 's/encutils.tryEncodings(test)/encutils.tryEncodings(test).lower()/' \ + src/cssutils/tests/test_encutils/__init__.py || die "fixing test_encutils failed" + + 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}" +}