blob: 2cb10822b2b82feb9f5b923e3d2fb09dfe81beef (
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: Matteo Piccinini (loacker) <matteo.piccinini@gmail.com>
# Contributor: BigfootACA <bigfoot@classfun.cn>
pkgname=python-etcd3gw
pkgver=2.4.2
pkgrel=1
pkgdesc="An etcd3 grpc-gateway v3 API Python client"
arch=(any)
url="https://opendev.org/openstack/etcd3gw"
license=('Apache-2.0')
depends=('python'
'python-pbr'
'python-requests'
'python-futurist'
'python-testtools'
'python-oslotest'
'python-urllib3')
makedepends=('python-build'
'python-installer'
'python-setuptools'
'python-wheel'
'tar')
checkdepends=('python-hacking'
'python-coverage'
'python-subunit'
'python-testrepository'
'python-testscenarios'
'python-pifpaf'
'python-nose'
'python-pytest')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
b2sums=('f608190a952b0485f96a0508eed2ae735365453aadabaae190822bb2dc4b2992d42fe99c9707d5d42d6859eb105376c5f11f04fe69741a4e267d46733972cbb9')
prepare() {
tar zxvf "$pkgname-$pkgver.tar.gz" --strip-components=1 --one-top-level
}
build(){
cd "$pkgname-$pkgver"
PBR_VERSION=$pkgver python -m build --wheel --no-isolation
}
check(){
cd "$pkgname-$pkgver"
python -m unittest -v
}
package(){
cd "$pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 README.md -t "$pkgdir/usr/share/$pkgname/"
install -Dm644 HACKING.rst -t "$pkgdir/usr/share/$pkgname/"
install -Dm644 CONTRIBUTING.rst -t "$pkgdir/usr/share/$pkgname/"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|