dev-python/aiohttp: Bump to 3.14.2

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-07-21 07:45:14 +02:00
parent 795532b041
commit 33a3efcb9f
2 changed files with 158 additions and 0 deletions

View File

@@ -2,3 +2,5 @@ DIST aiohttp-3.13.5.tar.gz 7858271 BLAKE2B 33b8f7f977a429fcd14401042f0be88c4cf68
DIST aiohttp-3.13.5.tar.gz.provenance 9326 BLAKE2B 0ed4219dc79a8b48cbc69f1a926a75210069f8382d61e217aaae6c8d51871c03c03336c812a9c7ecff0972ab070d6f2954482bced18edfaa71cf06cf8ef019bd SHA512 801915c3639db98f363a14e0e2e9e7b3e6e76d8e7988f43749580e4fa04404fe6b72f50370a07f37a922541d111361106d8fd8c4ffa4be326b130148a407c0e0
DIST aiohttp-3.14.1.tar.gz 7955794 BLAKE2B b8b66efa9410871de7cce19427b53329460740c32bc46595933f9af21d6807493f6b5549217d993227f50b92850c5ee1a8a4b652b740e8770889ad0991789716 SHA512 8cba5eff6e62f29fc2f600b30c840febc2a6b947134d6e194a2dcd873972ada2d48cbdaa01216b53cc3127b973b0f30ef1ac69713081b5e1ed2efbfd654fdebc
DIST aiohttp-3.14.1.tar.gz.provenance 9456 BLAKE2B 9cccbaff0ee8d38a6a68704890c8af1d48673b434d52d4fed9fe4045dba84486e764016b1a55d648d81bc266d20dc031cc47798b0a7aa87e6b5b44a22a1b3502 SHA512 267af513e2492462a2da7ac48fb71a47d84efc5129e4b84c79dc86b20f823232e1c199eeb3e278cee9469af9d20a344a920e8c63c7087a2a87b8bfdd0e5ac61e
DIST aiohttp-3.14.2.tar.gz 7969860 BLAKE2B bdf5b66795e4fb3efcf5da209f1243bc105b605c7b867bffe9a220f2e84b4239e0f4eea810a4c89f25368daf18230b087b44e1bc0cb3b299a75e30f8e0f1ba39 SHA512 89ae01207a885650bff9c5538de5d56c8f9034ff74f1aa2fb8a94aa792549759594b86c0ddcfdbd0b7b8303abf10af9ce67c7ab030e8486eaac7e710f50bde9a
DIST aiohttp-3.14.2.tar.gz.provenance 9636 BLAKE2B 8efe41aae1fce51ebc3949881950ad38fff2898777e742cb2fd613134bfbf04ce5c6ca6a663556d438fa74b1df30adc0b7dd57e9065159d203ed66a9173dd71b SHA512 134fcaac002e5faf42826f199ef49faf70bfa47348c91e0280d4ecf5512c95981370efeb93a69423f75660581f6f288b8bd503f9c06ccf5aca391218a6dc3b57

View File

@@ -0,0 +1,156 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYPI_VERIFY_REPO=https://github.com/aio-libs/aiohttp
PYTHON_COMPAT=( python3_{12..15} )
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"
DEPEND="
native-extensions? (
net-libs/llhttp:=
)
"
RDEPEND="
${DEPEND}
>=dev-python/aiodns-3.3.0[${PYTHON_USEDEP}]
>=dev-python/aiohappyeyeballs-2.5.0[${PYTHON_USEDEP}]
>=dev-python/aiosignal-1.4.0[${PYTHON_USEDEP}]
>=dev-python/attrs-17.3.0[${PYTHON_USEDEP}]
>=dev-python/brotlicffi-1.2[${PYTHON_USEDEP}]
>=dev-python/frozenlist-1.1.1[${PYTHON_USEDEP}]
>=dev-python/multidict-4.5.0[${PYTHON_USEDEP}]
>=dev-python/propcache-0.2.0[${PYTHON_USEDEP}]
>=dev-python/yarl-1.17.0[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
dev-python/backports-zstd[${PYTHON_USEDEP}]
' 3.12 3.13)
$(python_gen_cond_dep '
>=dev-python/typing-extensions-4.4[${PYTHON_USEDEP}]
' 3.12)
"
BDEPEND="
>=dev-python/multidict-4.5.0[${PYTHON_USEDEP}]
dev-python/pkgconfig[${PYTHON_USEDEP}]
native-extensions? (
>=dev-python/cython-3.1.1[${PYTHON_USEDEP}]
dev-python/pkgconfig[${PYTHON_USEDEP}]
)
test? (
dev-python/freezegun[${PYTHON_USEDEP}]
dev-python/isal[${PYTHON_USEDEP}]
dev-python/re-assert[${PYTHON_USEDEP}]
dev-python/zlib-ng[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
dev-python/blockbuster[${PYTHON_USEDEP}]
dev-python/time-machine[${PYTHON_USEDEP}]
' 3.{12..14})
www-servers/gunicorn[${PYTHON_USEDEP}]
test-rust? (
dev-python/trustme[${PYTHON_USEDEP}]
)
)
"
DOCS=( CHANGES.rst CONTRIBUTORS.txt README.rst )
EPYTEST_PLUGIN_LOAD_VIA_ENV=1
EPYTEST_PLUGINS=( pytest-{mock,xdist} )
EPYTEST_RERUNS=5
: ${EPYTEST_TIMEOUT:=180}
EPYTEST_XDIST=1
distutils_enable_tests pytest
src_prepare() {
distutils-r1_src_prepare
# increase the timeout a little
sed -e '/abs=/s/0.001/0.01/' -i tests/test_helpers.py || die
sed -i -e 's:-Werror::' Makefile || die
# remove vendored llhttp
rm -r vendor || die
}
python_configure() {
# check for .install-cython, so that we do this only once
if [[ ! -f .install-cython && ${EPYTHON} != pypy3 ]] &&
use native-extensions
then
# force rehashing first
emake requirements/.hash/cython.txt.hash
> .update-pip || die
> .install-cython || die
emake cythonize
fi
}
python_compile() {
local -x AIOHTTP_USE_SYSTEM_DEPS=1
# implicitly disabled for pypy3
if [[ ${EPYTHON} == pypy3* ]] || ! 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
# benchmarks
tests/test_benchmarks_client.py
tests/test_benchmarks_client_request.py
tests/test_benchmarks_client_ws.py
tests/test_benchmarks_cookiejar.py
tests/test_benchmarks_http_websocket.py
tests/test_benchmarks_http_writer.py
tests/test_benchmarks_web_fileresponse.py
tests/test_benchmarks_web_middleware.py
tests/test_benchmarks_web_response.py
tests/test_benchmarks_web_urldispatcher.py
)
local EPYTEST_DESELECT=(
# Internet
tests/test_client_session.py::test_client_session_timeout_zero
tests/test_connector.py::test_tcp_connector_ssl_shutdown_timeout_nonzero_passed
tests/test_connector.py::test_tcp_connector_ssl_shutdown_timeout_passed_to_create_connection
tests/test_connector.py::test_tcp_connector_ssl_shutdown_timeout_zero_not_passed
tests/test_client_functional.py::test_invalid_idna
# broken by irrelevant deprecation warnings
tests/test_circular_imports.py::test_no_warnings
# https://github.com/aio-libs/aiohttp/issues/11400#issuecomment-4168569526
# https://github.com/python/cpython/issues/145599
# https://github.com/python/cpython/pull/145600
tests/test_cookie_helpers.py::test_parse_set_cookie_headers_uses_unquote_with_octal
# some warnings
tests/test_multipart.py::TestPartReader::test_read_decode_compressed_exceeds_max_size
)
# 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
rm -rf aiohttp || die
epytest -m "not internal and not dev_mode" -o filterwarnings=
}