1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
7 pkgdesc='OpenStack Hacking Guideline Enforcement'
8 url='https://docs.openstack.org/developer/hacking'
11 makedepends=('python-pbr' 'python-setuptools')
12 checkdepends=('python-ddt' 'python-oslotest')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/openstack/hacking/archive/$pkgver.tar.gz")
14 sha512sums=('d698a2643d26e867b0eda47f4bd1c80be878a0ba2ef74595a38237ff3c49112bca541956b751291b6f691234eacf26c58dea151aaf40ab10cc70446a93f85fc6')
16 export PBR_VERSION=$pkgver
20 sed -i 's/~=/>=/' requirements.txt
30 # Our flake8 is too new
31 stestr run || echo "Tests failed"
34 package_python-hacking() {
36 python setup.py install --root "$pkgdir" --optimize=1