mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
community/py3-jmespath: switch to gpep517
This commit is contained in:
parent
3c28c31e1f
commit
75c6cfa200
@ -2,13 +2,13 @@
|
|||||||
# Contributor: Valery Kartel <valery.kartel@gmail.com>
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
|
||||||
pkgname=py3-jmespath
|
pkgname=py3-jmespath
|
||||||
pkgver=1.0.1
|
pkgver=1.0.1
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc="JMESPath is a query language for JSON"
|
pkgdesc="JMESPath is a query language for JSON"
|
||||||
url="https://jmespath.org"
|
url="https://jmespath.org"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
depends="python3"
|
depends="python3"
|
||||||
makedepends="py3-setuptools"
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
||||||
checkdepends="py3-pytest"
|
checkdepends="py3-pytest"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="https://files.pythonhosted.org/packages/source/j/jmespath/jmespath-$pkgver.tar.gz"
|
source="https://files.pythonhosted.org/packages/source/j/jmespath/jmespath-$pkgver.tar.gz"
|
||||||
@ -18,15 +18,18 @@ replaces=py-jmespath # Backwards compatibility
|
|||||||
provides=py-jmespath=$pkgver-r$pkgrel # Backwards compatibility
|
provides=py-jmespath=$pkgver-r$pkgrel # Backwards compatibility
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
pytest
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
|
.testenv/bin/python3 -m installer .dist/*.whl
|
||||||
|
.testenv/bin/python3 -m pytest
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --skip-build --root="$pkgdir"
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
|
Loading…
Reference in New Issue
Block a user