-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to python3-pep517 build style Requires python3-async-timeout>=4 Depends on python3-aiosignal
- Loading branch information
Showing
2 changed files
with
26 additions
and
37 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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})" | ||
} |