Simon Rupf b42bf4bd01 testing/py3-flask-sqlalchemy: upgrade to 3.0.3
> -   Show helpful errors when mistakenly using multiple ``SQLAlchemy`` instances for the
>     same app, or without calling ``init_app``. :pr:`1151`
> -   Fix issue with getting the engine associated with a model that uses polymorphic
>     table inheritance. :issue:`1155`

-- https://flask-sqlalchemy.palletsprojects.com/en/3.0.x/changes/#version-3-0-3

Also re-enabled checks and applying as contributor.
2023-02-01 19:31:13 +00:00

37 lines
1.1 KiB
Plaintext

# 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 --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
"