mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
testing/py3-confluent-kafka: build with gpep517
This commit is contained in:
parent
60489cabb0
commit
a67f31c6df
@ -3,14 +3,14 @@
|
||||
pkgname=py3-confluent-kafka
|
||||
_pkgname=confluent-kafka-python
|
||||
pkgver=1.8.2
|
||||
pkgrel=4
|
||||
pkgrel=5
|
||||
pkgdesc="Confluent's Apache Kafka Python clien"
|
||||
url="https://github.com/confluentinc/confluent-kafka-python"
|
||||
# x86, armhf, armv7: blocked by py3-fastavro
|
||||
arch="all !x86 !armhf !armv7"
|
||||
license="Apache-2.0"
|
||||
depends="py3-avro py3-fastavro py3-jsonschema py3-protobuf py3-requests"
|
||||
makedepends="py3-setuptools python3-dev librdkafka-dev>=1.0.1"
|
||||
makedepends="py3-setuptools python3-dev librdkafka-dev>=1.0.1 py3-gpep517"
|
||||
checkdepends="py3-pytest py3-trivup"
|
||||
options="!check" # missing deps
|
||||
subpackages="$pkgname-pyc"
|
||||
@ -18,15 +18,20 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/confluentinc/confluent-kafka
|
||||
builddir="$srcdir/$_pkgname-$pkgver"
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
python3 setup.py build_ext --inplace
|
||||
PYTHONPATH=. python3 -m pytest -v tests
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||
.testenv/bin/python3 -m pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
rm "$pkgdir"/usr/LICENSE.txt
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user