summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 17b8dbbc0a6c2be32cf9da50cba6cb5504209427 (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
72
73
74
75
76
77
78
79
80
81
82
# Maintainer: Matteo Piccinini (loacker) <matteo.piccinini@gmail.com>
# Contributor: BigfootACA <bigfoot@classfun.cn>

pkgname=python-keystonemiddleware
pkgver=10.12.0
pkgrel=1
pkgdesc="Middleware for the OpenStack Identity API (Keystone)"
arch=(any)
url="https://opendev.org/openstack/keystonemiddleware"
license=('Apache-2.0')
depends=(
    'python'
    'python-keystoneauth1'
    'python-oslo-cache'
    'python-oslo-config'
    'python-oslo-context'
    'python-oslo-i18n'
    'python-oslo-log'
    'python-oslo-serialization'
    'python-oslo-utils'
    'python-pbr'
    'python-pycadf'
    'python-pyjwt'
    'python-keystoneclient'
    'python-requests'
    'python-webob'
    'python-requests-mock'
    'python-cryptography'
    'python-testresources'
    'python-oslo-messaging'
    'python-webtest'
    'python-stevedore'
    'python-memcached'
    'python-testtools'
    'python-fixtures'
    'python-oslotest'
    'python-binary-memcached'
)
makedepends=(
    'python-build'
    'python-installer'
    'python-sphinx'
    'python-wheel'
    'git'
)
checkdepends=(
    'python-hacking'
    'python-flake8-docstrings'
    'python-coverage'
    'python-cryptography'
    'python-fixtures'
    'python-oslotest'
    'python-requests-mock'
    'python-stevedore'
    'python-stestr'
    'python-testresources'
    'python-testtools'
    'python-webtest'
    'python-memcached'
    'python-oslo-messaging'
    'python-pyjwt'
    'bandit'
)
source=("$pkgname-$pkgver::git+$url.git#tag=$pkgver")
b2sums=('4e49179b334bbb372a0877e551c7d15fed7a8748b2b6fc19aeb3fa8baabc40d8afec648529270580496c37242e749e441ac7a48c3efa04f24380297697cb9b4a')

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/"
}