[arch-commits] Commit in python-iminuit/repos/community-x86_64 (PKGBUILD PKGBUILD)

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


    Date: Monday, April 4, 2022 @ 00:44:41
  Author: kgizdov
Revision: 1181147

archrelease: copy trunk to community-x86_64

Added:
  python-iminuit/repos/community-x86_64/PKGBUILD
    (from rev 1181146, python-iminuit/trunk/PKGBUILD)
Deleted:
  python-iminuit/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  151 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 77 insertions(+), 74 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-04 00:44:35 UTC (rev 1181146)
+++ PKGBUILD	2022-04-04 00:44:41 UTC (rev 1181147)
@@ -1,74 +0,0 @@
-# Maintainer: Konstantin Gizdov <arch at kge dot pw>
-# Contributor: Astro Benzene <universebenzene at sina dot com>
-_pkgname=iminuit
-pkgbase="python-${_pkgname}"
-pkgname=("python-${_pkgname}" "python-${_pkgname}-docs")
-pkgver=2.10.0
-pkgrel=1
-pkgdesc="Python interface for MINUIT, a physics analysis tool for function minimization."
-arch=('x86_64')
-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')
-checkdepends=('python-pytest' 'python-scipy' 'python-tabulate')
-options=(!emptydirs)
-source=(
-  "${pkgbase}::git+https://github.com/scikit-hep/iminuit#tag=v${pkgver}"
-  "${pkgbase}-pybind11::git+https://github.com/pybind/pybind11.git"
-  "${pkgbase}-root::git+https://github.com/root-project/root.git"
-)
-sha256sums=('SKIP'
-            'SKIP'
-            'SKIP')
-
-get_pyver () {
-    python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))'
-}
-
-prepare() {
-  cd "${srcdir}/${pkgbase}"
-  git submodule init
-
-  git config submodule."extern/root".url "${srcdir}/${pkgname}"-root
-  git config submodule."extern/pybind11".url "${srcdir}/${pkgname}"-pybind11
-
-  git submodule update --init --recursive
-
-  # python-cmake is not needed
-  sed -i '/cmake/d' pyproject.toml
-}
-
-build() {
-  cd "${srcdir}/${pkgbase}"
-
-  # build
-  python -m build --wheel --no-isolation
-
-  # build docs
-  PYTHONPATH="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"
-}
-
-package_python-iminuit() {
-  optdepends=('python-iminuit-doc: Documentation for python-iminuit')
-  cd "${srcdir}/${pkgname}"
-
-  install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-  python -m installer --destdir="${pkgdir}" dist/*.whl
-}
-
-package_python-iminuit-docs() {
-  cd "${srcdir}/${pkgbase}"
-
-  install -d -m755 "${pkgdir}/usr/share/doc/${pkgname}"
-  cp -a build/html "${pkgdir}/usr/share/doc/${pkgname}"
-  install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
-}

Copied: python-iminuit/repos/community-x86_64/PKGBUILD (from rev 1181146, python-iminuit/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-04-04 00:44:41 UTC (rev 1181147)
@@ -0,0 +1,77 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+# Contributor: Astro Benzene <universebenzene at sina dot com>
+_pkgname=iminuit
+pkgbase="python-${_pkgname}"
+pkgname=("python-${_pkgname}" "python-${_pkgname}-docs")
+pkgver=2.11.2
+pkgrel=1
+pkgdesc="Python interface for MINUIT, a physics analysis tool for function minimization."
+arch=('x86_64')
+url="https://iminuit.readthedocs.io"
+license=('GPL' 'MIT')
+depends=('python-numpy')
+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=(
+  "${pkgbase}::git+https://github.com/scikit-hep/iminuit#tag=v${pkgver}"
+  "${pkgbase}-pybind11::git+https://github.com/pybind/pybind11.git"
+  "${pkgbase}-root::git+https://github.com/root-project/root.git"
+)
+sha256sums=('SKIP'
+            'SKIP'
+            'SKIP')
+
+get_pyver () {
+    python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))'
+}
+
+prepare() {
+  cd "${srcdir}/${pkgbase}"
+  git submodule init
+
+  git config submodule."extern/root".url "${srcdir}/${pkgname}"-root
+  git config submodule."extern/pybind11".url "${srcdir}/${pkgname}"-pybind11
+
+  git submodule update --init --recursive
+
+  # python-cmake is not needed
+  sed -i '/cmake/d' pyproject.toml
+}
+
+build() {
+  cd "${srcdir}/${pkgbase}"
+
+  # build
+  python -m build --wheel --no-isolation
+
+  # build docs
+  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="${PWD}/build/lib.linux-${CARCH}-$(get_pyver)" pytest || warning "Tests failed"
+}
+
+package_python-iminuit() {
+  optdepends=('python-iminuit-doc: Documentation for python-iminuit')
+  cd "${srcdir}/${pkgname}"
+
+  install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  python -m installer --destdir="${pkgdir}" dist/*.whl
+}
+
+package_python-iminuit-docs() {
+  cd "${srcdir}/${pkgbase}"
+
+  install -d -m755 "${pkgdir}/usr/share/doc/${pkgname}"
+  cp -a build/html "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
+}



More information about the arch-commits mailing list