diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2017-05-15 10:18:25 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2017-05-15 11:47:02 +0200 |
commit | 5a582dd4f7fbe284ba95b68ff3c7406eacd4dd90 (patch) | |
tree | 3e33f8b07ad6c83f39271668e92e6866057ee485 /dev-python/cssutils | |
parent | dev-python/alabaster: Bump to version 0.7.10 (diff) | |
download | gentoo-5a582dd4f7fbe284ba95b68ff3c7406eacd4dd90.tar.gz gentoo-5a582dd4f7fbe284ba95b68ff3c7406eacd4dd90.tar.bz2 gentoo-5a582dd4f7fbe284ba95b68ff3c7406eacd4dd90.zip |
dev-python/cssutils: Bump to version 1.0.2
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'dev-python/cssutils')
-rw-r--r-- | dev-python/cssutils/Manifest | 1 | ||||
-rw-r--r-- | dev-python/cssutils/cssutils-1.0.2.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/cssutils/Manifest b/dev-python/cssutils/Manifest index b66e4c5763d9..15d5d79fc87c 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 000000000000..c07182ec400e --- /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}" +} |