testing/py3-catkin-pkg: build with gpep517

This commit is contained in:
ptrcnull 2024-09-02 22:34:02 +02:00
parent 8db05195e4
commit 0b0db28c20

View File

@ -3,13 +3,13 @@
pkgname=py3-catkin-pkg
_pkgname=catkin_pkg
pkgver=0.5.2
pkgrel=3
pkgrel=4
pkgdesc="Standalone Python library for the catkin build system."
url="http://wiki.ros.org/catkin_pkg"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-docutils py3-dateutil py3-parsing"
makedepends="py3-setuptools"
makedepends="py3-setuptools py3-gpep517"
checkdepends="py3-pytest py3-mock"
subpackages="$pkgname-pyc"
source="https://github.com/ros-infrastructure/catkin_pkg/archive/refs/tags/$pkgver/catkin-pkg-$pkgver.tar.gz"
@ -25,15 +25,20 @@ prepare() {
}
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
PYTHONPATH=build/lib python3 -m unittest test/test_*.py
python3 -m venv --clear --without-pip --system-site-packages .testenv
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
.testenv/bin/python3 -m unittest test/test_*.py
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="