aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCeleste <20312-Celeste@users.gitlab.alpinelinux.org>2023-10-10 06:14:06 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2023-10-12 14:58:10 +0000
commit6a4cdb1d73cded77542dc298eb092eba9b8d0a42 (patch)
tree8569c59a2dbb27e403f9225362fae9bb16126147
parent10d790af9a2b3e2c28d1cac78bd543b86f80e5fa (diff)
community/py3-aiohttp: upgrade to 3.8.6 & use gpep517 packaging
-rw-r--r--community/py3-aiohttp/APKBUILD37
1 files changed, 24 insertions, 13 deletions
diff --git a/community/py3-aiohttp/APKBUILD b/community/py3-aiohttp/APKBUILD
index fa74895cbd1..1eb2cee7d8f 100644
--- a/community/py3-aiohttp/APKBUILD
+++ b/community/py3-aiohttp/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-aiohttp
_pkgname=aiohttp
-pkgver=3.8.5
+pkgver=3.8.6
pkgrel=0
pkgdesc="HTTP client/server for asyncio"
url="https://pypi.org/project/aiohttp"
@@ -20,8 +20,20 @@ depends="
py3-yarl
python3
"
-makedepends="python3-dev py3-setuptools"
-checkdepends="py3-pytest py3-pytest-cov py3-pytest-mock py3-async_generator py3-freezegun"
+makedepends="
+ python3-dev
+ py3-gpep517
+ py3-setuptools
+ py3-wheel
+ "
+checkdepends="
+ py3-pytest
+ py3-pytest-cov
+ py3-pytest-mock
+ py3-async_generator
+ py3-freezegun
+ py3-re-assert
+ "
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
@@ -36,28 +48,27 @@ esac
prepare() {
default_prepare
- # need testing/py3-re-assert
- rm -f tests/test_client_session.py \
- tests/test_streams.py \
- tests/test_urldispatch.py \
- tests/test_web_response.py \
- tests/test_proxy_functional.py
+ # requires https://github.com/abhinavsingh/proxy.py
+ rm -f tests/test_proxy_functional.py
}
build() {
- python3 setup.py build
+ gpep517 build-wheel \
+ --wheel-dir .dist \
+ --output-fd 3 3>&1 >&2
}
check() {
PYTHONPATH="$(echo build/lib.*)" \
pytest -W ignore::DeprecationWarning -v \
- -k 'not test_no_warnings and not test_set_loop_default_loop and not test_default_loop'
+ -k 'not test_no_warnings and not test_request_tracing_url_params'
}
package() {
- python3 setup.py install --root="$pkgdir" --skip-build
+ python3 -m installer -d "$pkgdir" \
+ .dist/*.whl
}
sha512sums="
-613dfe836c511832c68eadbd0a76882ec362ff956937aa913fc7567b7e3e1ac2085a70a1eca42fb016f38c076a131b506b22f26879ad06b077cb4a85e9dcd8db py3-aiohttp-3.8.5.tar.gz
+43f1dd6670d90aefee7f0f30411b13c643ea684815b493cc4437e5f1981f4fdf4b718a40543d7c3c8c70d8b27470b8f3bf1609e46146362e0490ce0990a057f5 py3-aiohttp-3.8.6.tar.gz
"