[arch-commits] Commit in python-uproot/repos/community-any (PKGBUILD PKGBUILD)

Konstantin Gizdov kgizdov at archlinux.org
Thu Apr 2 17:01:13 UTC 2020


    Date: Thursday, April 2, 2020 @ 17:01:12
  Author: kgizdov
Revision: 610153

archrelease: copy trunk to community-any

Added:
  python-uproot/repos/community-any/PKGBUILD
    (from rev 610152, python-uproot/trunk/PKGBUILD)
Deleted:
  python-uproot/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   95 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 51 insertions(+), 44 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-02 17:01:06 UTC (rev 610152)
+++ PKGBUILD	2020-04-02 17:01:12 UTC (rev 610153)
@@ -1,44 +0,0 @@
-# Maintainer: Konstantin Gizdov <arch at kge dot pw>
-
-pkgname=python-uproot
-_pkgname=uproot
-pkgname=python-uproot
-pkgver=3.11.3
-pkgrel=1
-pkgdesc="Minimalist CERN ROOT I/O in pure Python and Numpy"
-arch=('any')
-makedepends=('python-cachetools' 'python-setuptools')
-checkdepends=('python-mock' 'python-pkgconfig' 'python-pandas' 'python-pytest-runner' 'python-requests' 'python-xxhash')
-depends=('python-awkward' 'python-cachetools' 'python-lz4' 'python-numpy' 'python-uproot-methods' 'python-zstandard')
-optdepends=('xrootd: access remote files over XRootD'
-            'python-pandas: fill Pandas DataFrames instead of Numpy arrays'
-            'python-requests: access remote files through HTTP'
-            'python-xxhash: handle lz4-compressed ROOT files')
-url="https://github.com/scikit-hep/uproot"
-license=('BSD')
-
-source=("${url}/archive/${pkgver}.zip")
-sha256sums=('5b71e96b2c0a7f7f74da339600c97dbf2ce652ba0768d2160bddd68131336527')
-
-build() {
-    cd "${srcdir}/${_pkgname}-${pkgver}"
-    python setup.py build
-}
-
-check() {
-    cd "${srcdir}/${_pkgname}-${pkgver}"
-    python setup.py pytest
-}
-
-package() {
-    cd "${srcdir}/${_pkgname}-${pkgver}"
-
-    python setup.py install --root="${pkgdir}/" --optimize=1
-
-    install -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-
-    install -D README.rst "${pkgdir}/usr/share/${pkgname}/README.rst"
-
-    install -d "${pkgdir}/usr/share/doc/${pkgname}"
-    cp -r docs "${pkgdir}/usr/share/doc/${pkgname}/"
-}

Copied: python-uproot/repos/community-any/PKGBUILD (from rev 610152, python-uproot/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-04-02 17:01:12 UTC (rev 610153)
@@ -0,0 +1,51 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+
+pkgbase=python-uproot
+pkgname=(python-uproot python-uproot-docs)
+_pkgname=uproot
+pkgver=3.11.3
+pkgrel=2
+pkgdesc="Minimalist CERN ROOT I/O in pure Python and Numpy"
+arch=('any')
+makedepends=('python-setuptools')
+checkdepends=('python-mock' 'python-pkgconfig' 'python-pandas' 'python-pytest-runner' 'python-requests' 'python-xxhash')
+depends=('python-awkward' 'python-cachetools' 'python-lz4' 'python-numpy' 'python-uproot-methods' 'python-zstandard')
+optdepends=('xrootd: access remote files over XRootD'
+            'python-pandas: fill Pandas DataFrames instead of Numpy arrays'
+            'python-requests: access remote files through HTTP'
+            'python-xxhash: handle lz4-compressed ROOT files')
+url="https://github.com/scikit-hep/${_pkgname}"
+license=('BSD')
+
+source=("${_pkgname}-${pkgver}::${url}/archive/${pkgver}.tar.gz")
+sha256sums=('374e94acc464913fc1be71e82cc3d66b4af0912cdc9fd1cc4db334141fc3aa1e')
+
+build() {
+    cd "${srcdir}/${_pkgname}-${pkgver}"
+    python setup.py build
+}
+
+check() {
+    cd "${srcdir}/${_pkgname}-${pkgver}"
+    python setup.py pytest
+}
+
+package_python-uproot() {
+    optdepends+=('python-uproot-docs: docs')
+    cd "${srcdir}/${_pkgname}-${pkgver}"
+
+    python setup.py install --root="${pkgdir}/" --optimize=1
+
+    install -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python-uproot-docs() {
+    depends=('python-sphinx')
+    cd "${srcdir}/${_pkgname}-${pkgver}"
+
+    install -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    install -D README.rst "${pkgdir}/usr/share/${pkgname}/README.rst"
+
+    install -d "${pkgdir}/usr/share/doc/${pkgbase}"
+    cp -r docs/* "${pkgdir}/usr/share/doc/${pkgbase}/"
+}



More information about the arch-commits mailing list