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 1B421138335 for ; Wed, 10 Oct 2018 15:49:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 04347E07C7; Wed, 10 Oct 2018 15:49:10 +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 BA76CE07C7 for ; Wed, 10 Oct 2018 15:49:09 +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 3870234076D for ; Wed, 10 Oct 2018 15:49:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D0498437 for ; Wed, 10 Oct 2018 15:49:05 +0000 (UTC) From: "Matthew Thode" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matthew Thode" Message-ID: <1539186534.dc127547fb612c9923b4f594bb7d5ea45060c66d.prometheanfire@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/eventlet/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/eventlet/Manifest dev-python/eventlet/eventlet-0.24.1.ebuild X-VCS-Directories: dev-python/eventlet/ X-VCS-Committer: prometheanfire X-VCS-Committer-Name: Matthew Thode X-VCS-Revision: dc127547fb612c9923b4f594bb7d5ea45060c66d X-VCS-Branch: master Date: Wed, 10 Oct 2018 15:49:05 +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: 89e99cee-3990-46d3-a995-e0722c8e174c X-Archives-Hash: 143ff4fceb016784a7ae79e4ee029b2d commit: dc127547fb612c9923b4f594bb7d5ea45060c66d Author: Matthew Thode gentoo org> AuthorDate: Wed Oct 10 15:48:34 2018 +0000 Commit: Matthew Thode gentoo org> CommitDate: Wed Oct 10 15:48:54 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc127547 dev-python/eventlet: 0.24.1 bump adds py37 support Signed-off-by: Matthew Thode gentoo.org> Package-Manager: Portage-2.3.49, Repoman-2.3.11 dev-python/eventlet/Manifest | 1 + dev-python/eventlet/eventlet-0.24.1.ebuild | 71 ++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/dev-python/eventlet/Manifest b/dev-python/eventlet/Manifest index 1c757a05afd..f298d782f44 100644 --- a/dev-python/eventlet/Manifest +++ b/dev-python/eventlet/Manifest @@ -2,3 +2,4 @@ DIST eventlet-0.18.4.tar.gz 288920 BLAKE2B 497b5e154de495049e477ab54660fa4e5af97 DIST eventlet-0.20.0.tar.gz 466828 BLAKE2B 43beb8f924c5e375a554db3fb90e3c39121ff9899aa1a214118531e3e6fa7711899f278b2187e1e61409a58c05e9bba1a8a6392e1b31a811ef1f32dd7b929016 SHA512 4be70ba8cc3ac76d424aad66cd214e97249a42785319b992d048a77cd26f53a428f7959596d07da9a88c92ee103d73d4990733fc00bca57cc8fd242041365348 DIST eventlet-0.20.1.tar.gz 469509 BLAKE2B 727844b70c4e1874a58efc95551dd7f12bec1c8d01cadeaedbc49f00a86e1393b690076fe720e8efdf00107f72b892a3a1f4c4921f95656b904221e748df7f09 SHA512 875c1ca82822a486bf28866c7d1f34df2419e7d33450a21740434d2e7f15c37a1090436cb7fe1feaeb5c810d39e4b238206c502323317897c8a42e844cbe7734 DIST eventlet-0.21.0.tar.gz 484191 BLAKE2B 07d3f5d1dca11032d51fef9ceb624e07da9e93bed914233da9abbdff27f21f2482b9e3417b50a63f383cae13615c6a781104a05dfb66f28d6ab4e469bce06ef9 SHA512 4ee682ca8faf870ff6f1d72e93527028f73ae13d7f755eceafb23f3cde48e52b83ff04b645b7e90299997713de93c52f244db8b81d6abc7788a56ea38c7b0f47 +DIST eventlet-0.24.1.tar.gz 391579 BLAKE2B f8abfe6d18ed3b2edf4b2fa3d197abdd1e9029dd10c035427a2ddcb70cdaa76da114083ce7016af7151927fcb2f93ce6ffa0417dbe1a125948318baaed2f6184 SHA512 867f8ead3a6c0dd692c5cc5d9f1181b04456bdb270ea95d84f7f97da4603b333df539721cda002437c035fac51134bee8cc3495e09b6a25ae1c46fdaf015d0c3 diff --git a/dev-python/eventlet/eventlet-0.24.1.ebuild b/dev-python/eventlet/eventlet-0.24.1.ebuild new file mode 100644 index 00000000000..1480db301eb --- /dev/null +++ b/dev-python/eventlet/eventlet-0.24.1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 + +DESCRIPTION="Highly concurrent networking library" +HOMEPAGE="https://pypi.org/project/eventlet/ https://github.com/eventlet/eventlet/" +SRC_URI="mirror://pypi/e/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="doc examples test" + +RDEPEND=" + >=dev-python/dnspython-1.15.0[${PYTHON_USEDEP}] + virtual/python-enum34[${PYTHON_USEDEP}] + >=dev-python/greenlet-0.3[${PYTHON_USEDEP}] + >=dev-python/monotonic-1.4[${PYTHON_USEDEP}] + >=dev-python/six-1.10.0[${PYTHON_USEDEP}]" +DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] + >=dev-python/python-docs-2.7.6-r1:2.7 ) + test? ( ${RDEPEND} + dev-python/pyopenssl[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] )" + +python_prepare_all() { + # provided by virtual/python-enum34 + sed -i '/enum-compat/d' setup.py || die + + if use doc; then + local PYTHON_DOC_ATOM=$(best_version --host-root dev-python/python-docs:2.7) + local PYTHON_DOC_VERSION="${PYTHON_DOC_ATOM#dev-python/python-docs-}" + local PYTHON_DOC="/usr/share/doc/python-docs-${PYTHON_DOC_VERSION}/html" + local PYTHON_DOC_INVENTORY="${PYTHON_DOC}/objects.inv" + sed -i "s|'http://docs.python.org/': None|'${PYTHON_DOC}': '${PYTHON_DOC_INVENTORY}'|" doc/conf.py || die + fi + + if use test; then +# sed -i '/This is a Python 3 module/d' eventlet/green/http/__init__.py || die +# sed -i 's/^import/from OpenSSL import/g' eventlet/green/OpenSSL/__init__.py || die +# sed -i 's/^from version/from OpenSSL.version/' eventlet/green/OpenSSL/__init__.py || die + sed -i 's/TEST_TIMEOUT = 1/TEST_TIMEOUT = 10/' tests/__init__.py || die + fi + + # Prevent file collisions from teestsuite + sed -e "s:'tests', :'tests', 'tests.*', :" -i setup.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + # https://github.com/eventlet/eventlet/issues/152 + use doc && emake -C doc html +} + +python_test() { + # Several errors 1 failure + # https://github.com/eventlet/eventlet/issues/151 + nosetests tests || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/_build/html/. ) + use examples && local EXAMPLES=( examples/. ) + distutils-r1_python_install_all +}