mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
testing/py3-minidb: build with gpep517
This commit is contained in:
parent
198b7fca83
commit
84eaf1267a
@ -2,28 +2,33 @@
|
|||||||
# Maintainer: Thiago Perrotta <tbperrotta@gmail.com>
|
# Maintainer: Thiago Perrotta <tbperrotta@gmail.com>
|
||||||
pkgname=py3-minidb
|
pkgname=py3-minidb
|
||||||
pkgver=2.0.7
|
pkgver=2.0.7
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
pkgdesc="Simple SQLite3 store for Python objects"
|
pkgdesc="Simple SQLite3 store for Python objects"
|
||||||
url="https://thp.io/2010/minidb"
|
url="https://thp.io/2010/minidb"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="ISC"
|
license="ISC"
|
||||||
depends="python3"
|
depends="python3"
|
||||||
makedepends="py3-setuptools"
|
makedepends="py3-setuptools py3-gpep517"
|
||||||
checkdepends="py3-pytest"
|
checkdepends="py3-pytest"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="https://files.pythonhosted.org/packages/source/m/minidb/minidb-$pkgver.tar.gz"
|
source="https://files.pythonhosted.org/packages/source/m/minidb/minidb-$pkgver.tar.gz"
|
||||||
builddir="$srcdir/minidb-$pkgver/"
|
builddir="$srcdir/minidb-$pkgver/"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
PYTHONPATH=. pytest
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||||
|
.testenv/bin/python3 -m pytest
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --root="$pkgdir" --skip-build
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
|
Loading…
Reference in New Issue
Block a user