summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd73810696e4d4fbb9bd9e37a24ffd8a47073699 (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
# Maintainer: Andy Botting <andy@andybotting.com>

_module='reno'
pkgname='python-reno'
pkgver='2.11.0'
pkgrel='1'
pkgdesc='OpenStack RElease NOtes manager'
arch=('any')
url="https://docs.openstack.org/developer/${_module}/"
license=('Apache')
makedepends=('git' 'python-setuptools')
checkdepends=('python-pbr' 'python-oslotest' 'python-mock' 'python-dulwich'
              'python-sphinx')
source=("git+https://git.openstack.org/openstack/reno#tag=${pkgver}")
sha512sums=('SKIP')

build() {
  cd "${srcdir}/${_module}"
  python setup.py build
}

check() {
  cd "${srcdir}/${_module}"
  # Remove failing GPG subcommand tests
  rm reno/tests/test_scanner.py
  python setup.py test
}

package_python-reno() {
  depends=('python-pbr' 'python-babel' 'python-yaml' 'python-six'
           'python-dulwich' 'python-sphinx')
  cd "${srcdir}/${_module}"
  python setup.py install --root="${pkgdir}/" --optimize=1
}

# vim:set ts=2 sw=2 et: