upgpkg: python-simple-pid 1.0.1-2
enable tests; formatting
This commit is contained in:
@@ -5,6 +5,7 @@ pkgbase = python-simple-pid
|
|||||||
url = https://github.com/m-lundberg/simple-pid
|
url = https://github.com/m-lundberg/simple-pid
|
||||||
arch = any
|
arch = any
|
||||||
license = MIT
|
license = MIT
|
||||||
|
checkdepends = python-pytest
|
||||||
makedepends = python-build
|
makedepends = python-build
|
||||||
makedepends = python-installer
|
makedepends = python-installer
|
||||||
makedepends = python-wheel
|
makedepends = python-wheel
|
||||||
|
@@ -4,13 +4,14 @@ pkgname=python-simple-pid
|
|||||||
_name=${pkgname#python-}
|
_name=${pkgname#python-}
|
||||||
pkgver=1.0.1
|
pkgver=1.0.1
|
||||||
pkgrel=2
|
pkgrel=2
|
||||||
pkgdesc="A simple and easy to use PID controller in Python"
|
pkgdesc='A simple and easy to use PID controller in Python'
|
||||||
arch=(any)
|
arch=(any)
|
||||||
url="https://github.com/m-lundberg/simple-pid"
|
url='https://github.com/m-lundberg/simple-pid'
|
||||||
license=(MIT)
|
license=(MIT)
|
||||||
depends=(python)
|
depends=(python)
|
||||||
makedepends=(python-build python-installer python-wheel python-setuptools)
|
makedepends=(python-build python-installer python-wheel python-setuptools)
|
||||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/m-lundberg/$_name/archive/v$pkgver.tar.gz")
|
checkdepends=(python-pytest)
|
||||||
|
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
|
||||||
b2sums=('29e54cc3e6bddd9103979a0ee1acdfb60e3bd85ef199b2a538144ec5e0c8ea45d4ce22615df618fdd920d0c0e04a50a844d598e9fc09c5873bb8d9c550548723')
|
b2sums=('29e54cc3e6bddd9103979a0ee1acdfb60e3bd85ef199b2a538144ec5e0c8ea45d4ce22615df618fdd920d0c0e04a50a844d598e9fc09c5873bb8d9c550548723')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
@@ -18,6 +19,11 @@ build() {
|
|||||||
python -m build --wheel --no-isolation
|
python -m build --wheel --no-isolation
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd $_name-$pkgver
|
||||||
|
pytest -vv --deselect tests/test_pid.py::test_converge_system
|
||||||
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd $_name-$pkgver
|
cd $_name-$pkgver
|
||||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||||
|
Reference in New Issue
Block a user