mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
testing/py3-cassandra-driver: switch to gpep517
This commit is contained in:
parent
cd38f17836
commit
2b7aa164ac
@ -1,5 +1,5 @@
|
||||
# Maintainer: Austin Page <jaustinpage@gmail.com>
|
||||
# Contributor: Austin Page <jaustinpage@gmail.com>
|
||||
# Maintainer: Austin Page <jaustinpage@gmail.com>
|
||||
pkgname=py3-cassandra-driver
|
||||
_pkgname="${pkgname/py3-/}"
|
||||
pkgver=3.29.1
|
||||
@ -8,17 +8,26 @@ pkgdesc="Python driver for Apache Cassandra"
|
||||
url="https://github.com/datastax/python-driver"
|
||||
arch="noarch"
|
||||
license="Apache-2.0"
|
||||
makedepends="libev-dev py3-setuptools"
|
||||
makedepends="libev-dev py3-gpep517 py3-setuptools py3-wheel"
|
||||
checkdepends="py3-pytest"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgname-$pkgver"
|
||||
options="!check" # requires cython>=0.20,<0.30
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
.testenv/bin/python3 -m installer .dist/*.whl
|
||||
.testenv/bin/python3 -m pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
python3 -m installer -d "$pkgdir" .dist/*.whl
|
||||
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
Loading…
Reference in New Issue
Block a user