[arch-commits] Commit in python-awkward/repos/community-x86_64 (PKGBUILD PKGBUILD)

Konstantin Gizdov kgizdov at gemini.archlinux.org
Wed Mar 23 21:28:34 UTC 2022


    Date: Wednesday, March 23, 2022 @ 21:28:34
  Author: kgizdov
Revision: 1172079

archrelease: copy trunk to community-x86_64

Added:
  python-awkward/repos/community-x86_64/PKGBUILD
    (from rev 1172078, python-awkward/trunk/PKGBUILD)
Deleted:
  python-awkward/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  123 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 65 insertions(+), 58 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-23 21:28:23 UTC (rev 1172078)
+++ PKGBUILD	2022-03-23 21:28:34 UTC (rev 1172079)
@@ -1,58 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-_pkgname=awkward
-pkgname="python-${_pkgname}"
-pkgver=1.7.0
-pkgrel=1
-pkgdesc="Manipulate jagged, chunky, and/or bitmasked arrays as easily as Numpy"
-url="https://github.com/scikit-hep/awkward-array"
-license=('BSD')
-arch=('x86_64')
-depends=('python-numpy')
-optdepends=('cuda: CUDA support')
-makedepends=('cmake' 'git' 'python-setuptools' 'cuda')
-checkdepends=('python-pyaml' 'python-pytest' 'python-pytest-cov' 'python-pandas' 'python-numexpr' 'python-pyarrow' 'python-vector')
-source=(
-  "${pkgname}::git+https://github.com/scikit-hep/${_pkgname}-1.0#tag=${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"
-)
-
-sha512sums=('SKIP'
-            'SKIP'
-            'SKIP'
-            'SKIP')
-
-get_pyver () {
-    python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))'
-}
-
-prepare() {
-  cd "${srcdir}/${pkgname}"
-  git submodule init
-
-  git config submodule."pybind11".url "${srcdir}/${pkgname}"-pybind11
-  git config submodule."rapidjson".url "${srcdir}/${pkgname}"-rapidjson
-  git config submodule."dlpack".url "${srcdir}/${pkgname}"-dlpack
-
-  git submodule update --init --recursive
-}
-
-build() {
-  cd "${pkgname}"
-  python setup.py build
-}
-
-check() {
-  cd "${pkgname}"
-  PYTHONPATH="build/lib.linux-${CARCH}-$(get_pyver)" pytest tests
-}
-
-package() {
-  cd "${pkgname}"
-  python setup.py install --root="${pkgdir}" --optimize=1
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"${pkgname}"/LICENSE
-  cd "${pkgdir}/usr/lib/python$(get_pyver)/site-packages"
-  # ln -s awkward1 awkward
-}

Copied: python-awkward/repos/community-x86_64/PKGBUILD (from rev 1172078, python-awkward/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-03-23 21:28:34 UTC (rev 1172079)
@@ -0,0 +1,65 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_pkgname=awkward
+pkgname="python-${_pkgname}"
+pkgver=1.8.0
+pkgrel=1
+pkgdesc="Manipulate jagged, chunky, and/or bitmasked arrays as easily as Numpy"
+url="https://github.com/scikit-hep/awkward-1.0"
+license=('BSD')
+arch=('x86_64')
+depends=('python-numpy')
+optdepends=('cuda: CUDA support')
+makedepends=('cmake' 'git' 'python-build' 'python-installer' 'python-wheel' 'python-packaging' 'cuda')
+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}-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"
+)
+
+sha512sums=('SKIP'
+            'SKIP'
+            'SKIP'
+            'SKIP')
+
+get_pyver () {
+    python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))'
+}
+
+prepare() {
+  cd "${srcdir}/${pkgname}"
+  git submodule init
+
+  git config submodule."pybind11".url "${srcdir}/${pkgname}"-pybind11
+  git config submodule."rapidjson".url "${srcdir}/${pkgname}"-rapidjson
+  git config submodule."dlpack".url "${srcdir}/${pkgname}"-dlpack
+
+  git submodule update --init --recursive
+
+  sed '/cmake/d' -i pyproject.toml
+  sed \
+    -e 's/setuptools.extern.packaging.version.parse/packaging.version.parse/' \
+    -e 's/import setuptools/import packaging/' \
+    -i src/awkward/_v2/_util.py tests/test_0080-flatpandas-multiindex-rows-and-columns.py
+}
+
+build() {
+  cd "${pkgname}"
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd "${pkgname}"
+  PYTHONPATH="build/lib.linux-${CARCH}-$(get_pyver)" pytest tests || echo 'some tests fail'
+}
+
+package() {
+  cd "${pkgname}"
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"${pkgname}"/LICENSE
+  cd "${pkgdir}/usr/lib/python$(get_pyver)/site-packages"
+  # ln -s awkward1 awkward
+}



More information about the arch-commits mailing list