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 4AA7E138334 for ; Fri, 28 Sep 2018 10:46:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EC2F3E09F4; Fri, 28 Sep 2018 10:46:00 +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 AF839E09F4 for ; Fri, 28 Sep 2018 10:46:00 +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 050D0335C07 for ; Fri, 28 Sep 2018 10:45:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DF6273F9 for ; Fri, 28 Sep 2018 10:45:56 +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: <1538131553.4dc503ff9de3310bac408df49f9f48ba6e4a558e.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/elasticsearch-py/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/elasticsearch-py/elasticsearch-py-6.3.1-r1.ebuild X-VCS-Directories: dev-python/elasticsearch-py/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 4dc503ff9de3310bac408df49f9f48ba6e4a558e X-VCS-Branch: master Date: Fri, 28 Sep 2018 10:45:56 +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: 94f09287-80c6-4ca1-ada2-2a17210075e1 X-Archives-Hash: 114d07da4fc83bfe9953f9631bb2bf7c commit: 4dc503ff9de3310bac408df49f9f48ba6e4a558e Author: Tomas Mozes sygic com> AuthorDate: Thu Sep 20 11:11:17 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Sep 28 10:45:53 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4dc503ff dev-python/elasticsearch-py: allow using newer dev-python/urllib3 Signed-off-by: Tomáš Mózes gmail.com> Package-Manager: Portage-2.3.49, Repoman-2.3.10 Signed-off-by: Michał Górny gentoo.org> .../elasticsearch-py-6.3.1-r1.ebuild | 94 ++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/dev-python/elasticsearch-py/elasticsearch-py-6.3.1-r1.ebuild b/dev-python/elasticsearch-py/elasticsearch-py-6.3.1-r1.ebuild new file mode 100644 index 00000000000..9b3ffe1e36b --- /dev/null +++ b/dev-python/elasticsearch-py/elasticsearch-py-6.3.1-r1.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) +ES_VERSION="6.4.0" + +inherit distutils-r1 + +MY_PN=${PN/-py/} +DESCRIPTION="official Python low-level client for Elasticsearch" +HOMEPAGE="https://github.com/elastic/elasticsearch-py" +SRC_URI="https://github.com/elasticsearch/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz + test? ( https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss-${ES_VERSION}.tar.gz )" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples doc test" + +# tests fail in chroot +# https://github.com/elastic/elasticsearch/issues/12018 +RESTRICT="test" + +RDEPEND=">=dev-python/urllib3-1.21.1[${PYTHON_USEDEP}]" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/sphinx-1.3.1-r1[${PYTHON_USEDEP}] + test? ( ${RDEPEND} + >=dev-python/requests-2.0.0[${PYTHON_USEDEP}] + /dev/null + if [[ $? -eq 0 ]]; then + einfo "Elasticsearch started" + es_started=1 + eend 0 + break + elif grep -q 'BindException\[Address already in use\]' "${ES_LOG}" 2>/dev/null; then + eend 1 + eerror "Elasticsearch already running" + die "Cannot start Elasticsearch for tests" + else + einfo "Waiting for Elasticsearch" + eend 1 + sleep 2 + continue + fi + done + + [[ $es_started -eq 0 ]] && die "Elasticsearch failed to start" + + export TEST_ES_SERVER="localhost:${ES_PORT}" + esetup.py test || die + + pkill -F ${PID} +} + +python_install_all() { + use doc && HTML_DOCS=( docs/_build/html/. ) + use examples && dodoc -r example + doman docs/_build/man/* + distutils-r1_python_install_all +}