1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 18:25:41 +03:00
aports/community/py3-google-api-core/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

50 lines
1.2 KiB
Text

# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=py3-google-api-core
pkgver=2.11.0
pkgrel=0
pkgdesc="Google API client core library"
url="https://github.com/googleapis/python-api-core"
arch="noarch !ppc64le" # limited by py3-grpcio
license="Apache-2.0"
depends="
py3-google-auth
py3-googleapis-common-protos
py3-protobuf
py3-requests
python3
"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="
py3-grpcio
py3-mock
py3-pytest
"
source="https://files.pythonhosted.org/packages/source/g/google-api-core/google-api-core-$pkgver.tar.gz"
builddir="$srcdir/google-api-core-$pkgver"
options="!check" # missing some "proto" dep
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="
97c8cb1279d355f19616be51db57e37a35befdd98ba52b30ec874ed2f7a4531cd0f495cd84e806e1583d634f986ff12ee87bca42f2b13e5e2c4f911c8ddd085f google-api-core-2.11.0.tar.gz
"