1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-18 08:45:22 +03:00
aports/testing/py3-flask-sqlalchemy/APKBUILD
psykose b71032c356 */*: invoke -m venv with --without-pip
we never use pip in the venv manually made for tests-
this might break 1-2 things unexpectedly, but

- those should be looked at anyway
- this has a severe speedup- even on a desktop machine with nvme, this
  makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small
  optimisation.
2023-02-09 22:55:20 +01:00

36 lines
1.1 KiB
Text

# Contributor: Simon Rupf <simon@rupf.net>
# Maintainer: Philipp Glaum <p@pglaum.de>
pkgname=py3-flask-sqlalchemy
_pkgname=Flask-SQLAlchemy
pkgver=3.0.3
pkgrel=0
pkgdesc="Adds SQLAlchemy support to your Flask application."
url="https://pypi.org/project/Flask-SQLAlchemy/"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-flask py3-greenlet py3-sqlalchemy"
makedepends="py3-gpep517 py3-installer py3-pdm-backend py3-setuptools py3-wheel"
checkdepends="py3-pytest py3-mock"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$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="
0a49780048491bbef7384d895a34ea2732f9d6702fb40b07987eb8d0ceb73aae7988539febaeafcf050b7dc67f1297301497c84c90d139b4bf2874201186fcef Flask-SQLAlchemy-3.0.3.tar.gz
"