Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / python-aiohttp
Commits: 6ce57939 by Antonio Rojas at 2023-08-30T11:14:18+02:00 upgpkg: 3.8.5-1: Update to 3.8.5 - - - - - 2 changed files: - PKGBUILD - + yarl-1.9.patch Changes: ===================================== PKGBUILD ===================================== @@ -4,8 +4,8 @@ _pkgname=aiohttp pkgname=python-aiohttp -_gitcommit=33953f110e97eecc707e1402daa8d543f38a189b -pkgver=3.8.4 +_gitcommit=9c13a52c21c23dfdb49ed89418d28a5b116d0681 +pkgver=3.8.5 pkgrel=1 pkgdesc='HTTP client/server for asyncio' url='https://aiohttp.readthedocs.io' @@ -26,9 +26,11 @@ optdepends=('gunicorn: to deploy using Gunicorn' 'python-cchardet: for faster encoding detection' 'python-brotli: for Brotli transfer-encodings support') source=(${pkgname}::"git+https://github.com/aio-libs/aiohttp#commit=${_gitcommit}" - git+https://github.com/nodejs/llhttp.git) + git+https://github.com/nodejs/llhttp.git + yarl-1.9.patch) sha512sums=('SKIP' - 'SKIP') + 'SKIP' + 'd82603b24d2525e801878e807cef7bc3f69c3bb263581e1f0078e6794e39f07ad714254fc7257a6ca5f1e165977ada3b1116e00478b7206b329d9e277b3c1829') pkgver() { cd ${pkgname} @@ -48,6 +50,9 @@ prepare() { tests/test_circular_imports.py sed -e 's|charset-normalizer >=2.0, < 3.0|charset-normalizer >=2.0, < 4.0|' -i setup.cfg + + # yarl 1.9 compatibility + patch -p1 -i ../yarl-1.9.patch } build() { ===================================== yarl-1.9.patch ===================================== @@ -0,0 +1,36 @@ +From 2be9318dc95a26940e9095673ebcbbf77dfd087b Mon Sep 17 00:00:00 2001 +From: danigm <daniel.gar...@suse.com> +Date: Tue, 2 May 2023 21:28:50 +0200 +Subject: [PATCH] Update update_query calls to work with latest yarl (#7260) + +This patch pass "{}" when params is "None" to the url.update_query to +avoid setting the url params to None. + +Related to this change in yarl: + +https://github.com/aio-libs/yarl/commit/dd86b3435093b9ca251ecb7831346b92a3f16b25 + +Fix https://github.com/aio-libs/aiohttp/issues/7259 + +--------- + +Co-authored-by: Sam Bull <aa6...@sambull.org> +--- a/aiohttp/client.py ++++ b/aiohttp/client.py +@@ -374,6 +374,7 @@ async def _request( + redirects = 0 + history = [] + version = self._version ++ params = params or {} + + # Merge with default headers and transform to CIMultiDict + headers = self._prepare_headers(headers) +@@ -613,7 +614,7 @@ async def _request( + headers.pop(hdrs.AUTHORIZATION, None) + + url = parsed_url +- params = None ++ params = {} + resp.release() + continue + View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-aiohttp/-/commit/6ce5793995f3faa2f763306006eb07703ab0ec06 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-aiohttp/-/commit/6ce5793995f3faa2f763306006eb07703ab0ec06 You're receiving this email because of your account on gitlab.archlinux.org.