Update to 0.3.3-6

This commit is contained in:
graysky 2023-12-06 16:09:14 -05:00
parent c0c5b792b5
commit bfb3cf1109

View file

@ -3,13 +3,13 @@
pkgname=stressberry pkgname=stressberry
pkgver=0.3.3 pkgver=0.3.3
pkgrel=5 pkgrel=6
pkgdesc='Stress tests and temperature plots for the Raspberry Pi' pkgdesc='Stress tests and temperature plots for the Raspberry Pi'
arch=(any) arch=(any)
url='https://github.com/nschloe/stressberry' url='https://github.com/nschloe/stressberry'
license=(GPL3) license=(GPL3)
depends=(python-matplotlib python-yaml python-matplotx stress) depends=(python-matplotlib python-yaml python-matplotx stress)
makedepends=(python-pytest python-setuptools python-build python-install python-wheel) makedepends=(python-pytest python-setuptools python-build python-installer python-wheel)
source=("$pkgname-$pkgver.tar.gz::https://github.com/nschloe/$pkgname/archive/v$pkgver.tar.gz" source=("$pkgname-$pkgver.tar.gz::https://github.com/nschloe/$pkgname/archive/v$pkgver.tar.gz"
0001-convert-to-matplotx-from-dufte.patch::https://github.com/nschloe/stressberry/commit/55501513eaa2497c955daaa2179ca5c2e48eaa6b.patch) 0001-convert-to-matplotx-from-dufte.patch::https://github.com/nschloe/stressberry/commit/55501513eaa2497c955daaa2179ca5c2e48eaa6b.patch)
b2sums=('3ebdcc0f0a951b9a0c8a5a35d96cda2edc535b58f08abeb3eefb281a7bb6c582e66e9eb601acce6c79ad92320c0b97ef481d2e76ffa97ae7e7033a5a7e9c38a3' b2sums=('3ebdcc0f0a951b9a0c8a5a35d96cda2edc535b58f08abeb3eefb281a7bb6c582e66e9eb601acce6c79ad92320c0b97ef481d2e76ffa97ae7e7033a5a7e9c38a3'
@ -29,14 +29,14 @@ check() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
mkdir -p temp mkdir -p temp
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
python -m install --optimize=1 --destdir=temp dist/*.whl python -m installer --destdir=temp dist/*.whl
PATH="$PWD/temp/usr/bin:$PATH" PYTHONPATH="$PWD/temp/$site_packages" python -m pytest PATH="$PWD/temp/usr/bin:$PATH" PYTHONPATH="$PWD/temp/$site_packages" python -m pytest
} }
package() { package() {
cd $pkgname-$pkgver cd $pkgname-$pkgver
export PYTHONHASHSEED=0 export PYTHONHASHSEED=0
python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl python -m installer --destdir="$pkgdir" dist/*.whl
# Symlink license file # Symlink license file
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")