From 176a178b95fa7af09728657b92e4250342857140 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Sat, 13 Nov 2021 10:15:40 -0500 Subject: [PATCH] python3-quart: update to 0.16.0. --- srcpkgs/python3-quart/template | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/srcpkgs/python3-quart/template b/srcpkgs/python3-quart/template index 743b7e1c9cc2a1..273bf8d66af5fb 100644 --- a/srcpkgs/python3-quart/template +++ b/srcpkgs/python3-quart/template @@ -1,23 +1,30 @@ # Template file for 'python3-quart' pkgname=python3-quart -version=0.15.1 -revision=2 +version=0.16.0 +revision=1 wrksrc="${pkgname#*-}-${version}" -build_style=python3-module -hostmakedepends="python3-setuptools" +build_style=python3-pep517 +make_install_target="Quart-${version}-*-*-*.whl" +hostmakedepends="python3-poetry-core" depends="python3-aiofiles python3-hypercorn python3-click python3-toml python3-blinker python3-itsdangerous python3-Jinja2 python3-Werkzeug" -checkdepends="python3-pytest-asyncio python3-hypothesis python3-mock $depends" +checkdepends="python3-pytest-asyncio python3-hypothesis python3-mock unzip $depends" short_desc="Python asyncio ASGI web framework with Flask API" maintainer="Andrew J. Hesford " license="MIT" homepage="https://gitlab.com/pgjones/quart" changelog="https://gitlab.com/pgjones/quart/-/blob/master/CHANGELOG.rst" distfiles="${homepage}/-/archive/${version}/${pkgname#*-}-${version}.tar.gz" -checksum=d9fa92cfec967b8730ce75f90a454d0a687871960f5e334885e64bfae9d7cd3a +checksum=a526dbb39e266b30f873d73f7c7e394cf7819a4de1444b892488f4cdd0b7e162 -pre_check() { - sed -e '/addopts/d' -i setup.cfg +do_check() { + # Tests require dist-info on the package, which is only in the wheel. + # Pip can install the wheel in the build tree, but unzip is less evil. + mkdir -p test + unzip ${make_install_target} -d test + + vsed -e '/addopts/d' -i pyproject.toml + PYTHONPATH=test python3 -m pytest } post_install() {