blob: 0460afa2950472c4647aaadd3de1f101ed723998 (
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.18.2
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=(fbc33d053326ca7558d22cc9fa821be7fd5223907b778e78c48f80800f30e0dd3ae1f4269a903a665cc07507daac187d04d00165d7bebdb4f42b6740f9d2a788)
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:
|