Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-exiv2 for openSUSE:Factory 
checked in at 2021-07-08 22:49:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-exiv2 (Old)
 and      /work/SRC/openSUSE:Factory/.python-exiv2.new.2625 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-exiv2"

Thu Jul  8 22:49:29 2021 rev:7 rq:905113 version:0.9.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-exiv2/python-exiv2.changes        
2020-10-21 14:38:34.841611976 +0200
+++ /work/SRC/openSUSE:Factory/.python-exiv2.new.2625/python-exiv2.changes      
2021-07-08 22:49:52.699793394 +0200
@@ -1,0 +2,6 @@
+Thu Jul  8 17:14:26 UTC 2021 - Andreas Schneider <a...@cryptomilk.org>
+
+- Update to version 0.9.3
+  * Add support for tag Xmp.mwg-rs.Regions/mwg-rs:
+
+-------------------------------------------------------------------

Old:
----
  py3exiv2-0.8.0.tar.gz

New:
----
  py3exiv2-0.9.3.tar.gz

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

Other differences:
------------------
++++++ python-exiv2.spec ++++++
--- /var/tmp/diff_new_pack.QHeYJM/_old  2021-07-08 22:49:53.035790801 +0200
+++ /var/tmp/diff_new_pack.QHeYJM/_new  2021-07-08 22:49:53.039790770 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-exiv2
 #
-# Copyright (c) 2020 SUSE LLC
+# 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
@@ -19,8 +19,9 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 # This is a python3 only package
 %define         skip_python2 1
+
 Name:           python-exiv2
-Version:        0.8.0
+Version:        0.9.3
 Release:        0
 Summary:        Python3 bindings for the exiv2 library
 License:        GPL-3.0-only

++++++ py3exiv2-0.8.0.tar.gz -> py3exiv2-0.9.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py3exiv2-0.8.0/PKG-INFO new/py3exiv2-0.9.3/PKG-INFO
--- old/py3exiv2-0.8.0/PKG-INFO 2020-09-29 18:32:03.482937000 +0200
+++ new/py3exiv2-0.9.3/PKG-INFO 2020-12-25 09:56:15.671015500 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: py3exiv2
-Version: 0.8.0
+Version: 0.9.3
 Summary: A Python3 binding to the library exiv2
 Home-page: https://launchpad.net/py3exiv2
 Author: Vincent Vande Vyvre
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py3exiv2-0.8.0/setup.py new/py3exiv2-0.9.3/setup.py
--- old/py3exiv2-0.8.0/setup.py 2020-09-29 18:30:38.000000000 +0200
+++ new/py3exiv2-0.9.3/setup.py 2020-12-25 09:53:35.000000000 +0100
@@ -42,7 +42,7 @@
 
 setup(
     name='py3exiv2',
-    version='0.8.0',
+    version='0.9.3',
     description='A Python3 binding to the library exiv2',
     long_description=long_description,
     url='https://launchpad.net/py3exiv2',
@@ -69,7 +69,6 @@
     packages = find_packages('src'),
     package_dir = {'': 'src'},
     package_data={'':['src/*.cpp', 'src/*.hpp',]},
-    #cmdclass={'install': install},
     ext_modules=[
     Extension('libexiv2python',
         ['src/exiv2wrapper.cpp', 'src/exiv2wrapper_python.cpp'],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py3exiv2-0.8.0/src/exiv2wrapper.cpp 
new/py3exiv2-0.9.3/src/exiv2wrapper.cpp
--- old/py3exiv2-0.8.0/src/exiv2wrapper.cpp     2020-09-08 08:52:39.000000000 
+0200
+++ new/py3exiv2-0.9.3/src/exiv2wrapper.cpp     2020-12-09 20:18:46.000000000 
+0100
@@ -1,7 +1,7 @@
 // 
*****************************************************************************
 /*
  * Copyright (C) 2006-2012 Olivier Tilloy <oliv...@tilloy.net>
- * Copyright (C) 2015-2020 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
+ * Copyright (C) 2015-2021 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
  *
  * This file is part of the pyexiv2 distribution.
  *
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py3exiv2-0.8.0/src/exiv2wrapper.hpp 
new/py3exiv2-0.9.3/src/exiv2wrapper.hpp
--- old/py3exiv2-0.8.0/src/exiv2wrapper.hpp     2020-09-08 08:52:39.000000000 
+0200
+++ new/py3exiv2-0.9.3/src/exiv2wrapper.hpp     2020-12-09 20:18:59.000000000 
+0100
@@ -1,7 +1,7 @@
 // 
*****************************************************************************
 /*
  * Copyright (C) 2006-2010 Olivier Tilloy <oliv...@tilloy.net>
- * Copyright (C) 2015-2020 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
+ * Copyright (C) 2015-2021 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
  *
  * This file is part of the py3exiv2 distribution.
  *
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py3exiv2-0.8.0/src/exiv2wrapper_python.cpp 
new/py3exiv2-0.9.3/src/exiv2wrapper_python.cpp
--- old/py3exiv2-0.8.0/src/exiv2wrapper_python.cpp      2020-09-08 
08:52:39.000000000 +0200
+++ new/py3exiv2-0.9.3/src/exiv2wrapper_python.cpp      2020-12-09 
20:19:13.000000000 +0100
@@ -1,7 +1,7 @@
 // 
*****************************************************************************
 /*
  * Copyright (C) 2006-2012 Olivier Tilloy <oliv...@tilloy.net>
- * Copyright (C) 2015-2020 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
+ * Copyright (C) 2015-2021 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
  *
  * This file is part of the pyexiv2 distribution.
  *
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py3exiv2-0.8.0/src/py3exiv2.egg-info/PKG-INFO 
new/py3exiv2-0.9.3/src/py3exiv2.egg-info/PKG-INFO
--- old/py3exiv2-0.8.0/src/py3exiv2.egg-info/PKG-INFO   2020-09-29 
18:32:03.000000000 +0200
+++ new/py3exiv2-0.9.3/src/py3exiv2.egg-info/PKG-INFO   2020-12-25 
09:56:15.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: py3exiv2
-Version: 0.8.0
+Version: 0.9.3
 Summary: A Python3 binding to the library exiv2
 Home-page: https://launchpad.net/py3exiv2
 Author: Vincent Vande Vyvre
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py3exiv2-0.8.0/src/pyexiv2/__init__.py 
new/py3exiv2-0.9.3/src/pyexiv2/__init__.py
--- old/py3exiv2-0.8.0/src/pyexiv2/__init__.py  2020-09-28 11:36:38.000000000 
+0200
+++ new/py3exiv2-0.9.3/src/pyexiv2/__init__.py  2020-12-22 10:33:43.000000000 
+0100
@@ -3,7 +3,7 @@
 # 
******************************************************************************
 #
 # Copyright (C) 2006-2011 Olivier Tilloy <oliv...@tilloy.net>
-# Copyright (C) 2015-2020 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
+# Copyright (C) 2015-2021 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
 #
 # This file is part of the py3exiv2 distribution.
 #
@@ -75,7 +75,7 @@
 
 
 #: A tuple containing the three components of the version number: major, 
minor, micro.
-version_info = (0, 8, 0)
+version_info = (0, 9, 3)
 
 #: The version of the module as a string (major.minor.micro).
 __version__ = _make_version(version_info)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py3exiv2-0.8.0/src/pyexiv2/exif.py 
new/py3exiv2-0.9.3/src/pyexiv2/exif.py
--- old/py3exiv2-0.8.0/src/pyexiv2/exif.py      2020-09-08 08:52:39.000000000 
+0200
+++ new/py3exiv2-0.9.3/src/pyexiv2/exif.py      2020-12-22 10:29:28.000000000 
+0100
@@ -3,7 +3,7 @@
 # 
******************************************************************************
 #
 # Copyright (C) 2006-2011 Olivier Tilloy <oliv...@tilloy.net>
-# Copyright (C) 2015-2020 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
+# Copyright (C) 2015-2021 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
 #
 # This file is part of the py3exiv2 distribution.
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py3exiv2-0.8.0/src/pyexiv2/iptc.py 
new/py3exiv2-0.9.3/src/pyexiv2/iptc.py
--- old/py3exiv2-0.8.0/src/pyexiv2/iptc.py      2020-09-08 08:52:39.000000000 
+0200
+++ new/py3exiv2-0.9.3/src/pyexiv2/iptc.py      2020-12-22 10:29:52.000000000 
+0100
@@ -3,7 +3,7 @@
 # 
******************************************************************************
 #
 # Copyright (C) 2006-2011 Olivier Tilloy <oliv...@tilloy.net>
-# Copyright (C) 2015-2020 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
+# Copyright (C) 2015-2021 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
 #
 # This file is part of the py3exiv2 distribution.
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py3exiv2-0.8.0/src/pyexiv2/metadata.py 
new/py3exiv2-0.9.3/src/pyexiv2/metadata.py
--- old/py3exiv2-0.8.0/src/pyexiv2/metadata.py  2020-09-08 08:52:39.000000000 
+0200
+++ new/py3exiv2-0.9.3/src/pyexiv2/metadata.py  2020-12-22 10:30:42.000000000 
+0100
@@ -3,7 +3,7 @@
 # 
******************************************************************************
 #
 # Copyright (C) 2006-2011 Olivier Tilloy <oliv...@tilloy.net>
-# Copyright (C) 2015-2020 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
+# Copyright (C) 2015-2021 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
 #
 # This file is part of the py3exiv2 distribution.
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py3exiv2-0.8.0/src/pyexiv2/preview.py 
new/py3exiv2-0.9.3/src/pyexiv2/preview.py
--- old/py3exiv2-0.8.0/src/pyexiv2/preview.py   2020-09-08 08:52:39.000000000 
+0200
+++ new/py3exiv2-0.9.3/src/pyexiv2/preview.py   2020-12-22 10:31:09.000000000 
+0100
@@ -3,7 +3,7 @@
 # 
******************************************************************************
 #
 # Copyright (C) 2010 Olivier Tilloy <oliv...@tilloy.net>
-# Copyright (C) 2015-2020 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
+# Copyright (C) 2015-2021 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
 #
 # This file is part of the py3exiv2 distribution.
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py3exiv2-0.8.0/src/pyexiv2/utils.py 
new/py3exiv2-0.9.3/src/pyexiv2/utils.py
--- old/py3exiv2-0.8.0/src/pyexiv2/utils.py     2020-09-08 08:52:39.000000000 
+0200
+++ new/py3exiv2-0.9.3/src/pyexiv2/utils.py     2020-12-22 10:31:29.000000000 
+0100
@@ -3,7 +3,7 @@
 # 
******************************************************************************
 #
 # Copyright (C) 2006-2012 Olivier Tilloy <oliv...@tilloy.net>
-# Copyright (C) 2015-2020 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
+# Copyright (C) 2015-2021 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
 #
 # This file is part of the py3exiv2 distribution.
 #
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py3exiv2-0.8.0/src/pyexiv2/xmp.py 
new/py3exiv2-0.9.3/src/pyexiv2/xmp.py
--- old/py3exiv2-0.8.0/src/pyexiv2/xmp.py       2020-09-25 11:15:23.000000000 
+0200
+++ new/py3exiv2-0.9.3/src/pyexiv2/xmp.py       2020-12-22 10:12:46.000000000 
+0100
@@ -3,7 +3,7 @@
 # 
******************************************************************************
 #
 # Copyright (C) 2006-2011 Olivier Tilloy <oliv...@tilloy.net>
-# Copyright (C) 2015-2020 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
+# Copyright (C) 2015-2021 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
 #
 # This file is part of the py3exiv2 distribution.
 #
@@ -179,6 +179,9 @@
         type_ = self._tag._getExiv2Type()
         
         if type_ == 'XmpText':
+            if not isinstance(value, str):
+                raise ValueError("Type XmpText need string value, not %s" % 
type(value))
+
             self._tag._setTextValue(value)
 
         elif type_ in ('XmpAlt', 'XmpBag', 'XmpSeq'):
@@ -238,9 +241,23 @@
         type_ = self._tag._getExiv2Type()
         if type_ == 'XmpText':
             stype = self.type
-            if stype.lower().startswith('closed choice of'):
-                stype = stype[17:]
-            self.raw_value = self._convert_to_string(value, stype)
+            if stype == "Boolean":
+                self.raw_value = self._convert_to_string(value, "Boolean")
+
+            elif stype == "Date":
+                self.raw_value = self._convert_to_string(value, stype)
+
+            elif stype.lower().startswith('closed choice of'):
+                self.raw_value = self._convert_to_string(value, stype[17:])
+
+            else:
+                stype = "Text"
+                if isinstance(value, (list, tuple)):
+                    self.raw_value = [self._convert_to_string(v, stype) 
+                                        for v in value]
+
+                else:
+                    self.raw_value = self._convert_to_string(value, stype)
 
         elif type_ in ('XmpAlt', 'XmpBag', 'XmpSeq'):
             if not isinstance(value, (list, tuple)):
@@ -253,6 +270,12 @@
             elif stype.endswith("Detail"):
                 stype = "Text"
 
+            #elif stype == "Region" or self.type == "RegionInfo":
+                #stype = "Text"
+
+            else:
+                stype = "Text"
+
             self.raw_value = [self._convert_to_string(v, stype) for v in value]
 
         elif type_ == 'LangAlt':
@@ -292,6 +315,9 @@
 
         Raise XmpValueError: if the conversion fails
         """
+        if value is None:
+            raise XmpValueError(value, type_)
+
         if type_ == 'Boolean':
             if value == 'True':
                 return True
@@ -307,6 +333,9 @@
             raise NotImplementedError('XMP conversion for type [%s]' % type_)
 
         elif type_ == 'Date':
+            if isinstance(value, datetime.date):
+                return value
+
             try:
                 v = value.replace("Z", "")
                 # New in Python-3.7
@@ -369,9 +398,9 @@
                 except ValueError:
                     raise XmpValueError(value, type_)
 
-        elif type_ == 'Dimensions':
-            # TODO
-            raise NotImplementedError('XMP conversion for type [%s]' % type_)
+        elif type_ in ('RegionInfo', 'ContactInfo', 'Area', 'Dimensions'):
+            # 'Area' & 'Dimensions' are used with "Xmp.mwg-rs.Regions/mwg-rs:"
+            return value
 
         elif type_ == 'Font':
             # TODO
@@ -450,6 +479,9 @@
 
         Raise XmpValueError: if the conversion fails
         """
+        if value is None:
+            raise XmpValueError(value, type_)
+
         if type_ == 'Boolean':
             if isinstance(value, bool):
                 return str(value)
@@ -471,10 +503,24 @@
                 raise XmpValueError(value, type_)
 
         elif type_ == 'Integer':
-            if isinstance(value, int):
+            if not isinstance(value, int):
+                raise XmpValueError(value, type_)
+
+            try:
                 return str(value)
+            except ValueError:
+                raise XmpValueError(value, type_)
 
-            else:
+        elif type_ == 'Text':
+            if isinstance(value, (list, tuple)):
+                try:
+                    return " ".join([str(v) for v in value])
+                except ValueError:
+                    raise XmpValueError(value, type_)
+
+            try:
+                return str(value)
+            except ValueError:
                 raise XmpValueError(value, type_)
 
         elif type_ == 'MIMEType':

Reply via email to