diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2016-10-24 12:29:47 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2016-10-24 13:30:32 +0200 |
commit | bd3a44b7820bfc6ceb895b7db4e1c5b35cf94ce0 (patch) | |
tree | 50c54c766bae70a52a43603f15a74de20ea965c4 /dev-python/cssselect | |
parent | 804fa671a4434c8f3373602dfcc83db7fd13d122 (diff) | |
download | gentoo-bd3a44b7820bfc6ceb895b7db4e1c5b35cf94ce0.tar.gz gentoo-bd3a44b7820bfc6ceb895b7db4e1c5b35cf94ce0.tar.xz |
dev-python/cssselect: Bump to version 1.0.0
Package-Manager: portage-2.3.2
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'dev-python/cssselect')
-rw-r--r-- | dev-python/cssselect/Manifest | 1 | ||||
-rw-r--r-- | dev-python/cssselect/cssselect-1.0.0.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/cssselect/Manifest b/dev-python/cssselect/Manifest index 5f8a244ff03..70f90e6f6ae 100644 --- a/dev-python/cssselect/Manifest +++ b/dev-python/cssselect/Manifest @@ -1,2 +1,3 @@ DIST cssselect-0.9.1.tar.gz 32952 SHA256 0535a7e27014874b27ae3a4d33e8749e345bdfa62766195208b7996bf1100682 SHA512 c4cd2c8d6fbfa99b836554685dd59e1e794e1fab06fcf4419a226b0608a05d58be5af54e507003f2a233a22f03d59d3d63c0bf19b3314f15c95ab3ce5f4db6cc WHIRLPOOL 0fabe49d4f504069eb782ba98c93a34fa9433fd4d10a545f46f5aa1a5fb3a898580f4e17d744052590e18fe7a0f06feca0527d86ac243282e826caddfb410324 DIST cssselect-0.9.2.tar.gz 33065 SHA256 713b5b99ef08022257b3409c7ae1b18b2c6536b3f155e6237c5cfba0f67ae6f5 SHA512 313965d3a0ad37b24d72d6faf861c04e7af7e4ff06f58450a23585c45bd9f247e565a4b7d594c008d40625601c2b8e76919801b3d77cfd62c7edc20cf366c1f9 WHIRLPOOL 90907b0cbc799d9e7f00ea366a24101fa4ff84786add028a035a355b4e8ce2073da82dfc4bc3a8e9a058341e117887e5ea1bac0e3b4befd8ac5df1bbbb21a2ca +DIST cssselect-1.0.0.tar.gz 22278 SHA256 582a85780249255707872c31d0438fc457aa24cfb43e472ff8f3e7ad6857953f SHA512 59b8ed898a2f5286f3d1be5b9bf2486f0b0cc372271d34098dbbc95696eb951bbb52e53810f9e20f0aab8e2a26c4eaf1905e1604f85287965bd4d105bb4b71fb WHIRLPOOL bcec8e04fa428c0ba54c0738d1864ff8128a65253777e5786a756b720c9a7087ff6eebab5cd48a695b2b2fc0ae9405330b4a1820dc2f4f1c926288f85d2ac7c1 diff --git a/dev-python/cssselect/cssselect-1.0.0.ebuild b/dev-python/cssselect/cssselect-1.0.0.ebuild new file mode 100644 index 00000000000..057a765161e --- /dev/null +++ b/dev-python/cssselect/cssselect-1.0.0.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) + +inherit distutils-r1 + +DESCRIPTION="parses CSS3 Selectors and translates them to XPath 1.0" +HOMEPAGE="http://packages.python.org/cssselect/ https://pypi.python.org/pypi/cssselect" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="doc test" + +# No tests.py file in this release. +# Please check on version bumps if it's still missing. +RESTRICT="test" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/lxml[${PYTHON_USEDEP}] )" +RDEPEND="" + +python_prepare_all() { + # prevent non essential d'load of files in doc build + sed -e 's:intersphinx_:#&:' -i docs/conf.py || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc ; then + "${PYTHON}" setup.py build_sphinx || die + fi +} + +python_test() { + "${PYTHON}" ${PN}/tests.py -v || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +} |