mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-11-01 00:42:03 +01: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.
46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
|
|
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
|
|
pkgname=py3-googleapis-common-protos
|
|
pkgver=1.58.0
|
|
pkgrel=0
|
|
pkgdesc="Common protobufs used in Google APIs for Python"
|
|
url="https://pypi.org/project/googleapis-common-protos/"
|
|
arch="noarch !ppc64le" # limited by py3-grpcio
|
|
license="Apache-2.0"
|
|
depends="
|
|
python3
|
|
py3-protobuf
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="
|
|
py3-grpcio
|
|
py3-pytest
|
|
"
|
|
source="https://files.pythonhosted.org/packages/source/g/googleapis-common-protos/googleapis-common-protos-$pkgver.tar.gz"
|
|
builddir="$srcdir/googleapis-common-protos-$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
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
3e057e8dce7898ebf5c63ea1ded4f336ad5235ee6e7595739efd4c005b34f63d88481242f2d5a38b8d531d79d1957c2b79918bf61eb3ebc52227ec20b204cc82 googleapis-common-protos-1.58.0.tar.gz
|
|
"
|