mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 13:46:41 +02:00
45 lines
1.5 KiB
Text
45 lines
1.5 KiB
Text
# Contributor: Anjandev Momi <anjan@momi.ca>
|
|
# Maintainer: Anjandev Momi <anjan@momi.ca>
|
|
pkgname=py3-osqp
|
|
pkgver=0.6.2
|
|
pkgrel=6
|
|
pkgdesc="python interface for OSQP"
|
|
url="https://osqp.org/"
|
|
arch="all !x86 !armv7 !armhf" # py3-qdldl doesnt compile on these arches
|
|
license="Apache-2.0"
|
|
depends="python3 py3-qdldl"
|
|
makedepends="py3-setuptools py3-wheel cmake py3-numpy-dev python3-dev py3-gpep517"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-dev $pkgname-pyc"
|
|
source="osqp-python-$pkgver.tar.gz::https://github.com/osqp/osqp-python/archive/refs/tags/v$pkgver.post0.tar.gz
|
|
osqp-$pkgver.tar.gz::https://github.com/osqp/osqp/releases/download/v$pkgver/complete_sources.tar.gz"
|
|
builddir="$srcdir/osqp-python-$pkgver.post0"
|
|
options="!check" # cant get checks to work
|
|
|
|
prepare() {
|
|
default_prepare
|
|
rmdir osqp_sources
|
|
mv ../osqp osqp_sources
|
|
}
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
05f725069ff94b81f3fe7da4fa7b552d749bdfa5adb97f780781c27f7f2f51dd16b64d8f830cfa16bd77d2613f4e0c3f5e01dd97bf42a4d9b6a483fcd986134d osqp-python-0.6.2.tar.gz
|
|
10145d4ce9d4eb692a482e27f1bcea6cc871d1a518b0558f658d4764ebac09f633bc69598446647b775094d748fd465cfc39c09ac4525ae3f5dc65e51bf58b12 osqp-0.6.2.tar.gz
|
|
"
|