Skip to content

Commit

Permalink
python3-aiohttp: update to 3.8.5.
Browse files Browse the repository at this point in the history
Switch to python3-pep517 build style
Requires python3-async-timeout>=4
Depends on python3-aiosignal
  • Loading branch information
ar-jan committed Oct 2, 2023
1 parent c7e222a commit cc04eca
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 37 deletions.
30 changes: 0 additions & 30 deletions srcpkgs/python3-aiohttp/patches/chardet-version.patch

This file was deleted.

33 changes: 26 additions & 7 deletions srcpkgs/python3-aiohttp/template
Original file line number Diff line number Diff line change
@@ -1,21 +1,40 @@
# Template file for 'python3-aiohttp'
pkgname=python3-aiohttp
version=3.7.4
revision=4
build_style=python3-module
hostmakedepends="python3-setuptools"
version=3.8.5
revision=1
build_style=python3-pep517
hostmakedepends="python3-setuptools python3-wheel"
makedepends="python3-devel http-parser-devel"
depends="python3-async-timeout python3-attrs python3-chardet python3-yarl
python3-typing_extensions python3-multidict"
depends="python3-aiosignal python3-async-timeout python3-attrs
python3-chardet python3-yarl python3-typing_extensions python3-multidict"
checkdepends="$depends python3-aiosignal python3-async_generator python3-Brotli
python3-charset-normalizer python3-freezegun python3-proxy.py python3-pytest
python3-pytest-cov python3-pytest-forked python3-pytest-mock
python3-pytest-timeout python3-pytest-xdist python3-re_assert"
short_desc="HTTP client/server for asyncio (PEP-3156)"
maintainer="Michael Aldridge <[email protected]>"
license="Apache-2.0"
homepage="https://aiohttp.readthedocs.io/"
distfiles="${PYPI_SITE}/a/aiohttp/aiohttp-${version}.tar.gz"
checksum=5d84ecc73141d0a0d61ece0742bb7ff5751b0657dab8405f899d3ceb104cc7de
checksum=b9552ec52cc147dbf1944ac7ac98af7602e51ea2dcd076ed194ca3c0d1c7d0bc

post_patch() {
# use system http-parser
vsed -i '/http_parser\.c/d' -i setup.py
vsed -i '/http_parser\.h/s/".*\//"/' -i aiohttp/_cparser.pxd
}

do_check() {
# Failing tests, cf. https://github.com/aio-libs/aiohttp/issues/7255
local skiptests
skiptests+=" test_no_warnings[aiohttp._helpers] or"
skiptests+=" test_no_warnings[aiohttp._http_parser] or"
skiptests+=" test_no_warnings[aiohttp._http_writer] or"
skiptests+=" test_no_warnings[aiohttp._websocket] or"
skiptests+=" test_no_warnings[aiohttp.worker] or"
skiptests+=" test_c_parser_loaded or"
skiptests+=" test_invalid_character[pyloop] or"
skiptests+=" test_unsupported_upgrade[pyloop]"

PYTHONPATH=$(cd build/lib* && pwd) pytest -k "not (${skiptests})"
}

0 comments on commit cc04eca

Please sign in to comment.