blob: 6eb7a82144decb056328887de96d6e75912c3d47 (
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.19.0
pkgrel=1
pkgdesc='Google Cloud Storage API client library'
arch=(any)
url=https://github.com/googleapis/python-storage
license=(Apache-2.0)
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=('8366b4417215eea83f0456a44f6b3dcb03c139d3c67d1f97e4cd77f83fe1e9dd9af1be23e979ba41f43b1fab916fa7fc6d0cf051082fc5ecf0d54e4c4009ac02')
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 -t "${pkgdir}"/usr/share/doc/${pkgname} SECURITY.md
install -Dm644 -t "${pkgdir}"/usr/share/man/man1 docs/build/google-cloud-storage.1
}
# vim: ts=2 sw=2 et:
|