[arch-commits] Commit in python-iminuit/repos/community-x86_64 (PKGBUILD PKGBUILD)
Konstantin Gizdov
kgizdov at gemini.archlinux.org
Mon Aug 22 13:46:43 UTC 2022
Date: Monday, August 22, 2022 @ 13:46:43
Author: kgizdov
Revision: 1274699
archrelease: copy trunk to community-x86_64
Added:
python-iminuit/repos/community-x86_64/PKGBUILD
(from rev 1274698, python-iminuit/trunk/PKGBUILD)
Deleted:
python-iminuit/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 163 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 83 insertions(+), 80 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-22 13:46:37 UTC (rev 1274698)
+++ PKGBUILD 2022-08-22 13:46:43 UTC (rev 1274699)
@@ -1,80 +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.15.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' 'python-ipywidgets')
-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"
- # remote refernce is broken, fix it
- "${pkgbase}-root::git+https://github.com/root-project/root.git#commit=195f87330295e1ecdace9e99fc1b7e9558bf61d4"
-)
-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
-
- # root submodule reference is broken, fix it
- git submodule update --init --recursive extern/pybind11
- git submodule update --recursive --remote --merge extern/root
-
- # 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
-}
Copied: python-iminuit/repos/community-x86_64/PKGBUILD (from rev 1274698, python-iminuit/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-08-22 13:46:43 UTC (rev 1274699)
@@ -0,0 +1,83 @@
+# 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.16.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-joblib'
+ 'python-boost-histogram' 'python-nbsphinx' 'python-sphinx_rtd_theme' 'python-matplotlib' 'python-pillow' 'pandoc' 'python-ipywidgets')
+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]))'
+}
+
+get_cpyver () {
+ 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
+
+ # root submodule reference is broken, fix it
+ git submodule update --init --recursive extern/pybind11
+ git submodule update --recursive --remote --merge extern/root
+
+ # 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}-cpython-$(get_cpyver)" make build/html/done
+}
+
+check() {
+ cd "${srcdir}/${pkgbase}"
+
+ PYTHONPATH="${PWD}/build/lib.linux-${CARCH}-cpython-$(get_cpyver)" 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