[arch-commits] Commit in python-awkward/repos/community-any (3 files)

Konstantin Gizdov kgizdov at archlinux.org
Mon Jan 25 11:11:28 UTC 2021


    Date: Monday, January 25, 2021 @ 11:11:28
  Author: kgizdov
Revision: 829675

archrelease: copy trunk to community-any

Added:
  python-awkward/repos/community-any/PKGBUILD
    (from rev 829674, python-awkward/trunk/PKGBUILD)
  python-awkward/repos/community-any/deserialize.patch
    (from rev 829674, python-awkward/trunk/deserialize.patch)
Deleted:
  python-awkward/repos/community-any/PKGBUILD

-------------------+
 PKGBUILD          |   67 ++++++++++++++++++++++++++++------------------------
 deserialize.patch |   15 +++++++++++
 2 files changed, 52 insertions(+), 30 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-01-25 11:11:21 UTC (rev 829674)
+++ PKGBUILD	2021-01-25 11:11:28 UTC (rev 829675)
@@ -1,30 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-awkward
-pkgver=0.15.0
-pkgrel=1
-pkgdesc="Manipulate jagged, chunky, and/or bitmasked arrays as easily as Numpy"
-url="https://github.com/scikit-hep/awkward-0.x"
-license=('BSD')
-arch=('any')
-depends=('python-numpy')
-makedepends=('python-setuptools' 'python-pytest-runner')
-checkdepends=('python-h5py' 'python-pandas')
-source=("https://github.com/scikit-hep/awkward-0.x/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('93e3871c770927486411e2a392f731aa5b2eb4fa710b912cd6b3d92fd012bed5200c03a3b7ecca4adfd0fe188edf641c5d004bd4c16dfc39d7684fa09db7a4b4')
-
-build() {
-  cd awkward-0.x-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd awkward-0.x-$pkgver
-  pytest tests
-}
-
-package() {
-  cd awkward-0.x-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-awkward/repos/community-any/PKGBUILD (from rev 829674, python-awkward/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-01-25 11:11:28 UTC (rev 829675)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-awkward
+pkgver=0.15.2
+pkgrel=1
+pkgdesc="Manipulate jagged, chunky, and/or bitmasked arrays as easily as Numpy"
+url="https://github.com/scikit-hep/awkward-0.x"
+license=('BSD')
+arch=('any')
+depends=('python-numpy')
+makedepends=('python-setuptools' 'python-pytest-runner')
+checkdepends=('python-h5py' 'python-pandas')
+source=("https://github.com/scikit-hep/awkward-0.x/archive/$pkgver/$pkgname-$pkgver.tar.gz"
+        'deserialize.patch')
+sha512sums=('6311e6d94b6a4cc50b9390f2d53e0ccaf67516debc00178fceddbc99912469c5f3345b43a3ed4b956dc7780e2bd565c884eea632151f1730d6a9581f0adb2018'
+            '1f168fd68560743f68149e34c33be4a177bc5f9eb526fa7a6fa061c5fb97c70577daaa53e8c763bedc9d6708f2a0ffd8eff1eee402ac162039a0841290c49a15')
+
+prepare() {
+  cd awkward-0.x-$pkgver
+  patch -Np1 -i "${srcdir}/deserialize.patch"
+}
+
+build() {
+  cd awkward-0.x-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd awkward-0.x-$pkgver
+  pytest tests
+}
+
+package() {
+  cd awkward-0.x-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Copied: python-awkward/repos/community-any/deserialize.patch (from rev 829674, python-awkward/trunk/deserialize.patch)
===================================================================
--- deserialize.patch	                        (rev 0)
+++ deserialize.patch	2021-01-25 11:11:28 UTC (rev 829675)
@@ -0,0 +1,15 @@
+diff --git a/awkward0/persist.py b/awkward0/persist.py
+index 29c1597..e96ccca 100644
+--- a/awkward0/persist.py
++++ b/awkward0/persist.py
+@@ -511,8 +511,8 @@ def deserialize(storage, name="", whitelist=whitelist, cache=None, seen=None):
+         schema = schema.decode("ascii")
+     schema = json.loads(schema)
+ 
+-    if "awkward" not in schema:
+-        raise ValueError("JSON object is not an Awkward Array schema (missing 'awkward' field)")
++    if "awkward" not in schema and "awkward0" not in schema:
++        raise ValueError("JSON object is not an Awkward Array schema (missing 'awkward' or 'awkward0' field). schema is: {}".format(schema))
+ 
+     prefix = schema.get("prefix", "")
+     if seen is None:



More information about the arch-commits mailing list