commit:     53a05cab545260ea58c5e3347f0023cdde2dc369
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  5 04:39:13 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Oct  5 04:58:16 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53a05cab

dev-python/aiohttp: Bump to 3.10.9

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/aiohttp/Manifest              |   1 +
 dev-python/aiohttp/aiohttp-3.10.9.ebuild | 123 +++++++++++++++++++++++++++++++
 2 files changed, 124 insertions(+)

diff --git a/dev-python/aiohttp/Manifest b/dev-python/aiohttp/Manifest
index 6222b3e8840a..92d2445aa0d3 100644
--- a/dev-python/aiohttp/Manifest
+++ b/dev-python/aiohttp/Manifest
@@ -3,4 +3,5 @@ DIST aiohttp-3.10.6.tar.gz 7538429 BLAKE2B 
55df48ae6321aa9d18ecf02ea16a34a328ad3
 DIST aiohttp-3.10.6rc2.tar.gz 7538723 BLAKE2B 
3de1cb0bfa9fea7ec8bcdab5a7850de700cb73b7a066ab269743e2bdbf84066e4555515dc81aea7c84be10ed9fc9487610577b44db164e49e61f19155c4dda35
 SHA512 
311f9ba7cafc7f1211c5c1859e235e0fd6941c32c77bfd0b74472dcf4b599b145fcc9e8496cb00300ae45c994d7b53082f39bc42a2a1cec304b92f9ce8109822
 DIST aiohttp-3.10.7.tar.gz 7538967 BLAKE2B 
c022b01ec3b2bb6549b00c43231692b643be9cda4af3c82748f55c813f12a0f16963c086fa99746e0f9bd8f95f5c1570b647ab0ca9f30aed501b563a6de773f6
 SHA512 
bfef47dfe14a7cc23f2962abfede36105b5061d3c537b4309b09d83ced545ff9f2e0a2f3713cac30ac5ce31ca951dbc6d1beafa571254a0a84b1f1f8d6ed6831
 DIST aiohttp-3.10.8.tar.gz 7540022 BLAKE2B 
8407815a0f65035032c9c59174642784a9ad5845d6655c32f29369d3a7ffdd63d52310ec61ed3a106122a4aeb22ed0db5264a353b7e483bb63021cdd9526b5b6
 SHA512 
f19a58e698908faf164592037d57f1d133e064616b5552df26639a9a7248e90a960cb1b070dbbb90c058579cbdcc4edb72b2846bd20ab2867b4b0c670ddd177f
+DIST aiohttp-3.10.9.tar.gz 7541983 BLAKE2B 
3bcfcd09c537fbd2a976f95b5c8387280ec0256bbc231b2bc5a07a1524e6926bfdebd182b1365d950b5a1465f44c4db004a645af7490c57cd4637978595fa6d4
 SHA512 
0b52ba3ff2c78113117f56818ab177791f2764b2e5ce6531ce5b0481ab9d22b4fe621d70c1c2067eab8cfdd423a2cf0fdaefd8b13231aecf0491326bdf12d1a0
 DIST aiohttp-3.9.5.tar.gz 7504841 BLAKE2B 
f051ee88d45952219f72d542f1c6d0cc33c699c6c5fb5dbe3bc054ee4d0e03121b219c8c8524fd1236a8b878329b0997b8afe07d6c66074102d4a2052a8738ff
 SHA512 
da11468a2f131275593395b052700a99cf79055a32d48327dca0f58547ad30add8cd0a375dbd831e2f06fe7a739183251e4ad69c16f3d141799bbed45a8a5dc4

diff --git a/dev-python/aiohttp/aiohttp-3.10.9.ebuild 
b/dev-python/aiohttp/aiohttp-3.10.9.ebuild
new file mode 100644
index 000000000000..8e3148eba2f4
--- /dev/null
+++ b/dev-python/aiohttp/aiohttp-3.10.9.ebuild
@@ -0,0 +1,123 @@
+# 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="+native-extensions 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-5[${PYTHON_USEDEP}]
+               >=dev-python/async-timeout-4.0[${PYTHON_USEDEP}]
+       ' 3.10)
+"
+BDEPEND="
+       native-extensions? (
+               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() {
+       if [[ ! -d tools && ${EPYTHON} != pypy3 ]] && use native-extensions
+       then
+               # 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
+       fi
+}
+
+python_compile() {
+       # implicitly disabled for pypy3
+       if ! use native-extensions; then
+               local -x AIOHTTP_NO_EXTENSIONS=1
+       fi
+
+       distutils-r1_python_compile
+}
+
+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
+       )
+
+       # upstream unconditionally blocks building C extensions
+       # on PyPy3 but the test suite needs an explicit switch
+       if [[ ${EPYTHON} == pypy3 ]] || ! use native-extensions; then
+               local -x AIOHTTP_NO_EXTENSIONS=1
+       fi
+
+       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
+}

Reply via email to