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 39B951382C5 for ; Wed, 21 Mar 2018 14:32:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 57414E08CA; Wed, 21 Mar 2018 14:32:06 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 1D94DE08F1 for ; Wed, 21 Mar 2018 14:32:06 +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 A7624335C05 for ; Wed, 21 Mar 2018 14:32:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3A615240 for ; Wed, 21 Mar 2018 14:32:03 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1521642719.ced2d722638d6297fbae1058b5ec9f7aedd91071.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cssselect/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/cssselect/Manifest dev-python/cssselect/cssselect-1.0.3.ebuild X-VCS-Directories: dev-python/cssselect/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: ced2d722638d6297fbae1058b5ec9f7aedd91071 X-VCS-Branch: master Date: Wed, 21 Mar 2018 14:32:03 +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: 6785d043-1b41-47ca-bc9e-d1d55efad33c X-Archives-Hash: b1b3afd17e8140cccf39311b261d7bb9 commit: ced2d722638d6297fbae1058b5ec9f7aedd91071 Author: Michał Górny gentoo org> AuthorDate: Wed Mar 21 12:37:56 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Mar 21 14:31:59 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ced2d722 dev-python/cssselect: Bump to 1.0.3, enable tests dev-python/cssselect/Manifest | 1 + dev-python/cssselect/cssselect-1.0.3.ebuild | 47 +++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/dev-python/cssselect/Manifest b/dev-python/cssselect/Manifest index be84cd6dd78..1081cf50aa4 100644 --- a/dev-python/cssselect/Manifest +++ b/dev-python/cssselect/Manifest @@ -1,2 +1,3 @@ DIST cssselect-0.9.1.tar.gz 32952 BLAKE2B 7f7a78e8085036bed72c2a1a0e4a97cd1988e8d6981ae830f15d5fc03f5fdd43f0caa7b94d2923181f9dc926a6a11e970b3f091178640124286aa680fa023aaf SHA512 c4cd2c8d6fbfa99b836554685dd59e1e794e1fab06fcf4419a226b0608a05d58be5af54e507003f2a233a22f03d59d3d63c0bf19b3314f15c95ab3ce5f4db6cc DIST cssselect-1.0.1.tar.gz 21849 BLAKE2B cfe3637746329db224a44b680cda044238fa831ed0d05cf3484be6181de13bf8660330362626ddc03c7284a80e7c4a814bba293dfdca07a529d9c0c7163c95d2 SHA512 060c4b8d427a935b851b4b20d10ef89b9d6f685692b7144afc8f848e318abaa182ed60538355ea3f25050e358f24904fa0d9c01fe77e3d2428e2ef2a825e2928 +DIST cssselect-1.0.3.tar.gz 34027 BLAKE2B fff15a50d26ce83a0480020e54d00a027a7f21ca2c4c45d5552c6b4c19f7be21c390650c4befa61b7ae2b63946de88945deb488ebd6c7f7fc470950dab233671 SHA512 08feb3a515cc75089657a508cd1a80c6aaa97d710f27e99f9e749a1519adc13c5540134c6a4e0d7f548b022b8bd23dcbe360530d2329c5da36e43aca1f9627d1 diff --git a/dev-python/cssselect/cssselect-1.0.3.ebuild b/dev-python/cssselect/cssselect-1.0.3.ebuild new file mode 100644 index 00000000000..1b3b4958a84 --- /dev/null +++ b/dev-python/cssselect/cssselect-1.0.3.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 + +DESCRIPTION="parses CSS3 Selectors and translates them to XPath 1.0" +HOMEPAGE="https://cssselect.readthedocs.io/en/latest/ + https://pypi.python.org/pypi/cssselect + https://github.com/scrapy/cssselect" +SRC_URI="https://github.com/scrapy/cssselect/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-fbsd" +IUSE="doc 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 + esetup.py build_sphinx + fi +} + +python_test() { + "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +}