1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 03:35:38 +03:00
aports/community/py3-cachy/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

41 lines
1.4 KiB
Text

# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-cachy
_realname=cachy
pkgver=0.3.0
pkgrel=7
pkgdesc="Simple yet effective caching library"
url="https://github.com/sdispater/cachy"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-gpep517 py3-installer py3-poetry-core py3-setuptools py3-wheel"
checkdepends="py3-pytest py3-flexmock py3-fakeredis"
source="https://files.pythonhosted.org/packages/source/${_realname:0:1}/$_realname/$_realname-$pkgver.tar.gz
No-need-to-teardown-flexmock.patch"
builddir="$srcdir/$_realname-$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/stores/test_memcached_store.py::RedisStoreTestCase
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/tests
}
sha512sums="
0b69bd45ce81fc57710b44011965b8c4a313808f7c464a409b839d9206158f91b1e39a760d08d62bb5eb15e455ba9b89683f0eb42d2bfcc2e99b0b8f267e3ead cachy-0.3.0.tar.gz
f6bfa0c013e7f2ed1b386ac5f9d5687a34ffaf7c98bddc2bae80e4c0b008b01511d8658e1244aa93484ad008b671a590c064c88005f06fcc23067b8ea4dbd176 No-need-to-teardown-flexmock.patch
"