[arch-commits] Commit in python-rapidjson/repos/community-x86_64 (4 files)

Felix Yan felixonmars at archlinux.org
Sat Oct 24 17:07:26 UTC 2020


    Date: Saturday, October 24, 2020 @ 17:07:25
  Author: felixonmars
Revision: 731469

archrelease: copy trunk to community-x86_64

Added:
  python-rapidjson/repos/community-x86_64/PKGBUILD
    (from rev 731468, python-rapidjson/trunk/PKGBUILD)
  python-rapidjson/repos/community-x86_64/python-3.8.patch
    (from rev 731468, python-rapidjson/trunk/python-3.8.patch)
Deleted:
  python-rapidjson/repos/community-x86_64/PKGBUILD
  python-rapidjson/repos/community-x86_64/python-3.8.patch

------------------+
 PKGBUILD         |   76 ++++++++++++++++++++++++++---------------------------
 python-3.8.patch |   70 ++++++++++++++++++++++++------------------------
 2 files changed, 73 insertions(+), 73 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-24 17:06:55 UTC (rev 731468)
+++ PKGBUILD	2020-10-24 17:07:25 UTC (rev 731469)
@@ -1,38 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-rapidjson
-pkgver=0.9.1
-pkgrel=1
-pkgdesc="Python wrapper around rapidjson"
-arch=('x86_64')
-url="https://pypi.python.org/pypi/python-rapidjson"
-license=('MIT')
-depends=('python')
-makedepends=('python-setuptools' 'rapidjson')
-checkdepends=('python-pytest-runner' 'python-pytest-benchmark' 'python-pytz')
-source=("https://pypi.io/packages/source/p/python-rapidjson/python-rapidjson-$pkgver.tar.gz")
-sha512sums=('0feb085c7cd4a8c0476b67f5ce671ccbe4605c3b08ca364eba64b84b9e8d4a2bbd9f481295023286cba63af0ecbfe69e33581df65a38577ec214672644028aa2')
-
-prepare() {
-  #rm -r python-rapidjson-$pkgver/rapidjson
-  #sed -i 's/if not os.path.isdir/if os.path.isdir/' python-rapidjson-$pkgver/setup.py
-  # Shared rapidjson fails tests.
-
-  cp -a python-rapidjson-$pkgver{,-py2}
-}
-
-build() {
-  cd python-rapidjson-$pkgver
-  python setup.py build # --rj-include-dir=/usr/include
-}
-
-check() {
-  cd python-rapidjson-$pkgver
-  python setup.py pytest --addopts '--ignore benchmarks/'
-}
-
-package() {
-  cd python-rapidjson-$pkgver
-  python setup.py install -O1 --root="$pkgdir"
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: python-rapidjson/repos/community-x86_64/PKGBUILD (from rev 731468, python-rapidjson/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-10-24 17:07:25 UTC (rev 731469)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-rapidjson
+pkgver=0.9.2
+pkgrel=1
+pkgdesc="Python wrapper around rapidjson"
+arch=('x86_64')
+url="https://pypi.python.org/pypi/python-rapidjson"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools' 'rapidjson')
+checkdepends=('python-pytest-runner' 'python-pytest-benchmark' 'python-pytz')
+source=("https://pypi.io/packages/source/p/python-rapidjson/python-rapidjson-$pkgver.tar.gz")
+sha512sums=('a981569f57fb5474de3957f2994984a3de4d62d9f47f993aa38fc80bb6e63c79ccc4f450393751b2661408ac98497e3bd0a4754d1c7f6b4c65eb1b3429489274')
+
+prepare() {
+  #rm -r python-rapidjson-$pkgver/rapidjson
+  #sed -i 's/if not os.path.isdir/if os.path.isdir/' python-rapidjson-$pkgver/setup.py
+  # Shared rapidjson fails tests.
+
+  cp -a python-rapidjson-$pkgver{,-py2}
+}
+
+build() {
+  cd python-rapidjson-$pkgver
+  python setup.py build # --rj-include-dir=/usr/include
+}
+
+check() {
+  cd python-rapidjson-$pkgver
+  python setup.py pytest --addopts '--ignore benchmarks/'
+}
+
+package() {
+  cd python-rapidjson-$pkgver
+  python setup.py install -O1 --root="$pkgdir"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Deleted: python-3.8.patch
===================================================================
--- python-3.8.patch	2020-10-24 17:06:55 UTC (rev 731468)
+++ python-3.8.patch	2020-10-24 17:07:25 UTC (rev 731469)
@@ -1,35 +0,0 @@
-From aa16ff9daec2153f47c3c6977bde31df221bb097 Mon Sep 17 00:00:00 2001
-From: Lele Gaifax <lele at metapensiero.it>
-Date: Sat, 2 Nov 2019 14:31:16 +0100
-Subject: [PATCH] Use repr() instead of str() to obtain string representation
- of PyLong instances
-
-In Python 3.8 they removed several __str__() implementations (see commit
-https://github.com/python/cpython/commit/96aeaec64738b730c719562125070a52ed570210), so
-under that version calling str() on an IntEnum instance gives something like
-"<EnumName.attr: 123>", not the literal integer value as before, so the right thing, that
-seems to work also on Python 3.7, is to use repr() instead.
-
-This fixes issue #125.
----
- rapidjson.cpp | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/rapidjson.cpp b/rapidjson.cpp
-index e649e52..32f527b 100644
---- a/rapidjson.cpp
-+++ b/rapidjson.cpp
-@@ -2267,11 +2267,11 @@ dumps_internal(
-                 writer->Uint64(ui);
-             }
-         } else {
--            // Mimic stdlib json: subclasses of int may override __str__, but we still
-+            // Mimic stdlib json: subclasses of int may override __repr__, but we still
-             // want to encode them as integers in JSON; one example within the standard
-             // library is IntEnum
- 
--            PyObject* intStrObj = PyLong_Type.tp_str(object);
-+            PyObject* intStrObj = PyLong_Type.tp_repr(object);
-             if (intStrObj == NULL)
-                 return false;
- 

Copied: python-rapidjson/repos/community-x86_64/python-3.8.patch (from rev 731468, python-rapidjson/trunk/python-3.8.patch)
===================================================================
--- python-3.8.patch	                        (rev 0)
+++ python-3.8.patch	2020-10-24 17:07:25 UTC (rev 731469)
@@ -0,0 +1,35 @@
+From aa16ff9daec2153f47c3c6977bde31df221bb097 Mon Sep 17 00:00:00 2001
+From: Lele Gaifax <lele at metapensiero.it>
+Date: Sat, 2 Nov 2019 14:31:16 +0100
+Subject: [PATCH] Use repr() instead of str() to obtain string representation
+ of PyLong instances
+
+In Python 3.8 they removed several __str__() implementations (see commit
+https://github.com/python/cpython/commit/96aeaec64738b730c719562125070a52ed570210), so
+under that version calling str() on an IntEnum instance gives something like
+"<EnumName.attr: 123>", not the literal integer value as before, so the right thing, that
+seems to work also on Python 3.7, is to use repr() instead.
+
+This fixes issue #125.
+---
+ rapidjson.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/rapidjson.cpp b/rapidjson.cpp
+index e649e52..32f527b 100644
+--- a/rapidjson.cpp
++++ b/rapidjson.cpp
+@@ -2267,11 +2267,11 @@ dumps_internal(
+                 writer->Uint64(ui);
+             }
+         } else {
+-            // Mimic stdlib json: subclasses of int may override __str__, but we still
++            // Mimic stdlib json: subclasses of int may override __repr__, but we still
+             // want to encode them as integers in JSON; one example within the standard
+             // library is IntEnum
+ 
+-            PyObject* intStrObj = PyLong_Type.tp_str(object);
++            PyObject* intStrObj = PyLong_Type.tp_repr(object);
+             if (intStrObj == NULL)
+                 return false;
+ 



More information about the arch-commits mailing list