commit:     446d6882d657b0485e7532cfb1fda403c35491b0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 11 02:50:18 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Oct 11 03:05:53 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=446d6882

dev-python/aiohttp: Bump to 3.10.10

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

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

diff --git a/dev-python/aiohttp/Manifest b/dev-python/aiohttp/Manifest
index cfc9b8815c04..818572e6336d 100644
--- a/dev-python/aiohttp/Manifest
+++ b/dev-python/aiohttp/Manifest
@@ -1,3 +1,4 @@
+DIST aiohttp-3.10.10.tar.gz 7542993 BLAKE2B 
edc9808937892e2915b591a3d5b9e2be8401a67e6421ada8c49e27cfa1ee67283465d17e3c3a77f7579d4ed45df39884a2f9e336429ef7d64adf351ce7507a85
 SHA512 
c6928d989c110c323347b6f5b0a90c42e17924b4121455a240f5a15d87f939580640ba0f8d576f8254e484e5b631ec4562a2fb4e6c86402924b1892a6d72aff8
 DIST aiohttp-3.10.5.tar.gz 7524360 BLAKE2B 
57ca70d1a075ae7f9ba9b86a19be52e05e88518e28baefb16e852ce83707bfbad9cb06af08a2cea3371349649e85ab6dfb3426ee2759a4e84456041373575a8b
 SHA512 
bb932d24b3ce332d8a232ef3bf1fbe9b0a7df9986ad5e81d5f41bc31a81204653e5250c4f0ee77a9eeb53d404bd907b12977d31caae54c00ef0146350629e750
 DIST aiohttp-3.10.6.tar.gz 7538429 BLAKE2B 
55df48ae6321aa9d18ecf02ea16a34a328ad36ec87b0af77291c89684cd8de1fe35617187a700229c056f062ea50e8bd2249c2adb4e39a0899cab6fcd5521ac4
 SHA512 
9f5a989db03a1c9ae7a67c2888259466a4e9d3926f6e7bd8c31bb7981b7378dd8712a839e9c746e3502cbcdaef03b5c9dfe5fd65d0fde0af938bfbf4c7341327
 DIST aiohttp-3.10.8.tar.gz 7540022 BLAKE2B 
8407815a0f65035032c9c59174642784a9ad5845d6655c32f29369d3a7ffdd63d52310ec61ed3a106122a4aeb22ed0db5264a353b7e483bb63021cdd9526b5b6
 SHA512 
f19a58e698908faf164592037d57f1d133e064616b5552df26639a9a7248e90a960cb1b070dbbb90c058579cbdcc4edb72b2846bd20ab2867b4b0c670ddd177f

diff --git a/dev-python/aiohttp/aiohttp-3.10.10.ebuild 
b/dev-python/aiohttp/aiohttp-3.10.10.ebuild
new file mode 100644
index 000000000000..8e3148eba2f4
--- /dev/null
+++ b/dev-python/aiohttp/aiohttp-3.10.10.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