mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
testing/py3-catkin-pkg: build with gpep517
This commit is contained in:
parent
8db05195e4
commit
0b0db28c20
@ -3,13 +3,13 @@
|
|||||||
pkgname=py3-catkin-pkg
|
pkgname=py3-catkin-pkg
|
||||||
_pkgname=catkin_pkg
|
_pkgname=catkin_pkg
|
||||||
pkgver=0.5.2
|
pkgver=0.5.2
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
pkgdesc="Standalone Python library for the catkin build system."
|
pkgdesc="Standalone Python library for the catkin build system."
|
||||||
url="http://wiki.ros.org/catkin_pkg"
|
url="http://wiki.ros.org/catkin_pkg"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="BSD-3-Clause"
|
license="BSD-3-Clause"
|
||||||
depends="python3 py3-docutils py3-dateutil py3-parsing"
|
depends="python3 py3-docutils py3-dateutil py3-parsing"
|
||||||
makedepends="py3-setuptools"
|
makedepends="py3-setuptools py3-gpep517"
|
||||||
checkdepends="py3-pytest py3-mock"
|
checkdepends="py3-pytest py3-mock"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="https://github.com/ros-infrastructure/catkin_pkg/archive/refs/tags/$pkgver/catkin-pkg-$pkgver.tar.gz"
|
source="https://github.com/ros-infrastructure/catkin_pkg/archive/refs/tags/$pkgver/catkin-pkg-$pkgver.tar.gz"
|
||||||
@ -25,15 +25,20 @@ prepare() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
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() {
|
package() {
|
||||||
python3 setup.py install --skip-build --root="$pkgdir"
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
|
Loading…
Reference in New Issue
Block a user