# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=python-oslotest
pkgver=5.0.0
pkgrel=3
pkgdesc="Oslo test framework"
arch=(any)
url="https://github.com/openstack/oslotest"
license=('Apache')
depends=('python-fixtures' 'python-subunit' 'python-testtools')
makedepends=('git' 'python-pbr')
checkdepends=('python-oslo-config' 'python-stestr')
source=("git+https://github.com/openstack/oslotest.git#tag=$pkgver")
sha512sums=('1088c4060f44086076e0f7e5fcd2d8cf6b8056ec61e05617d3c83b8f9de3cd268778ec7630614ae54bfa9c70bf99527e3703319edab4f5501534abdeb43f1a6d')

build() {
  cd oslotest
  python setup.py build
}

check() {
  cd oslotest
  stestr run
}

package() {
  cd oslotest
  python setup.py install --root="$pkgdir/" --optimize=1
}

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