summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Gizdov2018-11-17 18:48:54 +0000
committerKonstantin Gizdov2018-11-17 18:48:54 +0000
commitfc8f2865288aaa8c93511a9fc3a01c0970502c1b (patch)
tree2fc1ee0b7d13e58aa09335bc909df8f91e814524
parente192a431eebde4294f40b37efbcb9c5b60bbc573 (diff)
downloadaur-fc8f2865288aaa8c93511a9fc3a01c0970502c1b.tar.gz
update v3.2.12
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD108
2 files changed, 65 insertions, 58 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f01d8a4d730..b4de8fe52bc 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,18 @@
pkgbase = python-uproot
pkgdesc = Minimalist CERN ROOT I/O in pure Python and Numpy
- pkgver = 3.2.6
- pkgrel = 2
+ pkgver = 3.2.12
+ pkgrel = 1
url = https://github.com/scikit-hep/uproot
arch = any
license = BSD
+ checkdepends = python2-pandas
+ checkdepends = python-pandas
makedepends = python2-setuptools
- makedepends = python2-numpy
+ makedepends = python2-pytest-runner
makedepends = python-setuptools
- makedepends = python-numpy
- options = !emptydirs
- source = https://github.com/scikit-hep/uproot/archive/3.2.6.zip
- sha256sums = 26920383e5e23b7388a9a3c6c457090b239d324485b5204f01d52893ee06bb7a
+ makedepends = python-pytest-runner
+ source = https://github.com/scikit-hep/uproot/archive/3.2.12.zip
+ sha256sums = 84b7bddba5204711bbcce36a4af667b2aed66a91fa917e66e9a3fca2fbae2bef
pkgname = python2-uproot
depends = python2-awkward
diff --git a/PKGBUILD b/PKGBUILD
index aa5c76fa2c2..e0203c82a77 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,80 +3,86 @@
pkgbase=python-uproot
_pkgbase=uproot
pkgname=('python2-uproot' 'python-uproot')
-pkgver=3.2.6
-pkgrel=2
+pkgver=3.2.12
+pkgrel=1
pkgdesc="Minimalist CERN ROOT I/O in pure Python and Numpy"
arch=('any')
-makedepends=('python2-setuptools' 'python2-numpy'
- 'python-setuptools' 'python-numpy')
+makedepends=('python2-setuptools' 'python2-pytest-runner'
+ 'python-setuptools' 'python-pytest-runner')
+checkdepends=('python2-pandas'
+ 'python-pandas')
url="https://github.com/scikit-hep/uproot"
license=('BSD')
-options=(!emptydirs)
-source=("https://github.com/scikit-hep/${_pkgbase}/archive/${pkgver}.zip")
-sha256sums=('26920383e5e23b7388a9a3c6c457090b239d324485b5204f01d52893ee06bb7a')
+source=("${url}/archive/${pkgver}.zip")
+sha256sums=('84b7bddba5204711bbcce36a4af667b2aed66a91fa917e66e9a3fca2fbae2bef')
prepare() {
- cd "${srcdir}"
- cp -a "${_pkgbase}-${pkgver}" "${_pkgbase}-py2-${pkgver}"
- cd "${_pkgbase}-py2-${pkgver}"
-
- find . -name '*.py' -type f -exec \
- sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
- -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
- -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
- -i '{}' \; -print
+ cd "${srcdir}"
+ cp -a "${_pkgbase}-${pkgver}" "${_pkgbase}-py2-${pkgver}"
+ cd "${_pkgbase}-py2-${pkgver}"
+
+ find . -name '*.py' -type f -exec \
+ sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+ -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+ -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
+ -i '{}' \; -print
}
build() {
- msg2 "Building Python3"
- cd "${srcdir}/${_pkgbase}-${pkgver}"
- python setup.py build
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
+ python setup.py build
- msg2 "Building Python2"
- cd "${srcdir}/${_pkgbase}-py2-${pkgver}"
- python2 setup.py build
+ cd "${srcdir}/${_pkgbase}-py2-${pkgver}"
+ python2 setup.py build
+}
+
+check() {
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
+ python setup.py pytest
+
+ cd "${srcdir}/${_pkgbase}-py2-${pkgver}"
+ python2 setup.py pytest
}
package_python2-uproot() {
- depends=('python2-awkward'
- 'python2-cachetools'
- 'python2-lz4'
- 'python2-numpy'
- 'python2-uproot-methods')
- optdepends=('python2-futures: Python2 parallel processing'
- 'python2-backports.lzma: LZMA compression used by some ROOT files'
- 'xrootd: access remote files over XRootD')
- cd "${srcdir}/${_pkgbase}-py2-${pkgver}"
+ depends=('python2-awkward'
+ 'python2-cachetools'
+ 'python2-lz4'
+ 'python2-numpy'
+ 'python2-uproot-methods')
+ optdepends=('python2-futures: Python2 parallel processing'
+ 'python2-backports.lzma: LZMA compression used by some ROOT files'
+ 'xrootd: access remote files over XRootD')
+ cd "${srcdir}/${_pkgbase}-py2-${pkgver}"
- python2 setup.py install --root="${pkgdir}/" --optimize=1
+ python2 setup.py install --root="${pkgdir}/" --optimize=1
- install -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- install -D README.rst "${pkgdir}/usr/share/${pkgname}/README.rst"
- rm "${pkgdir}/usr/README.rst"
+ install -D README.rst "${pkgdir}/usr/share/${pkgname}/README.rst"
+ rm "${pkgdir}/usr/README.rst"
- install -d "${pkgdir}/usr/share/doc/${pkgname}"
- cp -r docs "${pkgdir}/usr/share/doc/${pkgname}/"
+ install -d "${pkgdir}/usr/share/doc/${pkgname}"
+ cp -r docs "${pkgdir}/usr/share/doc/${pkgname}/"
}
package_python-uproot() {
- depends=('python-awkward'
- 'python-cachetools'
- 'python-lz4'
- 'python-numpy'
- 'python-uproot-methods')
- optdepends=('xrootd: access remote files over XRootD')
- cd "${srcdir}/${_pkgbase}-${pkgver}"
+ depends=('python-awkward'
+ 'python-cachetools'
+ 'python-lz4'
+ 'python-numpy'
+ 'python-uproot-methods')
+ optdepends=('xrootd: access remote files over XRootD')
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
- python setup.py install --root="${pkgdir}/" --optimize=1
+ python setup.py install --root="${pkgdir}/" --optimize=1
- install -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- install -D README.rst "${pkgdir}/usr/share/${pkgname}/README.rst"
- rm "${pkgdir}/usr/README.rst"
+ install -D README.rst "${pkgdir}/usr/share/${pkgname}/README.rst"
+ rm "${pkgdir}/usr/README.rst"
- # See FS#49651
- install -d "${pkgdir}/usr/share/doc/${pkgname}"
- cp -r docs "${pkgdir}/usr/share/doc/${pkgname}/"
+ install -d "${pkgdir}/usr/share/doc/${pkgname}"
+ cp -r docs "${pkgdir}/usr/share/doc/${pkgname}/"
}