mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 03:35:38 +03:00
we never use pip in the venv manually made for tests- this might break 1-2 things unexpectedly, but - those should be looked at anyway - this has a severe speedup- even on a desktop machine with nvme, this makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small optimisation.
46 lines
1.3 KiB
Text
46 lines
1.3 KiB
Text
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
pkgname=py3-ast-monitor
|
|
pkgver=0.3.2
|
|
pkgrel=0
|
|
pkgdesc="A wearable Raspberry Pi computer for cyclists"
|
|
url="https://github.com/firefly-cpp/AST-Monitor"
|
|
arch="noarch !s390x !riscv64 !armhf !ppc64le" # py3-sport-activities-features # py3-pyqt-feedback-flow
|
|
license="MIT"
|
|
depends="
|
|
python3
|
|
py3-geopy
|
|
py3-matplotlib
|
|
py3-pyqt-feedback-flow
|
|
py3-qt5
|
|
py3-qtwebengine
|
|
py3-sport-activities-features
|
|
py3-tcxreader
|
|
"
|
|
checkdepends="python3-dev py3-pytest"
|
|
makedepends="py3-gpep517 py3-poetry-core py3-installer"
|
|
subpackages="$pkgname-doc"
|
|
source="https://github.com/firefly-cpp/AST-Monitor/archive/$pkgver/ast_monitor-$pkgver.tar.gz"
|
|
builddir="$srcdir/AST-Monitor-$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
|
|
testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
install -Dm644 docs/preprints/2109-13334.pdf -t "$pkgdir"/usr/share/doc/$pkgname
|
|
}
|
|
|
|
sha512sums="
|
|
37175341126153de808a3130441ca9be070143dfddd35ee1df75875f88e3b42d328511ec52e342de1fbc78944b74ff2a1530b202f15bc294fcaf0d535c753307 ast_monitor-0.3.2.tar.gz
|
|
"
|