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

_module='reno'
pkgname='python-reno'
pkgver='2.11.2'
pkgrel='2'
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=("https://github.com/openstack/${_module}/archive/${pkgver}.tar.gz")
sha512sums=('4d1e8e68b09ff089d8618f9c53301380be33a4fd99ae4b0c0fffb0d886242811f6fea9f2c2d5ef2f90159a896a16b3328839d1bec718cf723218a2977180760d')

prepare() {
  cd "${srcdir}/${_module}-${pkgver}"
  # Remove failing tests
  rm reno/tests/test_{cache,scanner}.py
  export PBR_VERSION=$pkgver
}

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

check() {
  cd "${srcdir}/${_module}-${pkgver}"
  python setup.py test
}

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

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