git » python-pbr.git » main » tree

[main] / PKGBUILD

# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
# Contributor: Limao Luo <luolimao+AUR@gmail.com>

pkgname=python-pbr
pkgver=6.0.0
pkgrel=4
pkgdesc="Python Build Reasonableness"
arch=('any')
url='https://pypi.python.org/pypi/pbr'
license=('Apache-2.0')
depends=('python')
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
#checkdepends=('python-six' 'python-stestr' 'python-testresources' 'python-testscenarios'
#              'python-testtools' 'python-virtualenv' 'python-sphinx' 'python-testrepository')
source=("git+https://github.com/openstack-dev/pbr.git#tag=$pkgver")
sha512sums=('4a998f47307a56f43b95a615128050fb71360a4b3fc8d9e3d539b4f8935ec19533e7b4d55cf763ff4ef3a4ae66806b1242d70980b7805a6b85c1dc4aa59fd190')

build() {
  cd pbr
  python -m build --wheel --no-isolation
}

#check() {
#  cd pbr
#  stestr run --exclude-regex 'test_pep_517_support|test_requirement_parsing'
#}

package() {
  cd pbr
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}