From 06a7b5647e11a8ddf69b1c3d3ded6a8ba28b923e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 2 Mar 2018 15:59:12 +0000 Subject: gentoo resync : 02.03.2018 --- dev-python/aiohttp/Manifest | 5 +- dev-python/aiohttp/aiohttp-3.0.5.ebuild | 70 ++++++++++++++++++++++ dev-python/aiohttp/files/aiohttp-3.0.5-tests.patch | 10 ++++ dev-python/aiohttp/metadata.xml | 4 ++ 4 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 dev-python/aiohttp/aiohttp-3.0.5.ebuild create mode 100644 dev-python/aiohttp/files/aiohttp-3.0.5-tests.patch (limited to 'dev-python/aiohttp') diff --git a/dev-python/aiohttp/Manifest b/dev-python/aiohttp/Manifest index 930bef99b957..0b33fa8bc472 100644 --- a/dev-python/aiohttp/Manifest +++ b/dev-python/aiohttp/Manifest @@ -1,7 +1,10 @@ +AUX aiohttp-3.0.5-tests.patch 294 BLAKE2B c535d85c0ad73394897db4db2743e3e6c09faa98a5a8a013b5b5b7af79adffaaa30f20a4cdff65760911c8f3ff373318e144d7ace6a7de6b0fa7b6cf9b8bf352 SHA512 0e5871efad3d360757fdd1ef723b741669a1e0b98728f58fe689b66b765dd4607e05a72cb618ac55b6a61cd53247916f9d497ca147eb7c8c86b8473a298a4b38 DIST aiohttp-1.3.3.tar.gz 526273 BLAKE2B 5721479dc2141167118f226b266b504d689fa6708d895817fa448c4ffcdcfd71f5e95c98015d3a0e159d1f8d67232f3ad8a31abbed2532eb60564518df017bee SHA512 39342270f615f7e5e01889ad50ccb60335151e94631007b105acda9930038d2fb66128469ca44043280c9f737130e2361129e2fa1c857a7654a1151b98a19a69 DIST aiohttp-1.3.5.tar.gz 527432 BLAKE2B 6420ecc1eaa29713643dbe9a05061df5277f10e263469d82a24397fa2ec53cf57aaeac86c22a17f06102bfcc69bfe959b6e00b264d9ef30eb193405f4eb9ea70 SHA512 b99630fa9006163d61e0e010972aee8daad021c5ad0152b04fb6f8b661f18ea03fcfa8d35603ecfcdaef4ecbaff0159b49e2f40164241bb5def48b2847e2d966 DIST aiohttp-2.3.2.tar.gz 841030 BLAKE2B a291baa1c5e915815ec80ea1cbd8434b31f4098eeff20767898fc73d75c6194df4bc2a5d21147a8e5c506f5bc377e79b6e8937ce65b9c73616366f439e542c1a SHA512 e481787fec8c9f21d49978b378fb5ef8c06d06cd7a6625fc36c5d4a035e9047f4ed0e38b25b613f1b685ca40e18c796376750f4ac0970fcd1d72ca7fbe31d13f +DIST aiohttp-3.0.5.tar.gz 738000 BLAKE2B 742d3647a61e21ed8fc7a0a344337c5260b2bc34ffeb84660ddc031ff3872c97d7cadb66a02a4bc2531ca22b54fc1b93e8cf321d696cf4ec21a60170631d866c SHA512 650dbe3e5363c259fc5ce95baec4fd16ca2fd0836236d7d8f65597346f72fec29f803e037ffd6fc4e726a28a973aa09b0a3874a685516fbc4e843ad7f0f08b7b EBUILD aiohttp-1.3.3.ebuild 1546 BLAKE2B 3fce4cc4595b0628ddeb022a59d06a57ce8700f8fe3c0d9ce60cda37afe0b31de1c91f8a509c49b296a1de78e8ab0dd75863b508e95dabeb17fa4ae3cf86a136 SHA512 8b12d96faa49923a7ad541b5de41dc8cb2aa47ebff0b7203d422f6b0f7fe0ef2ab2dfa2d04e74aa03aed99833c202c3fa99f56fe35e6e762c5bf03dab048037d EBUILD aiohttp-1.3.5.ebuild 1546 BLAKE2B 3fce4cc4595b0628ddeb022a59d06a57ce8700f8fe3c0d9ce60cda37afe0b31de1c91f8a509c49b296a1de78e8ab0dd75863b508e95dabeb17fa4ae3cf86a136 SHA512 8b12d96faa49923a7ad541b5de41dc8cb2aa47ebff0b7203d422f6b0f7fe0ef2ab2dfa2d04e74aa03aed99833c202c3fa99f56fe35e6e762c5bf03dab048037d EBUILD aiohttp-2.3.2.ebuild 1591 BLAKE2B 4e33b62f7938397f65f623760934eae62011fcca2e442a599ee92cc8e51926a53fd91288cd5cea3ba453d2683c0d0642bfc45acbc5b9bb52817049753cbf298d SHA512 5d9bd5ccdb55ad9ce780f94c9e346f9f79cbc53cb76cd18aeefb3624f3c418a5856593f57effe1b7f1765a3cd2ae454d499a7d553f14937f9a23406dc9caffc5 -MISC metadata.xml 382 BLAKE2B 33c21cb992ab7fee92f5d168c28d83e974881218471ed6e0fb43dc12ec9a44c3631ea1037b6512eb39c2d78569fd2997ce48379e580ee22234a27dbfc675a20f SHA512 a66a7d449dae4daae075ad0a2825fd0199af120805c03032b39f418716b61eb300ff21d309d3e9835ce40c7405eb05be89ee26109e186a9a29e986acce322d8b +EBUILD aiohttp-3.0.5.ebuild 1829 BLAKE2B 8dfe5f043de73b63c21942c79b8ae240766a30185570bda2f4213f6b759e46a2ba2d0987e5eb4c5a70cbb90fc591ed0a8d8e36050fadd7a6c22d49db40054c75 SHA512 9a0e35e90b834c8da6ca4462e76879159686f7abd2459fc7e5742c769585bce69c6bfd4f43d625fc7b3de0d530d882bd0787985970f12cb8d3c0544ae0fe8eea +MISC metadata.xml 489 BLAKE2B beb80da34848dfe7b81ed65d75923480644ecf42e2c5ce04a7f66f3e729651fdc6035054482aff966ec9f03cfbb812d3be0afd783af69e37f1002182e4885473 SHA512 d8c9e2edb8a57a3b6b02bb5314aef77dc266af6e80fd0300eb0652c59790232017d0062f5b7361b059c382d1c904f0f46cd0e672d1963e9595f3d4dc7514f182 diff --git a/dev-python/aiohttp/aiohttp-3.0.5.ebuild b/dev-python/aiohttp/aiohttp-3.0.5.ebuild new file mode 100644 index 000000000000..2fb47c689da7 --- /dev/null +++ b/dev-python/aiohttp/aiohttp-3.0.5.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PYTHON_COMPAT=( python3_{5,6} ) + +inherit distutils-r1 + +DESCRIPTION="http client/server for asyncio" +HOMEPAGE="https://pypi.python.org/pypi/aiohttp" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +CDEPEND=" + >=dev-python/async_timeout-1.2.0[${PYTHON_USEDEP}] + >=dev-python/attrs-17.3.0[${PYTHON_USEDEP}] + dev-python/chardet[${PYTHON_USEDEP}] + >=dev-python/multidict-4.0.0[${PYTHON_USEDEP}] + >=dev-python/yarl-1.0[${PYTHON_USEDEP}] + dev-python/idna-ssl[${PYTHON_USEDEP}] +" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/cython[${PYTHON_USEDEP}] + doc? ( + >=dev-python/alabaster-0.6.2[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-asyncio[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-newsfeed[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-spelling[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + ) + test? ( + ${CDEPEND} + >=dev-python/pytest-3.4.0[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + www-servers/gunicorn[${PYTHON_USEDEP}] + ) +" +RDEPEND="${CDEPEND}" + +DOCS=( CHANGES.rst CONTRIBUTING.rst CONTRIBUTORS.txt HISTORY.rst README.rst ) +PATCHES=( "${FILESDIR}"/${P}-tests.patch ) + +python_prepare_all() { + # skip failing tests until cause is determined + rm tests/{test_pytest_plugin.py,test_worker.py} || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + #PYTHONPATH="${PWD}:${PYTHONPATH}" py.test -v tests || die "Tests failed under ${EPYTHON}" + esetup.py test +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + + distutils-r1_python_install_all +} diff --git a/dev-python/aiohttp/files/aiohttp-3.0.5-tests.patch b/dev-python/aiohttp/files/aiohttp-3.0.5-tests.patch new file mode 100644 index 000000000000..4f6d7b526e51 --- /dev/null +++ b/dev-python/aiohttp/files/aiohttp-3.0.5-tests.patch @@ -0,0 +1,10 @@ +--- aiohttp-3.0.5/tests/test_test_utils.py ++++ aiohttp-3.0.5/tests/test_test_utils.py +@@ -243,6 +243,7 @@ + make_url(URL('http://foo.com')) + + ++@pytest.mark.skip("running via external test file fails") + def test_testcase_no_app(testdir, loop): + testdir.makepyfile( + """ diff --git a/dev-python/aiohttp/metadata.xml b/dev-python/aiohttp/metadata.xml index b09694a0e1b3..42cff1cd5542 100644 --- a/dev-python/aiohttp/metadata.xml +++ b/dev-python/aiohttp/metadata.xml @@ -5,6 +5,10 @@ zmedico@gentoo.org Zac Medico + + python@gentoo.org + Python + aiohttp aio-libs/aiohttp -- cgit v1.2.3