blob: 0997e4223bf0813fa93061db36cd0d9cde882479 (
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
63
64
65
66
67
68
69
70
71
|
# Maintainer: Matteo Piccinini (loacker) <matteo.piccinini@gmail.com>
# Contributor: BigfootACA <bigfoot@classfun.cn>
pkgname=python-oslo-service
pkgver=4.4.0
pkgrel=1
pkgdesc="Library for running OpenStack services"
arch=(any)
url="https://opendev.org/openstack/oslo.service"
license=('Apache-2.0')
depends=(
'python'
'python-webob'
'python-debtcollector'
'python-eventlet'
'python-greenlet'
'python-oslo-utils'
'python-oslo-concurrency'
'python-oslo-config'
'python-oslo-log'
'python-oslo-i18n'
'python-pastedeploy'
'python-routes'
'python-yappi'
'python-pbr'
'python-oslotest'
'python-eventlet'
'python-requests'
'python-fixtures'
'python-testtools'
'python-futurist'
'python-cotyledon'
)
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
'git'
)
checkdepends=(
'python-fixtures'
'python-oslotest'
'python-requests'
'python-stestr'
'python-coverage'
'procps-ng'
'python-requests'
'python-fixtures'
'python-testtools'
'python-paste'
)
source=("$pkgname-$pkgver::git+$url.git#tag=$pkgver")
b2sums=('9caa5ad1264364a86098391704e223f61b6e4408da5966c2e313d92656aa19fe880654803f05497678aa0929cca41beaa2dbccb7b52067316b8f352b7382adb6')
build(){
cd "$pkgname-$pkgver" || exit
PBR_VERSION=$pkgver python -m build --wheel --no-isolation
}
check(){
cd "$pkgname-$pkgver" || exit
stestr run
}
package(){
cd "$pkgname-$pkgver" || exit
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 README.rst -t "$pkgdir/usr/share/$pkgname/"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|