mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 10:15:12 +03:00
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.
36 lines
1 KiB
Text
36 lines
1 KiB
Text
# Maintainer: Simon Rupf <simon@rupf.net>
|
|
pkgname=py3-flask-caching
|
|
_pkgname=Flask-Caching
|
|
pkgver=2.0.2
|
|
pkgrel=0
|
|
pkgdesc="Flask caching support"
|
|
url="https://flask-caching.readthedocs.io/"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="python3 py3-cachelib py3-flask"
|
|
makedepends="py3-gpep517 py3-installer py3-setuptools py3-wheel"
|
|
checkdepends="py3-asgiref py3-redis py3-pytest"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
options="!check" # depends on nonfree redis features
|
|
|
|
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="
|
|
06b97cfa38f3b45adc1347c80329b39675f8441337f3dfd717f6e0ec7b6d8062be92c55424206bc6e25b637e350fb47e34f7b4ef800c420824eb1c7fda3b0425 Flask-Caching-2.0.2.tar.gz
|
|
"
|