backports/py3-amqp: upgrade to pkgrel 2

This commit is contained in:
Antoine Martin 2023-05-05 01:15:02 -04:00
parent b34c5b9026
commit 9863cef98e
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -1,14 +1,15 @@
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-amqp
pkgver=5.1.1
pkgrel=0
pkgrel=2
pkgdesc="an AMQP implementation"
url="https://pypi.python.org/pypi/amqp/"
url="https://pypi.org/project/amqp/"
arch="noarch"
license="BSD-3-Clause"
depends="py3-vine python3"
makedepends="py3-setuptools"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
checkdepends="py3-vine py3-case py3-nose py2py3-mock"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/a/amqp/amqp-$pkgver.tar.gz"
options="!check" # requires a running rabbitmq sever
builddir="$srcdir"/amqp-$pkgver
@ -17,7 +18,9 @@ replaces="py-amqp" # Backwards compatibility
provides="py-amqp=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
@ -25,7 +28,8 @@ check() {
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="