ptrcnull d6e150e932
testing/*: rebuild against python 3.12
this is only a partial rebuild,
including stuff that i built on my personal machine
with python 3.12.2; might fail with 3.12.3
2024-04-15 17:00:47 +02:00

48 lines
1.3 KiB
Plaintext

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-ovos-bus-client
pkgver=0.0.5
pkgrel=1
pkgdesc="A simple interface for the mycroft messagebus and can be used to connect to ovos"
url="https://github.com/OpenVoiceOS/ovos-bus-client"
arch="noarch"
license="Apache-2.0"
depends="
py3-ovos-config
py3-ovos-utils
py3-pyee
py3-websocket-client
"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVoiceOS/ovos-bus-client/archive/refs/tags/V$pkgver.tar.gz"
builddir="$srcdir/ovos-bus-client-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
# Disabled tests have broken imports
.testenv/bin/python3 -m pytest -k 'not test_class_patching and not test_inheritance' \
--ignore test/unittests/test_compat.py
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
5e61190fb8774174ba8594ceb2db170a0ca29afb0b941c6081f8ebc3ae3ca5813f325155016d2255d0d674b6ccc7ff02d74f9a458aca716b98dafeaa647cd62b py3-ovos-bus-client-0.0.5.tar.gz
"