Hello community,

here is the log from the commit of package python-xattr for openSUSE:Factory 
checked in at 2020-02-14 16:25:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-xattr (Old)
 and      /work/SRC/openSUSE:Factory/.python-xattr.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-xattr"

Fri Feb 14 16:25:00 2020 rev:20 rq:770567 version:0.9.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-xattr/python-xattr.changes        
2019-03-29 20:37:20.886636083 +0100
+++ /work/SRC/openSUSE:Factory/.python-xattr.new.26092/python-xattr.changes     
2020-02-14 16:25:05.431181401 +0100
@@ -1,0 +2,6 @@
+Thu Feb  6 12:38:24 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- update to 0.9.7
+  * Fix xattr().update() in Python 3
+
+-------------------------------------------------------------------

Old:
----
  xattr-0.9.6.tar.gz

New:
----
  xattr-0.9.7.tar.gz

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

Other differences:
------------------
++++++ python-xattr.spec ++++++
--- /var/tmp/diff_new_pack.CdLO0M/_old  2020-02-14 16:25:06.311181879 +0100
+++ /var/tmp/diff_new_pack.CdLO0M/_new  2020-02-14 16:25:06.319181884 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-xattr
 #
-# 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
@@ -18,12 +18,12 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-xattr
-Version:        0.9.6
+Version:        0.9.7
 Release:        0
 Summary:        Python wrapper for extended filesystem attributes
 License:        MIT
 Group:          Development/Languages/Python
-URL:            http://github.com/xattr/xattr
+URL:            https://github.com/xattr/xattr
 Source:         
https://files.pythonhosted.org/packages/source/x/xattr/xattr-%{version}.tar.gz
 BuildRequires:  %{python_module cffi}
 BuildRequires:  %{python_module devel}

++++++ xattr-0.9.6.tar.gz -> xattr-0.9.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xattr-0.9.6/CHANGES.txt new/xattr-0.9.7/CHANGES.txt
--- old/xattr-0.9.6/CHANGES.txt 2018-07-31 19:10:59.000000000 +0200
+++ new/xattr-0.9.7/CHANGES.txt 2019-12-02 22:56:17.000000000 +0100
@@ -1,3 +1,8 @@
+Version 0.9.7 released 2019-12-02
+
+* Fix xattr().update() in Python 3
+  https://github.com/xattr/xattr/pull/87
+
 Version 0.9.6 released 2018-07-31
 
 * Fix release build by including *.[ch] in Manifest.in
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xattr-0.9.6/PKG-INFO new/xattr-0.9.7/PKG-INFO
--- old/xattr-0.9.6/PKG-INFO    2018-07-31 19:13:38.000000000 +0200
+++ new/xattr-0.9.7/PKG-INFO    2019-12-02 23:08:52.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: xattr
-Version: 0.9.6
+Version: 0.9.7
 Summary: Python wrapper for extended filesystem attributes
 Home-page: http://github.com/xattr/xattr
 Author: Bob Ippolito
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xattr-0.9.6/setup.py new/xattr-0.9.7/setup.py
--- old/xattr-0.9.6/setup.py    2018-07-31 19:10:59.000000000 +0200
+++ new/xattr-0.9.7/setup.py    2019-12-02 22:56:17.000000000 +0100
@@ -5,7 +5,7 @@
 
 from setuptools import setup
 
-VERSION = '0.9.6'
+VERSION = '0.9.7'
 DESCRIPTION = "Python wrapper for extended filesystem attributes"
 LONG_DESCRIPTION = """
 Extended attributes extend the basic attributes of files and directories
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xattr-0.9.6/xattr/__init__.py 
new/xattr-0.9.7/xattr/__init__.py
--- old/xattr-0.9.6/xattr/__init__.py   2018-07-31 19:10:59.000000000 +0200
+++ new/xattr-0.9.7/xattr/__init__.py   2019-12-02 22:56:17.000000000 +0100
@@ -7,7 +7,7 @@
 that exposes these extended attributes.
 """
 
-__version__ = '0.9.6'
+__version__ = '0.9.7'
 
 from .compat import integer_types
 from .lib import (XATTR_NOFOLLOW, XATTR_CREATE, XATTR_REPLACE,
@@ -137,9 +137,9 @@
             del self[k]
 
     def update(self, seq):
-        if not hasattr(seq, 'iteritems'):
+        if not hasattr(seq, 'items'):
             seq = dict(seq)
-        for k, v in seq.iteritems():
+        for k, v in seq.items():
             self[k] = v
 
     def copy(self):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xattr-0.9.6/xattr/tests/test_xattr.py 
new/xattr-0.9.7/xattr/tests/test_xattr.py
--- old/xattr-0.9.6/xattr/tests/test_xattr.py   2018-07-31 19:10:59.000000000 
+0200
+++ new/xattr-0.9.7/xattr/tests/test_xattr.py   2019-12-02 22:56:17.000000000 
+0100
@@ -28,6 +28,16 @@
         else:
             self._test_attr()
 
+    def test_update(self):
+        x = xattr.xattr(self.tempfile)
+        attrs = {
+            'user.test.key1': b'test_value1',
+            'user.test.key2': b'test_value2'
+        }
+        x.update(attrs)
+        for k, v in attrs.items():
+            self.assertEqual(x[k], v)
+
     def _test_attr(self):
         x = xattr.xattr(self.tempfile)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/xattr-0.9.6/xattr.egg-info/PKG-INFO 
new/xattr-0.9.7/xattr.egg-info/PKG-INFO
--- old/xattr-0.9.6/xattr.egg-info/PKG-INFO     2018-07-31 19:13:38.000000000 
+0200
+++ new/xattr-0.9.7/xattr.egg-info/PKG-INFO     2019-12-02 23:08:51.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: xattr
-Version: 0.9.6
+Version: 0.9.7
 Summary: Python wrapper for extended filesystem attributes
 Home-page: http://github.com/xattr/xattr
 Author: Bob Ippolito


Reply via email to