Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / python-qdldl
Commits: b407392c by Antonio Rojas at 2024-04-18T23:27:30+02:00 upgpkg: 0.1.7.post2-2: Python 3.12 rebuild, switch to git sources - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,19 +1,25 @@ pkgbase = python-qdldl pkgdesc = Python interface to the QDLDL free LDL factorization routine for quasi-definite linear systems pkgver = 0.1.7.post2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/oxfordcontrol/qdldl-python/ arch = x86_64 license = Apache-2.0 checkdepends = python-pytest + makedepends = cmake + makedepends = git + makedepends = pybind11 makedepends = python-build makedepends = python-installer makedepends = python-setuptools makedepends = python-wheel - makedepends = pybind11 - makedepends = cmake + depends = gcc-libs + depends = glibc + depends = python depends = python-scipy - source = https://pypi.org/packages/source/q/qdldl/qdldl-0.1.7.post2.tar.gz - sha256sums = 4b1539a5ec10cc757afd7156d7deb4006007cad86d774c9f0fdc3e34415557d3 + source = git+https://github.com/osqp/qdldl-python#tag=v.0.1.7.post2 + source = git+https://github.com/oxfordcontrol/qdldl + sha256sums = ae19247d07341d65a7f52fc48696f406cf44726cf839bd531367054fbcefcaca + sha256sums = SKIP pkgname = python-qdldl ===================================== PKGBUILD ===================================== @@ -1,33 +1,51 @@ # Maintainer: Antonio Rojas <aro...@archlinux.org> -_pyname=qdldl -pkgname=python-$_pyname +_pyname=qdldl-python +pkgname=python-qdldl pkgver=0.1.7.post2 -pkgrel=1 +pkgrel=2 pkgdesc='Python interface to the QDLDL free LDL factorization routine for quasi-definite linear systems' url='https://github.com/oxfordcontrol/qdldl-python/' license=(Apache-2.0) arch=(x86_64) -depends=(python-scipy) -makedepends=(python-build python-installer python-setuptools python-wheel pybind11 cmake) +depends=(gcc-libs + glibc + python + python-scipy) +makedepends=(cmake + git + pybind11 + python-build + python-installer + python-setuptools + python-wheel) checkdepends=(python-pytest) -source=(https://pypi.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz) -sha256sums=('4b1539a5ec10cc757afd7156d7deb4006007cad86d774c9f0fdc3e34415557d3') +source=(git+https://github.com/osqp/$_pyname#tag=v.$pkgver + git+https://github.com/oxfordcontrol/qdldl) +sha256sums=('ae19247d07341d65a7f52fc48696f406cf44726cf839bd531367054fbcefcaca' + 'SKIP') + +prepare() { + cd $_pyname + git submodule init + git submodule set-url c/qdldl "$srcdir"/qdldl + git -c protocol.file.allow=always submodule update +} build() { - cd $_pyname-$pkgver + cd $_pyname python -m build --wheel --no-isolation --skip-dependency-check } check() { - cd $_pyname-$pkgver + cd $_pyname python -m venv --system-site-packages test-env test-env/bin/python -m installer dist/*.whl test-env/bin/python -m pytest -v } package() { - cd $_pyname-$pkgver + cd $_pyname python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-qdldl/-/commit/b407392c4b51d65d8957ee04ef68ecca601d6c7e -- This project does not include diff previews in email notifications. View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-qdldl/-/commit/b407392c4b51d65d8957ee04ef68ecca601d6c7e You're receiving this email because of your account on gitlab.archlinux.org.