Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-geojson for openSUSE:Factory 
checked in at 2021-04-19 21:06:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-geojson (Old)
 and      /work/SRC/openSUSE:Factory/.python-geojson.new.12324 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-geojson"

Mon Apr 19 21:06:02 2021 rev:3 rq:886575 version:2.5.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-geojson/python-geojson.changes    
2019-03-01 16:50:00.137740742 +0100
+++ /work/SRC/openSUSE:Factory/.python-geojson.new.12324/python-geojson.changes 
2021-04-19 21:06:20.440060074 +0200
@@ -1,0 +2,14 @@
+Fri Apr 16 15:18:58 UTC 2021 - Ben Greiner <c...@bnavigator.de>
+
+- Update to 2.5.0
+  * Add "precision" parameter to GeoJSON Object classes with
+    default precision of 6 (0.1m)
+  * Fix bug where map_geometries() util was not preserving Feature
+    IDs
+  * Remove crs module and features to conform to official
+    WGS84-only GeoJSON spec
+- Switch to PyPI source
+- Add geojson-py39-jsonload.patch gh#jazzband/python-geojson#151
+  for compatibility with the python39 flavor
+
+-------------------------------------------------------------------

Old:
----
  2.4.1.tar.gz

New:
----
  geojson-2.5.0.tar.gz
  geojson-py39-jsonload.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-geojson.spec ++++++
--- /var/tmp/diff_new_pack.NuNw78/_old  2021-04-19 21:06:20.900060763 +0200
+++ /var/tmp/diff_new_pack.NuNw78/_new  2021-04-19 21:06:20.904060770 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-geojson
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,13 +18,15 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-geojson
-Version:        2.4.1
+Version:        2.5.0
 Release:        0
 Summary:        Python bindings and utilities for GeoJSON
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
-URL:            https://github.com/frewsxcv/python-geojson
-Source:         
https://github.com/frewsxcv/python-geojson/archive/%{version}.tar.gz
+URL:            https://github.com/jazzband/python-geojson
+Source:         
https://files.pythonhosted.org/packages/source/g/geojson/geojson-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM geojson-py39-jsonload.patch -- 
gh#jazzband/python-geojson#151
+Patch0:         
https://github.com/jazzband/geojson/pull/151.patch#/geojson-py39-jsonload.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -37,7 +39,7 @@
 geo interface specification.
 
 %prep
-%setup -q -n python-geojson-%{version}
+%autosetup -p1 -n geojson-%{version}
 
 %build
 %python_build
@@ -48,11 +50,12 @@
 
 %check
 export LANG=en_US.UTF-8
-%python_exec setup.py test
+%pyunittest -v
 
 %files %{python_files}
 %license LICENSE.rst
 %doc README.rst CHANGELOG.rst
-%{python_sitelib}/*
+%{python_sitelib}/geojson
+%{python_sitelib}/geojson-%{version}*-info
 
 %changelog

++++++ geojson-py39-jsonload.patch ++++++
>From b8bdcb4136e3ffe916ec30bf8411368505ed4ff1 Mon Sep 17 00:00:00 2001
From: Karthikeyan Singaravelan <tir.kar...@gmail.com>
Date: Fri, 7 Aug 2020 13:19:38 +0000
Subject: [PATCH] Remove encoding parameter from json.load for Python 3.9
 compatibility.

---
 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 @@ def test_feature_class(self):
                 ' "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')

Reply via email to