Skip to content
Snippets Groups Projects
Commit 0b0db28c authored by Patrycja Rosa's avatar Patrycja Rosa :cat:
Browse files

testing/py3-catkin-pkg: build with gpep517

parent 8db05195
No related branches found
No related tags found
No related merge requests found
......@@ -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="
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment