From c25088d4fc442a7d6dc3a8d0498b43024888318d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 25 Sep 2024 01:25:44 +0100 Subject: gentoo auto-resync : 25:09:2024 - 01:25:44 --- dev-python/aiohttp/Manifest | 2 + dev-python/aiohttp/aiohttp-3.10.6_rc2.ebuild | 112 +++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 dev-python/aiohttp/aiohttp-3.10.6_rc2.ebuild (limited to 'dev-python/aiohttp') diff --git a/dev-python/aiohttp/Manifest b/dev-python/aiohttp/Manifest index f43c37ec4c85..a7bf783a19dc 100644 --- a/dev-python/aiohttp/Manifest +++ b/dev-python/aiohttp/Manifest @@ -1,5 +1,7 @@ DIST aiohttp-3.10.5.tar.gz 7524360 BLAKE2B 57ca70d1a075ae7f9ba9b86a19be52e05e88518e28baefb16e852ce83707bfbad9cb06af08a2cea3371349649e85ab6dfb3426ee2759a4e84456041373575a8b SHA512 bb932d24b3ce332d8a232ef3bf1fbe9b0a7df9986ad5e81d5f41bc31a81204653e5250c4f0ee77a9eeb53d404bd907b12977d31caae54c00ef0146350629e750 +DIST aiohttp-3.10.6rc2.tar.gz 7538723 BLAKE2B 3de1cb0bfa9fea7ec8bcdab5a7850de700cb73b7a066ab269743e2bdbf84066e4555515dc81aea7c84be10ed9fc9487610577b44db164e49e61f19155c4dda35 SHA512 311f9ba7cafc7f1211c5c1859e235e0fd6941c32c77bfd0b74472dcf4b599b145fcc9e8496cb00300ae45c994d7b53082f39bc42a2a1cec304b92f9ce8109822 DIST aiohttp-3.9.5.tar.gz 7504841 BLAKE2B f051ee88d45952219f72d542f1c6d0cc33c699c6c5fb5dbe3bc054ee4d0e03121b219c8c8524fd1236a8b878329b0997b8afe07d6c66074102d4a2052a8738ff SHA512 da11468a2f131275593395b052700a99cf79055a32d48327dca0f58547ad30add8cd0a375dbd831e2f06fe7a739183251e4ad69c16f3d141799bbed45a8a5dc4 EBUILD aiohttp-3.10.5.ebuild 2928 BLAKE2B 7b8063b7acf46065cbc1c4fad8be320d30867338f46467ffe90145456cda0c5ea6aa06eb9f294f914f10fac5b4ec7724606b5560ae21a0920378404e53bd6b60 SHA512 56b2ce15463781250f059a2d938e8ed0a0fd8ebf7edbe9b8795dff36d3511e86271c778100053312b196905f9447d89c76f8620aace64af7278c47bd005ffd7f +EBUILD aiohttp-3.10.6_rc2.ebuild 2938 BLAKE2B f5ab1487ecf4b0e2bf6179877229556a4765c8da18a4b9668e7da7b23609e10d2c7fe6861e314f13e93032c64fbee7f4262dfb2faf68599c79775807aac89f0d SHA512 d3ac2316f618fa8f037725d02b3b91d68fab42774dec5768c0d93d2469c6fa81f2b0c56388fa58fa73b47351dd208c947305bd9ec9bbb1333a8ca9eacfcb177d EBUILD aiohttp-3.9.5.ebuild 2878 BLAKE2B bcb50c31260a08bec59c323524c9ee80e1c0944548ff12ded5b9c73671dd763b7510c97d4f61cbbf5b7715282e8373df1182a9c5dedd2170bdd8d1d2c124b4bc SHA512 632ae92a3370e41c2d434ae953020a1216fdf211d4754ff28fd8fa9070159d57daa53f07cd11c035598a1e491f4ee5d1139fb36b86100b7a57b679597e4e3fc0 MISC metadata.xml 490 BLAKE2B 5233af0b5e2668b1eb62278b05b62f24f1ab90f6d05b20dd9f1c5b54b846919c3fa28b843df28f5bfa320996d46de0e74c7a28bd0bef02aaaca14b1cec52baba SHA512 9b701c5c5a22b6aa94977a67bc40f3dc9df8337556952658a2a17ecaaa471cd7f7b5b8bf3a0088208087677555f0cbb8760c091b03b96ee70affe3e2b84cf6d5 diff --git a/dev-python/aiohttp/aiohttp-3.10.6_rc2.ebuild b/dev-python/aiohttp/aiohttp-3.10.6_rc2.ebuild new file mode 100644 index 000000000000..fe5aa190cb8a --- /dev/null +++ b/dev-python/aiohttp/aiohttp-3.10.6_rc2.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2024 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..13} pypy3 ) + +inherit distutils-r1 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 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="test-rust" + +RDEPEND=" + >=dev-python/aiodns-3.2.0[${PYTHON_USEDEP}] + >=dev-python/aiohappyeyeballs-2.3.0[${PYTHON_USEDEP}] + >=dev-python/aiosignal-1.1.2[${PYTHON_USEDEP}] + >=dev-python/attrs-17.3.0[${PYTHON_USEDEP}] + dev-python/brotlicffi[${PYTHON_USEDEP}] + >=dev-python/frozenlist-1.1.1[${PYTHON_USEDEP}] + >=dev-python/multidict-4.5.0[${PYTHON_USEDEP}] + >=dev-python/yarl-1.12.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + =dev-python/async-timeout-4.0[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + test? ( + dev-python/freezegun[${PYTHON_USEDEP}] + www-servers/gunicorn[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/re-assert[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/time-machine[${PYTHON_USEDEP}] + ' 'python3*') + test-rust? ( + dev-python/trustme[${PYTHON_USEDEP}] + ) + ) +" + +DOCS=( CHANGES.rst CONTRIBUTORS.txt README.rst ) + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + # increase the timeout a little + sed -e '/abs=/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 + sed -i -e 's:-Werror::' Makefile || die + + distutils-r1_src_prepare +} + +python_configure_all() { + # workaround missing files + mkdir 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 + # python_on_whales is not packaged + tests/autobahn/test_autobahn.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 + ) + + case ${EPYTHON} in + pypy3) + # upstream unconditionally blocks building C extensions + # on PyPy3 but the test suite needs an explicit switch, + # sigh + local -x AIOHTTP_NO_EXTENSIONS=1 + ;; + esac + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=pytest_mock,xdist.plugin + rm -rf aiohttp || die + epytest -m "not internal and not dev_mode" \ + -p rerunfailures --reruns=5 +} -- cgit v1.2.3