mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 03:35:38 +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.
37 lines
1.2 KiB
Text
37 lines
1.2 KiB
Text
# Maintainer: Simon Rupf <simon@rupf.net>
|
|
pkgname=py3-cachelib
|
|
_pkgname=cachelib
|
|
pkgver=0.10.2
|
|
pkgrel=0
|
|
pkgdesc="Extract from werkzeug.cache"
|
|
url="https://cachelib.readthedocs.io/"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="python3"
|
|
makedepends="py3-gpep517 py3-installer py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest-xprocess py3-pytest py3-boto3"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
|
|
no-deprecation.patch
|
|
"
|
|
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 --deselect tests/test_dynamodb_cache.py
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer --destdir="$pkgdir" dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
0c622314d93b0370012e4ed2e4ce0c399a1dd12f9cf0e72f4b4f9c0aa9fe22ad6a2dec7ee7eb0ce692626926b525c0bfc58b4a2b003749683305eaa4b79296bf cachelib-0.10.2.tar.gz
|
|
f4c350aa41f148ee34bd56081dbdd90f39f29644ff85e33fc43cd521d07dad7e5d36e06b231315cbed0b9aab2a6cdb67bca7783847f5c002f1d1fcd8ee4580db no-deprecation.patch
|
|
"
|