mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
testing/py3-quart: new aport
https://quart.palletsprojects.com/en/latest/ Python ASGI web framework with the same API as Flask
This commit is contained in:
parent
a7761278ba
commit
f4f5540a64
49
testing/py3-quart/APKBUILD
Normal file
49
testing/py3-quart/APKBUILD
Normal file
@ -0,0 +1,49 @@
|
||||
# Contributor: knuxify <knuxify@gmail.com>
|
||||
# Maintainer: knuxify <knuxify@gmail.com>
|
||||
maintainer="knuxify <knuxify@gmail.com>"
|
||||
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
|
||||
"
|
26
testing/py3-quart/no-pytest-cov.patch
Normal file
26
testing/py3-quart/no-pytest-cov.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From aa38d4c8bd20494af6f69c56210c4fd0fd9f0acd Mon Sep 17 00:00:00 2001
|
||||
From: knuxify <knuxify@gmail.com>
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user