diff options
-rw-r--r-- | dev-python/eventlet/Manifest | 1 | ||||
-rw-r--r-- | dev-python/eventlet/eventlet-0.19.0.ebuild | 64 |
2 files changed, 65 insertions, 0 deletions
diff --git a/dev-python/eventlet/Manifest b/dev-python/eventlet/Manifest index 39b309cf1d5..1de9ea04147 100644 --- a/dev-python/eventlet/Manifest +++ b/dev-python/eventlet/Manifest @@ -4,3 +4,4 @@ DIST eventlet-0.17.1.tar.gz 277110 SHA256 de9c23eb94e55150b25150822a28f916560289 DIST eventlet-0.17.4.tar.gz 284480 SHA256 8721e9714eaff8d20f2407e0d3a80069db6b57c9226c26ee9db25c541d06556d SHA512 fee3ef0ebe7aaf8cb87283af71ca8902c4480b47cf2109be96e6fcbcf25a743e411715fa73b31e820b152ef4403ccbd5a45117e69565e8e49fd1795a5cc19e3d WHIRLPOOL e78344ac9e7f7f1c4bd6fc65f0a35dec317c10b12821a73dc875d79a94e36f16ddda5551e3326c600ea553ef05382b4cd2f7a88b6600899ae74a8b4556eb155e DIST eventlet-0.18.3.tar.gz 288867 SHA256 c188cc0f186892fb9c77846c0e669fde4a3d263938e3c8a76cb1108cbdf0cc9a SHA512 8e132ada9392170c5d915699b414eb55a2738259e4a49f1d79c41e7820e33c2aefc2057f0b50a126554a47911051104d4c038fbee48790f0b73a67d74c02f756 WHIRLPOOL b2adc594c0a62540874ffff6c716c725f0ca9b102ea618c651027459fae95fc70506c7c420db470c46a0109558d9c327b27f08506fad3844018f8761f2cfdd94 DIST eventlet-0.18.4.tar.gz 288920 SHA256 74ef11d67ee5e85e009b0fced733c907620bca1ab8e6b0489d9f247405ab2685 SHA512 3098f2e8649b1e10157b9474571b372176b05263a7d5e7bb915b0464551d70505bbdf77dc072f64c1c05b3011406ae4814ea1b6f746cea766bb58827b1515fcc WHIRLPOOL 818fea5dec6532312068b9853a501d38bf4e69cca4e6e7ad6f6cbede9f9fe63237e3889ddb8b74d3d0e080b826d24532ed488687b60fc160a7e65d129ce2497f +DIST eventlet-0.19.0.tar.gz 290898 SHA256 306373b8adda84b7d471f5829c59ca33f9438c8ecd34daf5cddde19d376caf21 SHA512 68b7f46b9270dc975a1133b3e8f77441a942b5b2ddd890c97a4cbfbc3f0070dabb3620800469023f0923c23ef5b50fbe9ec0bd354e084614deffde8b3d7cc84e WHIRLPOOL 40dcf7bd41d2db47b511691410de3ca2ce2a09259fdb7569515336f1da35e1dd68513ca59d461110830c33dc84f5d62e3f18e677b3a984a05808f2738e5f0785 diff --git a/dev-python/eventlet/eventlet-0.19.0.ebuild b/dev-python/eventlet/eventlet-0.19.0.ebuild new file mode 100644 index 00000000000..b071e602201 --- /dev/null +++ b/dev-python/eventlet/eventlet-0.19.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_3 python3_4 python3_5 ) + +inherit distutils-r1 + +DESCRIPTION="Highly concurrent networking library" +HOMEPAGE="https://pypi.python.org/pypi/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/greenlet-0.3[${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() { + 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 +} |