diff options
Diffstat (limited to 'community/py3-flask/APKBUILD')
-rw-r--r-- | community/py3-flask/APKBUILD | 46 |
1 files changed, 33 insertions, 13 deletions
diff --git a/community/py3-flask/APKBUILD b/community/py3-flask/APKBUILD index 2bd9989044f..d7ac6635beb 100644 --- a/community/py3-flask/APKBUILD +++ b/community/py3-flask/APKBUILD @@ -1,16 +1,29 @@ -# Contributor: -# Maintainer: Drew DeVault <sir@cmpwn.com> +# Contributor: Steven Guikal <void@fluix.one> +# Maintainer: Steven Guikal <void@fluix.one> pkgname=py3-flask -_pkgname=Flask -pkgver=1.1.2 -pkgrel=2 +_pkgname=flask +pkgver=3.0.2 +pkgrel=1 pkgdesc="web development microframework" -url="http://flask.pocoo.org/" +url="https://flask.palletsprojects.com/" arch="noarch" license="MIT" -depends="python3 py3-click py3-itsdangerous py3-jinja2 py3-werkzeug" -makedepends="py3-setuptools" -checkdepends="py3-pytest" +depends=" + py3-blinker + py3-click + py3-itsdangerous + py3-jinja2 + py3-werkzeug + python3 + " +makedepends=" + py3-gpep517 + py3-flit-core + " +checkdepends=" + py3-pytest-xdist + " +subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" @@ -18,15 +31,22 @@ replaces="py-flask" # Backwards compatibility provides="py-flask=$pkgver-r$pkgrel" # Backwards compatibility build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - PYTHONPATH="$PWD/build/lib" py.test-3 + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 -m pytest -n auto } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" + python3 -m installer -d "$pkgdir" \ + .dist/*.whl } -sha512sums="9feb6a9a8f34fadbea508d465f73c24b1d81b3f66243804dc3904d198c2fd78e2e1bef94df6a4940a7eec6b9b54abea06557a87de8b27b0a9497d18b3e071384 Flask-1.1.2.tar.gz" +sha512sums=" +02f937dae7d654f6286eb9fcf2d68d83f3ef56dbc4d59a961ea1bd95d17fac7a5ace3f27ebb03ff0592f6a87361e59934ffda098714fc8a049a487d4c0bbc0ef flask-3.0.2.tar.gz +" |