[arch-commits] Commit in python-geojson/repos (3 files)

Caleb Maclennan alerque at gemini.archlinux.org
Sat Dec 18 21:15:40 UTC 2021


    Date: Saturday, December 18, 2021 @ 21:15:40
  Author: alerque
Revision: 1077774

archrelease: copy trunk to community-any

Added:
  python-geojson/repos/community-any/
  python-geojson/repos/community-any/0001-Remove-encoding-parameter-from-json.load-for-Python-.patch
    (from rev 1077773, python-geojson/trunk/0001-Remove-encoding-parameter-from-json.load-for-Python-.patch)
  python-geojson/repos/community-any/PKGBUILD
    (from rev 1077773, python-geojson/trunk/PKGBUILD)

-----------------------------------------------------------------+
 0001-Remove-encoding-parameter-from-json.load-for-Python-.patch |   26 ++++++
 PKGBUILD                                                        |   40 ++++++++++
 2 files changed, 66 insertions(+)

Copied: python-geojson/repos/community-any/0001-Remove-encoding-parameter-from-json.load-for-Python-.patch (from rev 1077773, python-geojson/trunk/0001-Remove-encoding-parameter-from-json.load-for-Python-.patch)
===================================================================
--- community-any/0001-Remove-encoding-parameter-from-json.load-for-Python-.patch	                        (rev 0)
+++ community-any/0001-Remove-encoding-parameter-from-json.load-for-Python-.patch	2021-12-18 21:15:40 UTC (rev 1077774)
@@ -0,0 +1,26 @@
+From d88e32f1b05ad287a8d612e6f61ed7432fc72957 Mon Sep 17 00:00:00 2001
+From: Karthikeyan Singaravelan <tir.karthi at gmail.com>
+Date: Mon, 10 Aug 2020 10:06:14 +0530
+Subject: [PATCH] Remove encoding parameter from json.load for Python 3.9
+ compatibility. (#151)
+
+---
+ tests/test_features.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/test_features.py b/tests/test_features.py
+index 529de70..e2b56e9 100644
+--- a/tests/test_features.py
++++ b/tests/test_features.py
+@@ -82,7 +82,7 @@ class FeaturesTest(unittest.TestCase):
+                 ' "properties": {"summary": "The first feature",'
+                 ' "link": "http://example.org/features/1",'
+                 ' "title": "Feature 1"}}')
+-        feature = geojson.loads(json, object_hook=factory, encoding="utf-8")
++        feature = geojson.loads(json, object_hook=factory)
+         self.assertEqual(repr(type(feature)),
+                          "<class 'geojson.examples.SimpleWebFeature'>")
+         self.assertEqual(feature.id, '1')
+-- 
+2.32.0
+

Copied: python-geojson/repos/community-any/PKGBUILD (from rev 1077773, python-geojson/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-12-18 21:15:40 UTC (rev 1077774)
@@ -0,0 +1,40 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Alexander Fasching <fasching.a91 at gmail.com>
+# Contributor: Johannes Loethberg <johannes at kyriasis.com>
+
+_pyname=geojson
+pkgname="python-$_pyname"
+pkgver=2.5.0
+pkgrel=3
+pkgdesc='Python bindings and utilities for GeoJSON'
+url="https://github.com/frewsxcv/$pkgname"
+arch=(any)
+license=(BSD)
+depends=(python)
+makedepends=(python-setuptools)
+_archive="$_pyname-$pkgver"
+source=("$_archive.tgz::$url/archive/$pkgver.tar.gz"
+        0001-Remove-encoding-parameter-from-json.load-for-Python-.patch)
+sha256sums=('e70c9af97cf01abf88e350f08bb2b42a3dd0bfdb9dddb26d80155ecf2065215c'
+            'cf701e826a0cda61484ebc1ac06e4aeb0f9af2ec718d284d481f9870c7d1452b')
+
+prepare() {
+	cd "$_archive"
+	patch -p1 < ../0001-Remove-encoding-parameter-from-json.load-for-Python-.patch
+}
+
+build() {
+	cd "$_archive"
+	python setup.py build
+}
+
+check() {
+	cd "$_archive"
+	python setup.py test
+}
+
+package() {
+	cd "$_archive"
+	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.rst
+}



More information about the arch-commits mailing list