Date: Tuesday, January 3, 2023 @ 01:58:13
  Author: kgizdov
Revision: 1374262

archrelease: copy trunk to community-x86_64

Added:
  python-iminuit/repos/community-x86_64/PKGBUILD
    (from rev 1374260, python-iminuit/trunk/PKGBUILD)
  python-iminuit/repos/community-x86_64/ipython-fix.patch
    (from rev 1374260, python-iminuit/trunk/ipython-fix.patch)
Deleted:
  python-iminuit/repos/community-x86_64/PKGBUILD

-------------------+
 PKGBUILD          |  169 ++++++++++++++++++++++++++--------------------------
 ipython-fix.patch |   11 +++
 2 files changed, 97 insertions(+), 83 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-03 01:58:12 UTC (rev 1374261)
+++ PKGBUILD    2023-01-03 01:58:13 UTC (rev 1374262)
@@ -1,83 +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.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
-}

Copied: python-iminuit/repos/community-x86_64/PKGBUILD (from rev 1374260, 
python-iminuit/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-01-03 01:58:13 UTC (rev 1374262)
@@ -0,0 +1,86 @@
+# 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.18.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-ipykernel'
+             '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";
+  'ipython-fix.patch'
+)
+sha256sums=('SKIP'
+            'SKIP'
+            'SKIP'
+            '3b7e5a505d580403aa98192cbcccfc14b9f243572c836f4af77a70373bfc9a22')
+
+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 -c protocol.file.allow=always submodule update --init --recursive
+
+  # python-cmake is not needed
+  sed -i '/cmake/d' pyproject.toml
+
+  patch -Np1 -i "${srcdir}/ipython-fix.patch"
+}
+
+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
+}

Copied: python-iminuit/repos/community-x86_64/ipython-fix.patch (from rev 
1374260, python-iminuit/trunk/ipython-fix.patch)
===================================================================
--- ipython-fix.patch                           (rev 0)
+++ ipython-fix.patch   2023-01-03 01:58:13 UTC (rev 1374262)
@@ -0,0 +1,11 @@
+diff --color -aur python-iminuit-old/doc/conf.py python-iminuit-new/doc/conf.py
+--- python-iminuit-old/doc/conf.py     2023-01-03 03:50:48.084727362 +0200
++++ python-iminuit-new/doc/conf.py     2023-01-03 03:51:14.684726701 +0200
+@@ -33,6 +33,7 @@
+     # 'matplotlib.sphinxext.only_directives',
+     "matplotlib.sphinxext.plot_directive",
+     "nbsphinx",
++    "IPython.sphinxext.ipython_console_highlighting",
+ ]
+ 
+ nbsphinx_kernel_name = "python3"

Reply via email to