Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages /
cypari2
Commits:
f5db1c5d by Antonio Rojas at 2024-10-31T20:13:15+01:00
Run tests
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -5,6 +5,7 @@ pkgbase = cypari2
url = https://www.sagemath.org
arch = x86_64
license = GPL-2.0-or-later
+ checkdepends = python-pytest
makedepends = cython
makedepends = git
makedepends = python-build
=====================================
PKGBUILD
=====================================
@@ -18,6 +18,7 @@ makedepends=(cython
python-installer
python-setuptools
python-wheel)
+checkdepends=(python-pytest)
source=(git+https://github.com/sagemath/cypari2#tag=$pkgver
pari-2.17.patch)
sha256sums=('015d7421efabb57680fca1445d98585a43228a3f46c36cd7f9cad9b28f5ea0f8'
@@ -33,6 +34,14 @@ build() {
python -m build --wheel --no-isolation
}
+check() {
+ cd $pkgbase
+ python -m venv --system-site-packages test-env
+ test-env/bin/python -m installer dist/*.whl
+ cd tests
+ ../test-env/bin/python -m pytest -v
+}
+
package_python-cypari2() {
cd $pkgbase
python -m installer --destdir="$pkgdir" dist/*.whl
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/cypari2/-/commit/f5db1c5de55cd83ac80a9c75305dee5614ce4284
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/cypari2/-/commit/f5db1c5de55cd83ac80a9c75305dee5614ce4284
You're receiving this email because of your account on gitlab.archlinux.org.