Hello community,
here is the log from the commit of package python-cooldict for openSUSE:Factory
checked in at 2019-03-10 09:35:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cooldict (Old)
and /work/SRC/openSUSE:Factory/.python-cooldict.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cooldict"
Sun Mar 10 09:35:30 2019 rev:4 rq:682465 version:1.04
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cooldict/python-cooldict.changes
2018-12-13 19:41:52.161214486 +0100
+++
/work/SRC/openSUSE:Factory/.python-cooldict.new.28833/python-cooldict.changes
2019-03-10 09:35:32.280173905 +0100
@@ -1,0 +2,8 @@
+Thu Mar 7 13:24:35 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 1.04:
+ * include license
+ * python3 compat
+- Drop merged cooldict_python3.patch
+
+-------------------------------------------------------------------
Old:
----
LICENSE
cooldict-1.02.tar.gz
cooldict_python3.patch
New:
----
cooldict-1.04.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-cooldict.spec ++++++
--- /var/tmp/diff_new_pack.YDdULE/_old 2019-03-10 09:35:33.400173636 +0100
+++ /var/tmp/diff_new_pack.YDdULE/_new 2019-03-10 09:35:33.404173635 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-cooldict
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,15 +18,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-cooldict
-Version: 1.02
+Version: 1.04
Release: 0
Summary: dict-like structures for Python
License: BSD-2-Clause
Group: Development/Languages/Python
URL: https://github.com/zardus/cooldict
Source:
https://files.pythonhosted.org/packages/source/c/cooldict/cooldict-%{version}.tar.gz
-Source1: https://github.com/zardus/cooldict/raw/master/LICENSE
-Patch1: cooldict_python3.patch
BuildRequires: %{python_module ana >= 0.1}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
@@ -45,8 +43,6 @@
%prep
%setup -q -n cooldict-%{version}
-%patch1 -p1
-[ -e LICENSE ] || cp %{SOURCE1} LICENSE
%build
%python_build
@@ -55,8 +51,13 @@
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%check
+# Well there is a test, but it does not work even on the git, so skip for now
+#%%python_exec cooldict.py
+
%files %{python_files}
%license LICENSE
+%doc README.md
%{python_sitelib}/*
%changelog
++++++ cooldict-1.02.tar.gz -> cooldict-1.04.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/cooldict-1.02/LICENSE new/cooldict-1.04/LICENSE
--- old/cooldict-1.02/LICENSE 1970-01-01 01:00:00.000000000 +0100
+++ new/cooldict-1.04/LICENSE 2017-02-09 09:44:04.000000000 +0100
@@ -0,0 +1,24 @@
+Copyright (c) 2015, The Regents of the University of California
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/cooldict-1.02/PKG-INFO new/cooldict-1.04/PKG-INFO
--- old/cooldict-1.02/PKG-INFO 2015-12-29 06:05:14.000000000 +0100
+++ new/cooldict-1.04/PKG-INFO 2018-11-09 06:29:50.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: cooldict
-Version: 1.02
+Version: 1.04
Summary: Some useful dict-like structures
Home-page: https://github.com/zardus/cooldict
Author: UNKNOWN
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/cooldict-1.02/README.md new/cooldict-1.04/README.md
--- old/cooldict-1.02/README.md 1970-01-01 01:00:00.000000000 +0100
+++ new/cooldict-1.04/README.md 2017-02-09 09:44:04.000000000 +0100
@@ -0,0 +1,7 @@
+# cooldict
+
+Some useful dict-like structures.
+
+## Usage
+
+See the test() function in cooldict.py. Actual docs will hopefully make it
someday.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/cooldict-1.02/cooldict.py
new/cooldict-1.04/cooldict.py
--- old/cooldict-1.02/cooldict.py 2015-12-29 06:02:50.000000000 +0100
+++ new/cooldict-1.04/cooldict.py 2018-10-17 21:44:33.000000000 +0200
@@ -1,3 +1,4 @@
+from __future__ import print_function
import collections
import itertools
@@ -187,27 +188,27 @@
new_backers = [ ]
try:
- #print "Checking for ignores"
+ #print("Checking for ignores")
ignored_idx = [ getattr(a, 'cooldict_ignore', False) for a in
a_line ].index(True)
- #print "... found at",ignored_idx
+ #print("... found at",ignored_idx)
new_backers = [ a_line[ignored_idx] ]
ancestors = ancestors[:ignored_idx]
ancestor_keys = ancestor_keys[:ignored_idx]
except ValueError:
- #print "... not found"
+ #print("... not found")
pass
- #print "ancestors:",ancestors
- #print "new ancestors:",ancestors
+ #print("ancestors:",ancestors)
+ #print("new ancestors:",ancestors)
for a in reversed(a_line):
- keys = set(a._get_storage().iterkeys()) if hasattr(a,
'_get_storage') else set()
+ keys = set(a._get_storage().keys()) if hasattr(a,
'_get_storage') else set()
ancestor_keys.append(keys)
remaining |= keys
if type(a) is BackedDict:
remaining -= a.deleted
- remaining -= set(self.storage.iterkeys())
+ remaining -= set(self.storage.keys())
remaining -= self.deleted
for a,keys in zip(ancestors, ancestor_keys):
@@ -220,7 +221,7 @@
remaining -= keys
if len(remaining) != 0:
- raise Exception("%d items remaining after flatten!",
len(remaining))
+ raise Exception("%d items remaining after flatten!" %
len(remaining))
self.backers = new_backers
def _ana_getstate(self):
@@ -551,7 +552,7 @@
assert len(list(dnew.ancestry_line())) == 1
for _ in range(2000):
- #print "Branching dict number", _
+ #print("Branching dict number", _)
dnew = dnew.branch()
dnew['ohsnap'] += 1
assert len(list(dnew.ancestry_line())) == 1
@@ -574,7 +575,7 @@
l.info("Testing SinkholeCOWDict")
da = SinkholeCOWDict()
try:
- print da[10]
+ print(da[10])
assert False
except KeyError:
pass
@@ -630,7 +631,7 @@
assert len(list(dnew.ancestry_line())) == 56
for _ in range(2000):
- #print "Branching dict number", _
+ #print("Branching dict number", _)
dnew = dnew.branch()
dnew['ohsnap'] += 1
assert len(list(dnew.ancestry_line())) == 156
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/cooldict-1.02/setup.py new/cooldict-1.04/setup.py
--- old/cooldict-1.02/setup.py 2015-12-29 06:03:09.000000000 +0100
+++ new/cooldict-1.04/setup.py 2018-11-09 06:29:07.000000000 +0100
@@ -1,6 +1,6 @@
from distutils.core import setup
setup(name='cooldict',
- version='1.02',
+ version='1.04',
description='Some useful dict-like structures',
url='https://github.com/zardus/cooldict',
install_requires=['ana>=0.1'],