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

Konstantin Gizdov kgizdov at archlinux.org
Tue Jan 26 11:49:19 UTC 2021


    Date: Tuesday, January 26, 2021 @ 11:49:19
  Author: kgizdov
Revision: 830692

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-01-26 11:49:13 UTC (rev 830691)
+++ PKGBUILD	2021-01-26 11:49:19 UTC (rev 830692)
@@ -1,37 +0,0 @@
-# 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/PKGBUILD (from rev 830691, python-awkward/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-01-26 11:49:19 UTC (rev 830692)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-awkward
+pkgver=0.15.3
+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=('5acb08af17b5d39283d0c895d4c08c35ef3ed798b9fc8adc9177165919457c4ede596e2cbdab26a082eef452032714e4a78210f43ae19fc8d911b236c72937cb')
+
+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
+}

Deleted: deserialize.patch
===================================================================
--- deserialize.patch	2021-01-26 11:49:13 UTC (rev 830691)
+++ deserialize.patch	2021-01-26 11:49:19 UTC (rev 830692)
@@ -1,15 +0,0 @@
-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