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

testing/py3-firmata: build with gpep517

parent ccf1bb9f
No related branches found
No related tags found
No related merge requests found
...@@ -3,32 +3,37 @@ ...@@ -3,32 +3,37 @@
pkgname=py3-firmata pkgname=py3-firmata
_pkgname=pyFirmata _pkgname=pyFirmata
pkgver=1.0.3 pkgver=1.0.3
pkgrel=9 pkgrel=10
pkgdesc="Python interface for the Firmata procotol" pkgdesc="Python interface for the Firmata procotol"
url="https://github.com/tino/pyFirmata" url="https://github.com/tino/pyFirmata"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
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/tino/pyFirmata/archive/$pkgver.tar.gz source="$_pkgname-$pkgver.tar.gz::https://github.com/tino/pyFirmata/archive/$pkgver.tar.gz
py311.patch py311.patch
" "
builddir="$srcdir/$_pkgname-$pkgver" builddir="$srcdir/$_pkgname-$pkgver"
replaces=py-firmata # Backwards compatibility replaces="py-firmata" # Backwards compatibility
provides=py-firmata=$pkgver-r$pkgrel # Backwards compatibility provides="py-firmata=$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() {
python3 setup.py test python3 -m venv --clear --without-pip --system-site-packages .testenv
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
.testenv/bin/python3 -m unittest discover
} }
package() { package() {
python3 setup.py install --skip-build --root="$pkgdir" gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
} }
sha512sums=" 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