* update python-pbr to 6.0.0-1

This commit is contained in:
Alexander Baldeck 2023-12-11 09:22:24 +01:00
parent c77302c86f
commit f70ad5b387

View File

@ -4,34 +4,32 @@
# Contributor: Limao Luo <luolimao+AUR@gmail.com>
pkgname=python-pbr
pkgver=5.11.1
pkgrel=5
pkgver=6.0.0
_commit=11151154b94f5e116c0ec8cd312df8d341553d50
pkgrel=1
pkgdesc="Python Build Reasonableness"
arch=(any)
url='https://pypi.python.org/pypi/pbr'
license=('Apache')
depends=('python-importlib-metadata' 'python-setuptools')
makedepends=('python-build' 'python-installer' 'python-wheel')
checkdepends=('python-stestr' 'python-testscenarios' 'python-testresources' 'python-testrepository'
'python-virtualenv' 'python-wheel' 'python-sphinx' 'git')
source=("$pkgname-$pkgver.tar.gz::https://github.com/openstack-dev/pbr/archive/$pkgver.tar.gz")
sha512sums=('59ff86c3cc43cc824dfa448ff87fa1fcdd2561c269c63115777811934fd616c893f5fe727d5624eb624d42a43de386cc311c5c029520a3131d5144db5a891da4')
export PBR_VERSION=$pkgver
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#commit=$_commit")
sha512sums=('SKIP')
build() {
cd pbr-$pkgver
cd pbr
python -m build --wheel --no-isolation
}
check() {
cd pbr-$pkgver
# TODO: find out this failure
stestr run --exclude-regex "pbr.tests.test_packaging.TestPackagingWheels.test_metadata_directory_has_pbr_json"
cd pbr
stestr run
}
package() {
cd pbr-$pkgver
cd pbr
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}