Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages /
sagemath
Commits:
97b001ee by Antonio Rojas at 2025-10-15T12:50:52+02:00
Run pytest
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -5,6 +5,7 @@ pkgbase = sagemath
url = http://www.sagemath.org
arch = x86_64
license = GPL-2.0-or-later
+ checkdepends = python-pytest
makedepends = bliss
makedepends = boost
makedepends = coxeter
=====================================
PKGBUILD
=====================================
@@ -135,6 +135,7 @@ makedepends=(bliss
shared_meataxe
sirocco
treedec)
+checkdepends=(python-pytest)
source=(git+https://github.com/sagemath/sage#tag=$pkgver
latte-count.patch
maxima-5.48.patch)
@@ -156,6 +157,13 @@ build() {
python -m build --wheel --no-isolation
}
+check() {
+ cd sage
+ 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 sage
python -m installer --destdir="$pkgdir" dist/*.whl
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/sagemath/-/commit/97b001eec09f318b61ac59c43ba0917c62c18ecc
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/sagemath/-/commit/97b001eec09f318b61ac59c43ba0917c62c18ecc
You're receiving this email because of your account on gitlab.archlinux.org.