[arch-commits] Commit in python-awkward/trunk (PKGBUILD)

Konstantin Gizdov kgizdov at gemini.archlinux.org
Mon Sep 5 21:13:32 UTC 2022


    Date: Monday, September 5, 2022 @ 21:13:32
  Author: kgizdov
Revision: 1293337

upgpkg: python-awkward 1.9.0-1

Modified:
  python-awkward/trunk/PKGBUILD

----------+
 PKGBUILD |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-09-05 21:10:54 UTC (rev 1293336)
+++ PKGBUILD	2022-09-05 21:13:32 UTC (rev 1293337)
@@ -2,10 +2,10 @@
 
 _pkgname=awkward
 pkgname="python-${_pkgname}"
-pkgver=1.8.0
-pkgrel=2
+pkgver=1.9.0
+pkgrel=1
 pkgdesc="Manipulate jagged, chunky, and/or bitmasked arrays as easily as Numpy"
-url="https://github.com/scikit-hep/awkward-1.0"
+url="https://github.com/scikit-hep/awkward"
 license=('BSD')
 arch=('x86_64')
 depends=('python-numpy' 'python-packaging')
@@ -14,7 +14,7 @@
 checkdepends=('python-pyaml' 'python-pytest' 'python-pytest-cov' 'python-hist' 'python-pandas' 'python-numexpr' 'python-pyarrow' 'python-scikit-hep-testdata' 'python-vector'
               'root' 'pybind11' 'rapidjson')
 source=(
-  "${pkgname}::git+https://github.com/scikit-hep/${_pkgname}-1.0#tag=${pkgver}"
+  "${pkgname}::git+https://github.com/scikit-hep/${_pkgname}#tag=v${pkgver}"
   "${pkgname}-dlpack::git+https://github.com/dmlc/dlpack.git"
   "${pkgname}-rapidjson::git+https://github.com/Tencent/rapidjson.git"
   "${pkgname}-pybind11::git+https://github.com/pybind/pybind11.git"
@@ -53,7 +53,8 @@
 
 check() {
   cd "${pkgname}"
-  PYTHONPATH="build/lib.linux-${CARCH}-$(get_pyver)" pytest tests || echo 'some tests fail'
+  local python_version=$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))')
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-${python_version}" pytest || echo 'some tests fail'
 }
 
 package() {



More information about the arch-commits mailing list