mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
testing/py3-modbus-tk: build with gpep517
This commit is contained in:
parent
00a4be406a
commit
73769a8ba0
@ -3,28 +3,34 @@
|
|||||||
pkgname=py3-modbus-tk
|
pkgname=py3-modbus-tk
|
||||||
_pkgname="${pkgname#py3-}"
|
_pkgname="${pkgname#py3-}"
|
||||||
pkgver=1.1.1
|
pkgver=1.1.1
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
pkgdesc="Create Modbus app easily with Python"
|
pkgdesc="Create Modbus app easily with Python"
|
||||||
url="https://github.com/ljean/modbus-tk"
|
url="https://github.com/ljean/modbus-tk"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="LGPL-2.1-or-later"
|
license="LGPL-2.1-or-later"
|
||||||
depends="python3 py3-pyserial"
|
depends="python3 py3-pyserial"
|
||||||
makedepends="py3-setuptools"
|
makedepends="py3-setuptools py3-gpep517"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="$_pkgname-$pkgver.tar.gz::https://github.com/ljean/modbus-tk/archive/refs/tags/$pkgver.tar.gz"
|
source="$_pkgname-$pkgver.tar.gz::https://github.com/ljean/modbus-tk/archive/refs/tags/$pkgver.tar.gz"
|
||||||
builddir="$srcdir/$_pkgname-$pkgver"
|
builddir="$srcdir/$_pkgname-$pkgver"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
python3 -m unittest tests/unittest_*
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||||
|
.testenv/bin/python3 -m unittest tests/unittest_*
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --skip-build --root="$pkgdir"
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
9868a6720434a86da2f87dc53719bbd21595e0c2e20fe1acb5baf7dca18c7da2afd83a6f02d15947725967755f6f43eb60fa66deef7e3c907dfbfd6e22a48f84 modbus-tk-1.1.1.tar.gz
|
9868a6720434a86da2f87dc53719bbd21595e0c2e20fe1acb5baf7dca18c7da2afd83a6f02d15947725967755f6f43eb60fa66deef7e3c907dfbfd6e22a48f84 modbus-tk-1.1.1.tar.gz
|
||||||
"
|
"
|
||||||
|
Loading…
Reference in New Issue
Block a user