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

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


    Date: Monday, January 25, 2021 @ 11:11:21
  Author: kgizdov
Revision: 829674

upgpkg: python-awkward 0.15.2-1

Added:
  python-awkward/trunk/deserialize.patch
Modified:
  python-awkward/trunk/PKGBUILD

-------------------+
 PKGBUILD          |   13 ++++++++++---
 deserialize.patch |   15 +++++++++++++++
 2 files changed, 25 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-01-25 10:48:28 UTC (rev 829673)
+++ PKGBUILD	2021-01-25 11:11:21 UTC (rev 829674)
@@ -1,7 +1,7 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=python-awkward
-pkgver=0.15.0
+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"
@@ -10,9 +10,16 @@
 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')
+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

Added: deserialize.patch
===================================================================
--- deserialize.patch	                        (rev 0)
+++ deserialize.patch	2021-01-25 11:11:21 UTC (rev 829674)
@@ -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