[arch-commits] Commit in python-iminuit/trunk (PKGBUILD)

Konstantin Gizdov kgizdov at gemini.archlinux.org
Mon Apr 4 00:44:35 UTC 2022


    Date: Monday, April 4, 2022 @ 00:44:35
  Author: kgizdov
Revision: 1181146

upgpkg: python-iminuit 2.11.2-1

Modified:
  python-iminuit/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-04 00:15:13 UTC (rev 1181145)
+++ PKGBUILD	2022-04-04 00:44:35 UTC (rev 1181146)
@@ -3,7 +3,7 @@
 _pkgname=iminuit
 pkgbase="python-${_pkgname}"
 pkgname=("python-${_pkgname}" "python-${_pkgname}-docs")
-pkgver=2.10.0
+pkgver=2.11.2
 pkgrel=1
 pkgdesc="Python interface for MINUIT, a physics analysis tool for function minimization."
 arch=('x86_64')
@@ -10,8 +10,8 @@
 url="https://iminuit.readthedocs.io"
 license=('GPL' 'MIT')
 depends=('python-numpy')
-makedepends=('git' 'cmake' 'python-setuptools' 'python-wheel' 'python-build' 'python-installer'
-             'python-nbsphinx' 'python-sphinx_rtd_theme' 'python-matplotlib' 'python-pillow' 'pandoc')
+makedepends=('git' 'cmake' 'python-setuptools' 'python-wheel' 'python-build' 'python-installer' 'python-joblib'
+             'python-boost-histogram' 'python-nbsphinx' 'python-sphinx_rtd_theme' 'python-matplotlib' 'python-pillow' 'pandoc')
 checkdepends=('python-pytest' 'python-scipy' 'python-tabulate')
 options=(!emptydirs)
 source=(
@@ -47,13 +47,16 @@
   python -m build --wheel --no-isolation
 
   # build docs
-  PYTHONPATH="build/lib.linux-${CARCH}-$(get_pyver)" make build/html/done
+  python -m venv --system-site-packages test-env
+  test-env/bin/python -m pip install numba-stats resample
+  echo 'nbsphinx_allow_errors = True' >> doc/conf.py
+  PYTHONPATH="${PWD}/test-env/lib/python$(get_pyver)/site-packages:${PWD}/build/lib.linux-${CARCH}-$(get_pyver)" make build/html/done
 }
 
 check() {
   cd "${srcdir}/${pkgbase}"
 
-  PYTHONPATH="build/lib.linux-${CARCH}-$(get_pyver)" pytest || warning "Tests failed"
+  PYTHONPATH="${PWD}/build/lib.linux-${CARCH}-$(get_pyver)" pytest || warning "Tests failed"
 }
 
 package_python-iminuit() {



More information about the arch-commits mailing list