38 lines
876 B
Bash
38 lines
876 B
Bash
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
|
|
pkgname=python-hacking
|
|
pkgver=6.1.0
|
|
_commit=86e3688c66ac94e4469a3eea1edf39c18f975ed7
|
|
pkgrel=3
|
|
arch=(any)
|
|
pkgdesc='OpenStack Hacking Guideline Enforcement'
|
|
url='https://docs.openstack.org/developer/hacking'
|
|
license=('Apache')
|
|
depends=('flake8')
|
|
makedepends=('git' 'python-pbr' 'python-setuptools')
|
|
checkdepends=('python-subunit' 'python-stestr' 'python-testscenarios' 'python-testtools'
|
|
'python-ddt' 'python-eventlet')
|
|
source=("git+https://github.com/openstack/hacking.git#commit=$_commit")
|
|
sha512sums=('SKIP')
|
|
|
|
prepare() {
|
|
cd hacking
|
|
sed -i 's/~=/>=/' requirements.txt
|
|
}
|
|
|
|
build() {
|
|
cd hacking
|
|
python setup.py build
|
|
}
|
|
|
|
check() {
|
|
cd hacking
|
|
stestr run
|
|
}
|
|
|
|
package() {
|
|
cd hacking
|
|
python setup.py install --root "$pkgdir" --optimize=1
|
|
}
|