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