[gentoo-commits] repo/gentoo:master commit in: dev-python/aiohttp/, dev-python/aiohttp/files/
commit: 0482e646047d37536afc26291d6374b31ec03550 Author: Michał Górny gentoo org> AuthorDate: Sun Dec 10 14:24:38 2023 + Commit: Michał Górny gentoo org> CommitDate: Sun Dec 10 14:24:38 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0482e646 dev-python/aiohttp: Remove old Signed-off-by: Michał Górny gentoo.org> dev-python/aiohttp/Manifest| 2 - dev-python/aiohttp/aiohttp-3.8.6-r1.ebuild | 111 --- dev-python/aiohttp/aiohttp-3.9.0.ebuild| 117 - .../aiohttp/files/aiohttp-3.8.6-brotlicffi.patch | 46 4 files changed, 276 deletions(-) diff --git a/dev-python/aiohttp/Manifest b/dev-python/aiohttp/Manifest index f952f78c491e..ea185863d65a 100644 --- a/dev-python/aiohttp/Manifest +++ b/dev-python/aiohttp/Manifest @@ -1,3 +1 @@ -DIST aiohttp-3.8.6.tar.gz 7352172 BLAKE2B 4dc602abb4f9bd7c65bda7d11cde3e703bbc7786fb3f8ef36922caef42912b2c10a198ebdcecd3fcd022c3a9a729766a2023636f756a8fa10663bf988554f967 SHA512 43f1dd6670d90aefee7f0f30411b13c643ea684815b493cc4437e5f1981f4fdf4b718a40543d7c3c8c70d8b27470b8f3bf1609e46146362e0490ce0990a057f5 -DIST aiohttp-3.9.0.tar.gz 7475063 BLAKE2B 0447b9b095b3004b16eef37bd4d815f864dbfad7efb3021cb97676487cdf6d3007de47cb80daa773cc645ca60b21c79768fdc7a15163bb60578b4d05e17db924 SHA512 3001ea211985c26aa4f8a20210d80d6e72a904c1ea93a5aed5d08eb191dd253155ec5a44ae14d961c6ebbc747cbc8e602866ee7eb0b8963cf783a68dcf8b3ba6 DIST aiohttp-3.9.1.tar.gz 7482118 BLAKE2B 2150ae98f799f9c6e1f48987bfd8b1847439d8b87cd21417676c2fa5c971fcdc13c3f933dfdd5eceb92b47ad604d16c2a71d884118d8bde1816f2d944d2930a2 SHA512 3288085d5fbcfb7e3664f906345aeab6f989f2318babae6bf5cc3955de48707e9de56ce3b9553d6ee35c72b8f884dc1fd01861a638ee738573e78a203e6a9dec diff --git a/dev-python/aiohttp/aiohttp-3.8.6-r1.ebuild b/dev-python/aiohttp/aiohttp-3.8.6-r1.ebuild deleted file mode 100644 index 87cf0162f94c.. --- a/dev-python/aiohttp/aiohttp-3.8.6-r1.ebuild +++ /dev/null @@ -1,111 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..12} pypy3 ) - -inherit distutils-r1 multiprocessing pypi - -DESCRIPTION="HTTP client/server for asyncio" -HOMEPAGE=" - https://github.com/aio-libs/aiohttp/ - https://pypi.org/project/aiohttp/ -" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86" -IUSE="test-rust" - -RDEPEND=" - >=dev-python/aiosignal-1.1.2[${PYTHON_USEDEP}] - >=dev-python/async-timeout-4.0.0_alpha3[${PYTHON_USEDEP}] - >=dev-python/attrs-17.3.0[${PYTHON_USEDEP}] - dev-python/brotlicffi[${PYTHON_USEDEP}] - =dev-python/charset-normalizer-2.0[${PYTHON_USEDEP}] - >=dev-python/frozenlist-1.1.1[${PYTHON_USEDEP}] - >=dev-python/multidict-4.5.0[${PYTHON_USEDEP}] - >=dev-python/yarl-1.0[${PYTHON_USEDEP}] -" -BDEPEND=" - dev-python/cython[${PYTHON_USEDEP}] - test? ( - dev-python/freezegun[${PYTHON_USEDEP}] - www-servers/gunicorn[${PYTHON_USEDEP}] - dev-python/pytest-forked[${PYTHON_USEDEP}] - dev-python/pytest-mock[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - dev-python/re-assert[${PYTHON_USEDEP}] - test-rust? ( - dev-python/trustme[${PYTHON_USEDEP}] - ) - ) -" - -DOCS=( CHANGES.rst CONTRIBUTORS.txt README.rst ) - -distutils_enable_tests pytest - -src_prepare() { - local PATCHES=( - "${FILESDIR}/${P}-brotlicffi.patch" - ) - - # increase the timeout a little - sed -e '/abs_tol=/s/0.001/0.01/' -i tests/test_helpers.py || die - - # xfail_strict fails on py3.10 - sed -i -e '/--cov/d' -e '/xfail_strict/d' setup.cfg || die - - # which(1)... also -Werror, sigh - sed -i -e 's:which:command -v:' -e 's:-Werror::' Makefile || die - - distutils-r1_src_prepare -} - -python_configure_all() { - # workaround missing files - mkdir requirements tools || die - > requirements/cython.txt || die - > tools/gen.py || die - chmod +x tools/gen.py || die - # force rehashing first - emake requirements/.hash/cython.txt.hash - > .update-pip || die - > .install-cython || die - emake cythonize -} - -python_test() { - local EPYTEST_IGNORE=( - # proxy is not packaged - tests/test_proxy_functional.py - ) - - local EPYTEST_DESELECT=( - # Internet - tests/test_client_session.py::test_client_session_timeout_zero - # broken by irrelevant deprecation warnings - tests/test_circular_imports.py::test_no_warnings - # TODO -
[gentoo-commits] repo/gentoo:master commit in: dev-python/aiohttp/, dev-python/aiohttp/files/
commit: 20c441c94b486dd95b72684d69b9985f34d4ed0c Author: Michał Górny gentoo org> AuthorDate: Thu Jan 20 14:18:15 2022 + Commit: Michał Górny gentoo org> CommitDate: Thu Jan 20 14:20:20 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20c441c9 dev-python/aiohttp: Remove old Signed-off-by: Michał Górny gentoo.org> dev-python/aiohttp/Manifest| 2 - dev-python/aiohttp/aiohttp-3.7.4-r2.ebuild | 105 - dev-python/aiohttp/aiohttp-3.8.0.ebuild| 94 -- .../aiohttp/files/aiohttp-3.7.4-brotli.patch | 97 --- .../aiohttp/files/aiohttp-3.7.4-fix-py3.10.patch | 73 -- .../aiohttp/files/aiohttp-3.8.0-examples.patch | 27 -- 6 files changed, 398 deletions(-) diff --git a/dev-python/aiohttp/Manifest b/dev-python/aiohttp/Manifest index 8f0a324c5f99..7c1042028406 100644 --- a/dev-python/aiohttp/Manifest +++ b/dev-python/aiohttp/Manifest @@ -1,3 +1 @@ -DIST aiohttp-3.7.4.tar.gz 1114533 BLAKE2B dcae3e66e13df8264d731a3ca65b4718feca8d0e6e1baeb6608dcb9bfb4bd4baaed6bd34297ed5ece78d01189bf9a0b9860845cae4e2b93cc2ba463cc35cfb77 SHA512 66fcc837b388020dc998cbaa2db31e48ecec75bcfaa8af9108e2ea265588dafa5684ca96a8fe3ad6759b22e09a4ae6d4efd8653fb76126eccdc826c15cbbe2e6 -DIST aiohttp-3.8.0.tar.gz 7323268 BLAKE2B e3d8f6ec7c4b2de685a261171bc8e29db82b5b4677d0d4d0b103898c71184deda700f4859fff49746ace3079f09714c39d06c7d837cdc7fb26c8ebc4b29da915 SHA512 beb711812ccaab6d820c39e663e4aaba9106e270ab28ccdb8f35b74bc68509876dc30061f3df390e514e6ff8d24ede2e77e3355986ca2c5ee860eba940d72f5b DIST aiohttp-3.8.1.tar.gz 7324180 BLAKE2B 99f85b8510782a31de2d2f6c8efa65ef5c5cde600a5c5f49d6362d5833a0443b9adcaed9beb27c5d8502aca37af154b06017f48836b73d4c61d78204b62b7f05 SHA512 3611549393e50c8d30426aee9ddd23794a71ddefe4384eb549049b93e452fafb38de7ad900737213b61fbe717bd85035a780c1622593eae250328f17d484a0a7 diff --git a/dev-python/aiohttp/aiohttp-3.7.4-r2.ebuild b/dev-python/aiohttp/aiohttp-3.7.4-r2.ebuild deleted file mode 100644 index 15a4eb545b17.. --- a/dev-python/aiohttp/aiohttp-3.7.4-r2.ebuild +++ /dev/null @@ -1,105 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{8..10} pypy3 ) - -inherit distutils-r1 multiprocessing - -DESCRIPTION="http client/server for asyncio" -HOMEPAGE="https://pypi.org/project/aiohttp/; -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ppc ppc64 ~riscv sparc x86" - -RDEPEND=" - =dev-python/attrs-17.3.0[${PYTHON_USEDEP}] - dev-python/chardet[${PYTHON_USEDEP}] - >=dev-python/multidict-4.5.0[${PYTHON_USEDEP}] - >=dev-python/yarl-1.0[${PYTHON_USEDEP}] - dev-python/typing-extensions[${PYTHON_USEDEP}] -" -BDEPEND=" - dev-python/cython[${PYTHON_USEDEP}] - test? ( - !!dev-python/pytest-aiohttp - app-arch/brotli[python,${PYTHON_USEDEP}] - dev-python/async_generator[${PYTHON_USEDEP}] - dev-python/freezegun[${PYTHON_USEDEP}] - www-servers/gunicorn[${PYTHON_USEDEP}] - dev-python/pytest-forked[${PYTHON_USEDEP}] - dev-python/pytest-mock[${PYTHON_USEDEP}] - dev-python/pytest-timeout[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - dev-python/re-assert[${PYTHON_USEDEP}] - dev-python/trustme[${PYTHON_USEDEP}] - ) -" - -PATCHES=( - "${FILESDIR}"/aiohttp-3.7.4-brotli.patch - "${FILESDIR}"/aiohttp-3.7.4-fix-py3.10.patch -) - -DOCS=( CHANGES.rst CONTRIBUTORS.txt README.rst ) - -distutils_enable_tests pytest -distutils_enable_sphinx docs \ - '>=dev-python/alabaster-0.6.2' \ - 'dev-python/sphinxcontrib-asyncio' \ - 'dev-python/sphinxcontrib-blockdiag' \ - 'dev-python/sphinxcontrib-newsfeed' \ - 'dev-python/sphinxcontrib-spelling' \ - 'dev-python/sphinx' \ - 'dev-python/sphinx-aiohttp-theme' - -python_prepare_all() { - # newer chardet works too - sed -e 's|chardet>=2.0,<4.0|chardet>=2.0|' \ - -i setup.py aiohttp.egg-info/requires.txt || die - - # takes a very long time, then fails - rm tests/test_pytest_plugin.py || die - - distutils-r1_python_prepare_all -} - -python_test() { - local deselect=( - # fails with a 'runtime warning' - 'tests/test_client_functional.py::test_aiohttp_request_coroutine[pyloop]' - - # fragile to test paths - tests/test_route_def.py::test_static - - # requires Internet - tests/test_formdata.py::test_mark_formdata_as_processed - - # 'Event loop is closed' -- probably broken by old age -
[gentoo-commits] repo/gentoo:master commit in: dev-python/aiohttp/, dev-python/aiohttp/files/
commit: 320b8fba60f8469b023f3291ce56f3491982f1ef Author: Michał Górny gentoo org> AuthorDate: Mon Nov 1 11:31:09 2021 + Commit: Michał Górny gentoo org> CommitDate: Mon Nov 1 11:40:39 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=320b8fba dev-python/aiohttp: Bump to 3.8.0 Signed-off-by: Michał Górny gentoo.org> dev-python/aiohttp/Manifest| 1 + dev-python/aiohttp/aiohttp-3.8.0.ebuild| 94 ++ .../aiohttp/files/aiohttp-3.8.0-examples.patch | 27 +++ 3 files changed, 122 insertions(+) diff --git a/dev-python/aiohttp/Manifest b/dev-python/aiohttp/Manifest index c5a16a92aa4..8ee6cae8dde 100644 --- a/dev-python/aiohttp/Manifest +++ b/dev-python/aiohttp/Manifest @@ -1 +1,2 @@ DIST aiohttp-3.7.4.tar.gz 1114533 BLAKE2B dcae3e66e13df8264d731a3ca65b4718feca8d0e6e1baeb6608dcb9bfb4bd4baaed6bd34297ed5ece78d01189bf9a0b9860845cae4e2b93cc2ba463cc35cfb77 SHA512 66fcc837b388020dc998cbaa2db31e48ecec75bcfaa8af9108e2ea265588dafa5684ca96a8fe3ad6759b22e09a4ae6d4efd8653fb76126eccdc826c15cbbe2e6 +DIST aiohttp-3.8.0.tar.gz 7323268 BLAKE2B e3d8f6ec7c4b2de685a261171bc8e29db82b5b4677d0d4d0b103898c71184deda700f4859fff49746ace3079f09714c39d06c7d837cdc7fb26c8ebc4b29da915 SHA512 beb711812ccaab6d820c39e663e4aaba9106e270ab28ccdb8f35b74bc68509876dc30061f3df390e514e6ff8d24ede2e77e3355986ca2c5ee860eba940d72f5b diff --git a/dev-python/aiohttp/aiohttp-3.8.0.ebuild b/dev-python/aiohttp/aiohttp-3.8.0.ebuild new file mode 100644 index 000..a5d3ec99226 --- /dev/null +++ b/dev-python/aiohttp/aiohttp-3.8.0.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} pypy3 ) + +inherit distutils-r1 multiprocessing + +DESCRIPTION="http client/server for asyncio" +HOMEPAGE=" + https://pypi.org/project/aiohttp/ + https://github.com/aio-libs/aiohttp/; +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + app-arch/brotli[python,${PYTHON_USEDEP}] + >=dev-python/aiosignal-1.1.2[${PYTHON_USEDEP}] + >=dev-python/async_timeout-4.0.0_alpha3[${PYTHON_USEDEP}] + >=dev-python/attrs-17.3.0[${PYTHON_USEDEP}] + >=dev-python/charset_normalizer-2.0[${PYTHON_USEDEP}] + >=dev-python/frozenlist-1.1.1[${PYTHON_USEDEP}] + >=dev-python/multidict-4.5.0[${PYTHON_USEDEP}] + >=dev-python/yarl-1.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/pypy3-7.3.6 + ' pypy3) +" +BDEPEND=" + test? ( + app-arch/brotli[python,${PYTHON_USEDEP}] + dev-python/async_generator[${PYTHON_USEDEP}] + dev-python/freezegun[${PYTHON_USEDEP}] + www-servers/gunicorn[${PYTHON_USEDEP}] + dev-python/pytest-forked[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/re-assert[${PYTHON_USEDEP}] + dev-python/trustme[${PYTHON_USEDEP}] + ) +" + +DOCS=( CHANGES.rst CONTRIBUTORS.txt README.rst ) + +distutils_enable_tests pytest +distutils_enable_sphinx docs \ + '>=dev-python/alabaster-0.6.2' \ + 'dev-python/sphinxcontrib-asyncio' \ + 'dev-python/sphinxcontrib-blockdiag' \ + 'dev-python/sphinxcontrib-newsfeed' \ + 'dev-python/sphinxcontrib-spelling' \ + 'dev-python/sphinx' \ + 'dev-python/sphinx-aiohttp-theme' + +# TODO: re-cythonize modules? + +src_prepare() { + local PATCHES=( + "${FILESDIR}"/${P}-examples.patch + ) + + # xfail_strict fails on py3.10 + sed -i -e '/--cov/d' -e '/xfail_strict/d' setup.cfg || die + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_IGNORE=( + # proxy is not packaged + tests/test_proxy_functional.py + ) + + local EPYTEST_DESELECT=( + # runtime warnings + 'tests/test_client_functional.py::test_aiohttp_request_coroutine[pyloop]' + # Internet + tests/test_client_session.py::test_client_session_timeout_zero + ) + + [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=( + # C extensions are not used on PyPy3 + tests/test_http_parser.py::test_c_parser_loaded + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=pytest_mock,xdist.plugin,pytest_forked + mv aiohttp aiohttp.hidden || die + epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" --forked + mv aiohttp.hidden aiohttp || die +} diff --git a/dev-python/aiohttp/files/aiohttp-3.8.0-examples.patch b/dev-python/aiohttp/files/aiohttp-3.8.0-examples.patch new file mode 100644 index 000..ed3f38f68fe --- /dev/null +++
[gentoo-commits] repo/gentoo:master commit in: dev-python/aiohttp/, dev-python/aiohttp/files/
commit: 0467886b731053bc339461912e0c4efe20dccf8f Author: Arthur Zamarin gmail com> AuthorDate: Sat Jul 24 16:51:26 2021 + Commit: Michał Górny gentoo org> CommitDate: Thu Jul 29 18:46:54 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0467886b dev-python/aiohttp: enable py3.10 patch taken from comment here: https://github.com/aio-libs/aiohttp/issues/5905 Signed-off-by: Arthur Zamarin gmail.com> Signed-off-by: Michał Górny gentoo.org> dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild | 3 +- .../aiohttp/files/aiohttp-3.7.4-fix-py3.10.patch | 73 ++ 2 files changed, 75 insertions(+), 1 deletion(-) diff --git a/dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild b/dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild index 3871075876e..4c0cea0a0d1 100644 --- a/dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild +++ b/dev-python/aiohttp/aiohttp-3.7.4-r1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{8..9} ) +PYTHON_COMPAT=( python3_{8..10} ) inherit distutils-r1 multiprocessing @@ -42,6 +42,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/aiohttp-3.7.4-brotli.patch + "${FILESDIR}"/aiohttp-3.7.4-fix-py3.10.patch ) DOCS=( CHANGES.rst CONTRIBUTORS.txt README.rst ) diff --git a/dev-python/aiohttp/files/aiohttp-3.7.4-fix-py3.10.patch b/dev-python/aiohttp/files/aiohttp-3.7.4-fix-py3.10.patch new file mode 100644 index 000..3c7593584b7 --- /dev/null +++ b/dev-python/aiohttp/files/aiohttp-3.7.4-fix-py3.10.patch @@ -0,0 +1,73 @@ +commit ec87d9f2b6541599dd7fc8aaebf0fdfbb812ade7 +Author: Louis Sautier +Date: Tue Jul 20 23:37:27 2021 +0200 + +Remove deprecated loop argument from asyncio.sleep/gather calls + +diff --git a/aiohttp/web.py b/aiohttp/web.py +index 557e3c3b..52dfdf93 100644 +--- a/aiohttp/web.py b/aiohttp/web.py +@@ -441,7 +441,7 @@ def _cancel_tasks( + task.cancel() + + loop.run_until_complete( +-asyncio.gather(*to_cancel, loop=loop, return_exceptions=True) ++asyncio.gather(*to_cancel, return_exceptions=True) + ) + + for task in to_cancel: +diff --git a/tests/test_locks.py b/tests/test_locks.py +index 55fd2330..5f434eac 100644 +--- a/tests/test_locks.py b/tests/test_locks.py +@@ -18,7 +18,7 @@ class TestEventResultOrError: + return 1 + + t = loop.create_task(c()) +-await asyncio.sleep(0, loop=loop) ++await asyncio.sleep(0) + e = Exception() + ev.set(exc=e) + assert (await t) == e +@@ -31,7 +31,7 @@ class TestEventResultOrError: + return 1 + + t = loop.create_task(c()) +-await asyncio.sleep(0, loop=loop) ++await asyncio.sleep(0) + ev.set() + assert (await t) == 1 + +@@ -43,7 +43,7 @@ class TestEventResultOrError: + + t1 = loop.create_task(c()) + t2 = loop.create_task(c()) +-await asyncio.sleep(0, loop=loop) ++await asyncio.sleep(0) + ev.cancel() + ev.set() + +diff --git a/tests/test_proxy_functional.py b/tests/test_proxy_functional.py +index 68763cd4..65c773a1 100644 +--- a/tests/test_proxy_functional.py b/tests/test_proxy_functional.py +@@ -238,7 +238,7 @@ async def test_proxy_http_multi_conn_limit(proxy_test_server, loop) -> None: + resp = await sess.get(url, proxy=proxy.url) + + current_pid = pid +-await asyncio.sleep(0.2, loop=loop) ++await asyncio.sleep(0.2) + assert current_pid == pid + + await resp.release() +@@ -443,7 +443,7 @@ async def xtest_proxy_https_multi_conn_limit(proxy_test_server, loop): + resp = await sess.get(url, proxy=proxy.url) + + current_pid = pid +-await asyncio.sleep(0.2, loop=loop) ++await asyncio.sleep(0.2) + assert current_pid == pid + + await resp.release() +
[gentoo-commits] repo/gentoo:master commit in: dev-python/aiohttp/, dev-python/aiohttp/files/, profiles/
commit: 05221727dae9c89a1ca89647f1c53f89afb65fc5 Author: Tim Harder gentoo org> AuthorDate: Thu Mar 1 19:33:45 2018 + Commit: Tim Harder gentoo org> CommitDate: Thu Mar 1 19:34:50 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05221727 dev-python/aiohttp: version bump to 3.0.5 dev-python/aiohttp/Manifest| 1 + dev-python/aiohttp/aiohttp-3.0.5.ebuild| 70 ++ dev-python/aiohttp/files/aiohttp-3.0.5-tests.patch | 10 profiles/package.mask | 4 ++ 4 files changed, 85 insertions(+) diff --git a/dev-python/aiohttp/Manifest b/dev-python/aiohttp/Manifest index ae442151dc7..34c6ccf90bb 100644 --- a/dev-python/aiohttp/Manifest +++ b/dev-python/aiohttp/Manifest @@ -1,3 +1,4 @@ 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 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 000..2fb47c689da --- /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 000..4f6d7b526e5 --- /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( +