Hello community,
here is the log from the commit of package python-sortedcollections for
openSUSE:Factory checked in at 2020-07-20 21:05:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sortedcollections (Old)
and /work/SRC/openSUSE:Factory/.python-sortedcollections.new.3592 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-sortedcollections"
Mon Jul 20 21:05:06 2020 rev:4 rq:821872 version:1.1.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-sortedcollections/python-sortedcollections.changes
2019-05-16 22:06:16.622495392 +0200
+++
/work/SRC/openSUSE:Factory/.python-sortedcollections.new.3592/python-sortedcollections.changes
2020-07-20 21:06:41.593416667 +0200
@@ -1,0 +2,6 @@
+Mon Jul 20 11:05:33 UTC 2020 - Matej Cepl <[email protected]>
+
+- Add method_item.patch to replace _del_item and _set_item methods
+ (gh#grantjenks/python-sortedcollections#12).
+
+-------------------------------------------------------------------
New:
----
method_item.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-sortedcollections.spec ++++++
--- /var/tmp/diff_new_pack.B43LHj/_old 2020-07-20 21:06:44.233419344 +0200
+++ /var/tmp/diff_new_pack.B43LHj/_new 2020-07-20 21:06:44.237419348 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-sortedcollections
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -23,19 +23,21 @@
Summary: Python Sorted Collections
License: Apache-2.0
Group: Development/Languages/Python
-Url: https://github.com/grantjenks/sortedcollections
+URL: https://github.com/grantjenks/sortedcollections
#Source:
https://files.pythonhosted.org/packages/source/s/sortedcollections/sortedcollections-%%{version}.tar.gz
Source:
https://github.com/grantjenks/python-sortedcollections/archive/v%{version}.tar.gz
+# PATCH-FIX-UPSTREAM method_item.patch
gh#grantjenks/python-sortedcollections#12 [email protected]
+# Add method_item.patch to replace _del_item and _set_item methods
+Patch0: method_item.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
+Requires: python-sortedcontainers >= 2
+BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module sortedcontainers >= 2}
# /SECTION
-Requires: python-sortedcontainers >= 2
-BuildArch: noarch
-
%python_subpackages
%description
@@ -54,6 +56,7 @@
%prep
%setup -q -n python-sortedcollections-%{version}
+%autopatch -p1
%build
%python_build
++++++ method_item.patch ++++++
--- a/sortedcollections/recipes.py
+++ b/sortedcollections/recipes.py
@@ -86,14 +86,14 @@ class ItemSortedDict(SortedDict):
if key not in self:
raise KeyError(key)
self._list_remove(key)
- self._dict_delitem(key)
+ dict.__delitem__(self, key)
def __setitem__(self, key, value):
"``mapping[key] = value``"
if key in self:
self._list_remove(key)
- self._dict_delitem(key)
- self._dict_setitem(key, value)
+ dict.__delitem__(self, key)
+ dict.__setitem__(self, key, value)
self._list_add(key)
_setitem = __setitem__
@@ -158,14 +158,14 @@ class ValueSortedDict(SortedDict):
if key not in self:
raise KeyError(key)
self._list_remove(key)
- self._dict_delitem(key)
+ dict.__delitem__(self, key)
def __setitem__(self, key, value):
"``mapping[key] = value``"
if key in self:
self._list_remove(key)
- self._dict_delitem(key)
- self._dict_setitem(key, value)
+ dict.__delitem__(self, key)
+ dict.__setitem__(self, key, value)
self._list_add(key)
_setitem = __setitem__