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 B3A44138334 for ; Mon, 25 Jun 2018 22:04:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BAA60E092C; Mon, 25 Jun 2018 22:04:43 +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 8FAABE092C for ; Mon, 25 Jun 2018 22:04:43 +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 06F4D335CB4 for ; Mon, 25 Jun 2018 22:04:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 81A8A2DA for ; Mon, 25 Jun 2018 22:04:40 +0000 (UTC) From: "Louis Sautier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Louis Sautier" Message-ID: <1529964264.01b6345f72ad8bee3bda8e61961b612ed60f6551.sbraz@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/geventhttpclient/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/geventhttpclient/geventhttpclient-1.3.1-r1.ebuild X-VCS-Directories: dev-python/geventhttpclient/ X-VCS-Committer: sbraz X-VCS-Committer-Name: Louis Sautier X-VCS-Revision: 01b6345f72ad8bee3bda8e61961b612ed60f6551 X-VCS-Branch: master Date: Mon, 25 Jun 2018 22:04:40 +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: 0c007602-4cad-4ee0-86d0-01c59079e1f4 X-Archives-Hash: 1a0e7d30bf6483e351667ad0add5babc commit: 01b6345f72ad8bee3bda8e61961b612ed60f6551 Author: Louis Sautier gentoo org> AuthorDate: Mon Jun 25 22:00:59 2018 +0000 Commit: Louis Sautier gentoo org> CommitDate: Mon Jun 25 22:04:24 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01b6345f dev-python/geventhttpclient: support PyPy, remove useless dep Package-Manager: Portage-2.3.40, Repoman-2.3.9 .../geventhttpclient-1.3.1-r1.ebuild | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/dev-python/geventhttpclient/geventhttpclient-1.3.1-r1.ebuild b/dev-python/geventhttpclient/geventhttpclient-1.3.1-r1.ebuild new file mode 100644 index 00000000000..9b10793dfb5 --- /dev/null +++ b/dev-python/geventhttpclient/geventhttpclient-1.3.1-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( pypy python{2_7,3_{4,5,6}} ) + +inherit distutils-r1 + +DESCRIPTION="A high performance, concurrent HTTP client library for Python using gevent" +HOMEPAGE="https://github.com/gwik/geventhttpclient" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="test" + +RDEPEND=" + dev-python/certifi[${PYTHON_USEDEP}] + dev-python/gevent[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] +" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/pytest[${PYTHON_USEDEP}] + ) +" + +python_prepare_all() { + # https://github.com/gwik/geventhttpclient/pull/82 + rm -r src/geventhttpclient/tests/__pycache__ || die + distutils-r1_python_prepare_all +} + +python_test() { + # Ignore tests which require network access + py.test src/geventhttpclient/tests --ignore \ + src/geventhttpclient/tests/test_client.py || \ + die "Tests failed with ${EPYTHON}" +}