blob: 15b0dbe4f81ed73215b47c57fd50d1a3bde2380e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Arturo Penen <apenen at gmail dot com>
_pkgname=google-cloud-container
pkgname=python-google-cloud-container
pkgver=2.50.0
pkgrel=1
pkgdesc='Google Cloud Container API client library'
arch=(any)
url=https://github.com/googleapis/google-cloud-python
license=(Apache)
depends=(
python-google-api-core
python-google-auth
python-google-cloud-core
python-google-resumable-media
python-requests
)
optdepends=(python-protobuf)
makedepends=(
python-build
python-installer
python-recommonmark
python-setuptools
python-sphinx
python-wheel
)
# checkdepends=(
# python-google-cloud-testutils
# python-mock
# python-pytest-runner
#)
source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/${_pkgname}-v${pkgver}.tar.gz)
sha256sums=(f71b9879fcbbd1faab87b31ffa65f33c9f9a08967b0b92428d7b054dd1417ceb)
build() {
cd google-cloud-python-${_pkgname}-v${pkgver}/packages/google-cloud-container/
python \
-m build \
--wheel \
--no-isolation
PYTHONPATH="${PWD}" sphinx-build -b man docs/ docs/build
}
package() {
cd google-cloud-python-${_pkgname}-v${pkgver}/packages/google-cloud-container/
python \
-m installer \
--destdir="${pkgdir}" \
dist/*.whl
install -Dm644 -t "${pkgdir}"/usr/share/doc/${pkgname} SECURITY.md
install -Dm644 -t "${pkgdir}"/usr/share/man/man1 docs/build/google-cloud-container.1
}
# vim: ts=2 sw=2 et:
|