From f4f5540a6471a096443be56bf0a56c83d01fb345 Mon Sep 17 00:00:00 2001 From: knuxify Date: Tue, 22 Jul 2025 22:45:18 +0200 Subject: [PATCH] testing/py3-quart: new aport https://quart.palletsprojects.com/en/latest/ Python ASGI web framework with the same API as Flask --- testing/py3-quart/APKBUILD | 49 +++++++++++++++++++++++++++ testing/py3-quart/no-pytest-cov.patch | 26 ++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 testing/py3-quart/APKBUILD create mode 100644 testing/py3-quart/no-pytest-cov.patch diff --git a/testing/py3-quart/APKBUILD b/testing/py3-quart/APKBUILD new file mode 100644 index 00000000000..11c7916e3c5 --- /dev/null +++ b/testing/py3-quart/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: knuxify +# Maintainer: knuxify +maintainer="knuxify " +pkgname=py3-quart +pkgver=0.20.0 +pkgrel=0 +pkgdesc="Python ASGI web framework with the same API as Flask" +url="https://quart.palletsprojects.com/en/latest/" +arch="noarch" +license="MIT" +depends=" + py3-aiofiles + py3-blinker + py3-click + py3-flask + py3-hypercorn + py3-itsdangerous + py3-jinja2 + py3-markupsafe + py3-werkzeug + " +makedepends="py3-flit-core py3-gpep517" +checkdepends="py3-dotenv py3-hypothesis py3-pytest py3-pytest-asyncio py3-pytest-sugar" +subpackages="$pkgname-pyc" +source="https://github.com/pallets/quart/archive/$pkgver/py3-quart-$pkgver.tar.gz + no-pytest-cov.patch" +builddir="$srcdir/quart-$pkgver" + +build() { + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 +} + +check() { + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 -m pytest +} + +package() { + python3 -m installer -d "$pkgdir" \ + .dist/*.whl +} + +sha512sums=" +22d99aae1f30ebc50326ed0c589938386d7b6c11398925b1cf326d2efa2d79ca40ad21939acb191b8a804ed78276f213375e20f31b66c7bb63ff28e91047017c py3-quart-0.20.0.tar.gz +3b41469034eabc50c72429e1c231e5494a64eccfb3c40689235dfe8053696b7505dc1855392633d3aa382681558f774a06054694b91de5ace1283a84f73d9e14 no-pytest-cov.patch +" diff --git a/testing/py3-quart/no-pytest-cov.patch b/testing/py3-quart/no-pytest-cov.patch new file mode 100644 index 00000000000..cdbbd131c4a --- /dev/null +++ b/testing/py3-quart/no-pytest-cov.patch @@ -0,0 +1,26 @@ +From aa38d4c8bd20494af6f69c56210c4fd0fd9f0acd Mon Sep 17 00:00:00 2001 +From: knuxify +Date: Wed, 23 Jul 2025 07:40:33 +0200 +Subject: [PATCH] drop --no-cov-on-fail from pytest options + +Allows us to avoid a checkdepend on py3-pytest-cov. +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index b15e778..220aa7b 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -54,7 +54,7 @@ build-backend = "flit_core.buildapi" + name = "quart" + + [tool.pytest.ini_options] +-addopts = "--no-cov-on-fail --showlocals --strict-markers" ++addopts = "--showlocals --strict-markers" + asyncio_default_fixture_loop_scope = "session" + asyncio_mode = "auto" + testpaths = ["tests"] +-- +2.50.0 +