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