blob: 6155b7f2ceda6e3e59210d2b023067a067fba61e (
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
56
57
58
59
60
61
62
|
# Maintainer: Brody <archfan at brodix dot de>
_pkgname=python-storage
pkgname=python-google-cloud-storage
pkgver=2.14.0
pkgrel=1
pkgdesc='Google Cloud Storage API client library'
arch=(any)
url=https://github.com/googleapis/python-storage
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
#)
changelog=CHANGELOG.md
source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz)
b2sums=(f7d3916b766abb050a90f0fb9634fa6bee1efccac65b31b70015a7a4d7e342cbe4b9b57867d3b709134b61dac5b8524f5587a22f5ca86d7116bce5f82ae17bb9)
build() {
cd ${_pkgname}-${pkgver}
python \
-m build \
--wheel \
--no-isolation
PYTHONPATH="${PWD}" sphinx-build -b man docs/ docs/build
}
## tests require set environment variables
# check() {
# cd ${_pkgname}-${pkgver}
# python setup.py pytest
# }
package() {
cd ${_pkgname}-${pkgver}
python \
-m installer \
--destdir="${pkgdir}" \
dist/*.whl
install -Dm644 SECURITY.md -t "${pkgdir}"/usr/share/doc/${pkgname}/
install -Dm644 docs/build/google-cloud-storage.1 -t "${pkgdir}"/usr/share/man/man1/
}
# vim: ts=2 sw=2 et:
|