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 E2BFB1382C5 for ; Tue, 26 May 2020 18:10:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 49089E0973; Tue, 26 May 2020 18:09:58 +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 1F417E0973 for ; Tue, 26 May 2020 18:09:58 +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 E6C2B34EE4D for ; Tue, 26 May 2020 18:09:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B9B37272 for ; Tue, 26 May 2020 18:09:53 +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: <1590516587.87a28f5adcdfc79ea10cff0be7dbabdf54ca2526.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/gevent/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/gevent/Manifest dev-python/gevent/gevent-20.5.1.ebuild X-VCS-Directories: dev-python/gevent/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 87a28f5adcdfc79ea10cff0be7dbabdf54ca2526 X-VCS-Branch: master Date: Tue, 26 May 2020 18:09:53 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 03d38f3b-107a-4d3d-9a24-fb036158f5f8 X-Archives-Hash: ae1f42acb889cc4321f1d277542475cb commit: 87a28f5adcdfc79ea10cff0be7dbabdf54ca2526 Author: Michał Górny gentoo org> AuthorDate: Tue May 26 18:04:39 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue May 26 18:09:47 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87a28f5a dev-python/gevent: Bump to 20.5.1 Signed-off-by: Michał Górny gentoo.org> dev-python/gevent/Manifest | 1 + dev-python/gevent/gevent-20.5.1.ebuild | 89 ++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) diff --git a/dev-python/gevent/Manifest b/dev-python/gevent/Manifest index aaa890a7697..a18a9daf589 100644 --- a/dev-python/gevent/Manifest +++ b/dev-python/gevent/Manifest @@ -1 +1,2 @@ DIST gevent-1.4.0.tar.gz 5169595 BLAKE2B 0c78f67bc94d15419b8eadf8825d9657c6a7a82756308216e1ca94d5465c25836cb736b8b370a12d1003eb8614effd4110d8ed47ee2b0d7febc2bda4038adc0a SHA512 6771f4f2932055270e4f5a79ae815e93fd0f471defa7f437dc84907ea8b44672e05ae5eb6958f8d90580b2471785dce4044d9d1bbea0dd0c34c1381d88af0344 +DIST gevent-20.5.1.tar.gz 5566653 BLAKE2B 1d9a474681573ec2e9d3c0d40fbae8a91b8cfb80c3ff8b3cf0e119b0484458941224302afb59f16c3272e1d770b1c1e92a3f648754a81d2e894e35ed8a335c31 SHA512 c6f9360efa86e598b7b240cd15e24ee0711dc314bb14f8bcaee7b0768b34a0f090d66296819f4c2eb95fe1565fe1c0f3472fb47444c31cfebc348b420811aed5 diff --git a/dev-python/gevent/gevent-20.5.1.ebuild b/dev-python/gevent/gevent-20.5.1.ebuild new file mode 100644 index 00000000000..faeb72ae729 --- /dev/null +++ b/dev-python/gevent/gevent-20.5.1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} ) +PYTHON_REQ_USE="ssl(+),threads(+)" + +inherit distutils-r1 flag-o-matic + +DESCRIPTION="Coroutine-based network library" +HOMEPAGE="http://gevent.org/ https://pypi.org/project/gevent/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/libev-4.23 + >=net-dns/c-ares-1.12 + >=dev-python/greenlet-0.4.14 + virtual/python-greenlet[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( + dev-python/psutil[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/zope-event[${PYTHON_USEDEP}] + dev-python/zope-interface[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/futures[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + ' -2) + )" + +distutils_enable_sphinx doc + +# Tests take long and fail terribly a few times. +# It also seems that they require network access. +#RESTRICT="test" + +python_prepare_all() { + export LIBEV_EMBED="false" + export CARES_EMBED="false" + export EMBED="false" + + distutils-r1_python_prepare_all +} + +python_configure_all() { + append-flags -fno-strict-aliasing +} + +python_test() { + cd src/gevent/tests || die + # TODO: figure out how to make them work and not hang +# GEVENT_RESOLVER=ares \ +# "${EPYTHON}" -m gevent.tests \ +# -uall,-network \ +# --config known_failures.py \ +# --ignore tests_that_dont_use_resolver.txt || die +# GEVENT_RESOLVER=dnspython \ +# "${EPYTHON}" -m gevent.tests \ +# -uall,-network \ +# --config known_failures.py \ +# --ignore tests_that_dont_use_resolver.txt || die +# GEVENT_RESOLVER=thread \ +# "${EPYTHON}" -m gevent.tests \ +# --verbose \ +# -uall,-network \ +# --config known_failures.py \ +# --ignore tests_that_dont_use_resolver.txt || die + GEVENT_FILE=thread \ + "${EPYTHON}" -m gevent.tests \ + --verbose \ + -uall,-network \ + --config known_failures.py \ + test__*subprocess*.py || die +} + +python_install_all() { + local DOCS=( AUTHORS README.rst ) + use examples && dodoc -r examples + + distutils-r1_python_install_all +}