Hello community,

here is the log from the commit of package python-exiv2 for openSUSE:Factory 
checked in at 2020-10-21 14:38:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-exiv2 (Old)
 and      /work/SRC/openSUSE:Factory/.python-exiv2.new.3486 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-exiv2"

Wed Oct 21 14:38:34 2020 rev:6 rq:842971 version:0.8.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-exiv2/python-exiv2.changes        
2019-07-04 15:43:01.598086256 +0200
+++ /work/SRC/openSUSE:Factory/.python-exiv2.new.3486/python-exiv2.changes      
2020-10-21 14:38:34.841611976 +0200
@@ -1,0 +2,8 @@
+Tue Oct 20 06:39:52 UTC 2020 - Andreas Schneider <a...@cryptomilk.org>
+
+- Update to version 0.8.0
+  * Add XmpSeq support
+  * Add a datetime conversion to Python with iso format, update some unittests
+- Added py3exiv2-link-boost.patch
+
+-------------------------------------------------------------------

Old:
----
  py3exiv2-0.7.1.tar.gz

New:
----
  py3exiv2-0.8.0.tar.gz
  py3exiv2-link-boost.patch

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

Other differences:
------------------
++++++ python-exiv2.spec ++++++
--- /var/tmp/diff_new_pack.h9uVpY/_old  2020-10-21 14:38:35.349612263 +0200
+++ /var/tmp/diff_new_pack.h9uVpY/_new  2020-10-21 14:38:35.349612263 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-exiv2
 #
-# 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
@@ -20,13 +20,17 @@
 # This is a python3 only package
 %define         skip_python2 1
 Name:           python-exiv2
-Version:        0.7.1
+Version:        0.8.0
 Release:        0
 Summary:        Python3 bindings for the exiv2 library
 License:        GPL-3.0-only
 Group:          Development/Languages/Python
 URL:            https://launchpad.net/py3exiv2
-Source:         
https://files.pythonhosted.org/packages/source/p/py3exiv2/py3exiv2-%{version}.tar.gz
+#
+Source0:        
https://files.pythonhosted.org/packages/source/p/py3exiv2/py3exiv2-%{version}.tar.gz
+#
+Patch0:         py3exiv2-link-boost.patch
+#
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
@@ -48,7 +52,7 @@
 easy manipulation of image metadata.
 
 %prep
-%setup -q -n py3exiv2-%{version}
+%autosetup -p1 -n py3exiv2-%{version}
 
 %build
 %python_build

++++++ py3exiv2-0.7.1.tar.gz -> py3exiv2-0.8.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py3exiv2-0.7.1/PKG-INFO new/py3exiv2-0.8.0/PKG-INFO
--- old/py3exiv2-0.7.1/PKG-INFO 2019-05-29 12:22:12.000000000 +0200
+++ new/py3exiv2-0.8.0/PKG-INFO 2020-09-29 18:32:03.482937000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: py3exiv2
-Version: 0.7.1
+Version: 0.8.0
 Summary: A Python3 binding to the library exiv2
 Home-page: https://launchpad.net/py3exiv2
 Author: Vincent Vande Vyvre
@@ -45,3 +45,4 @@
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py3exiv2-0.7.1/setup.py new/py3exiv2-0.8.0/setup.py
--- old/py3exiv2-0.7.1/setup.py 2019-05-28 10:13:30.000000000 +0200
+++ new/py3exiv2-0.8.0/setup.py 2020-09-29 18:30:38.000000000 +0200
@@ -30,19 +30,19 @@
             if not "-mt" in f:
                 return os.path.basename(f).replace("lib", "").split(".")[0]
             
-        print("NOT FOUND", files)
+        print("libboost for OSX not found!", files)
         sys.exit()
     
 if platform.system() == "Darwin":
     boostlib = get_libboost_osx()
-    print(boostlib)
 
 else:
-    boostlib = 'boost_python3'
+    python_version = str(sys.version_info.major) + str(sys.version_info.minor)
+    boostlib = 'boost_python' + python_version
 
 setup(
     name='py3exiv2',
-    version='0.7.1',
+    version='0.8.0',
     description='A Python3 binding to the library exiv2',
     long_description=long_description,
     url='https://launchpad.net/py3exiv2',
@@ -62,7 +62,8 @@
         'Programming Language :: Python :: 3.5',
         'Programming Language :: Python :: 3.6',
         'Programming Language :: Python :: 3.7',
-        'Programming Language :: Python :: 3.8'
+        'Programming Language :: Python :: 3.8',
+        'Programming Language :: Python :: 3.9'
     ],
     keywords='exiv2 pyexiv2 EXIF IPTC XMP image metadata',
     packages = find_packages('src'),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py3exiv2-0.7.1/src/exiv2wrapper.cpp 
new/py3exiv2-0.8.0/src/exiv2wrapper.cpp
--- old/py3exiv2-0.7.1/src/exiv2wrapper.cpp     2019-04-13 09:28:07.000000000 
+0200
+++ new/py3exiv2-0.8.0/src/exiv2wrapper.cpp     2020-09-08 08:52:39.000000000 
+0200
@@ -1,7 +1,7 @@
 // 
*****************************************************************************
 /*
  * Copyright (C) 2006-2012 Olivier Tilloy <oliv...@tilloy.net>
- * Copyright (C) 2015-2019 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
+ * Copyright (C) 2015-2020 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.7.1/src/exiv2wrapper.hpp 
new/py3exiv2-0.8.0/src/exiv2wrapper.hpp
--- old/py3exiv2-0.7.1/src/exiv2wrapper.hpp     2019-05-29 12:11:36.000000000 
+0200
+++ new/py3exiv2-0.8.0/src/exiv2wrapper.hpp     2020-09-08 08:52:39.000000000 
+0200
@@ -1,7 +1,7 @@
 // 
*****************************************************************************
 /*
  * Copyright (C) 2006-2010 Olivier Tilloy <oliv...@tilloy.net>
- * Copyright (C) 2015-2019 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
+ * Copyright (C) 2015-2020 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.7.1/src/exiv2wrapper_python.cpp 
new/py3exiv2-0.8.0/src/exiv2wrapper_python.cpp
--- old/py3exiv2-0.7.1/src/exiv2wrapper_python.cpp      2019-05-28 
10:09:33.000000000 +0200
+++ new/py3exiv2-0.8.0/src/exiv2wrapper_python.cpp      2020-09-08 
08:52:39.000000000 +0200
@@ -1,7 +1,7 @@
 // 
*****************************************************************************
 /*
  * Copyright (C) 2006-2012 Olivier Tilloy <oliv...@tilloy.net>
- * Copyright (C) 2015-2019 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
+ * Copyright (C) 2015-2020 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.7.1/src/py3exiv2.egg-info/PKG-INFO 
new/py3exiv2-0.8.0/src/py3exiv2.egg-info/PKG-INFO
--- old/py3exiv2-0.7.1/src/py3exiv2.egg-info/PKG-INFO   2019-05-29 
12:22:11.000000000 +0200
+++ new/py3exiv2-0.8.0/src/py3exiv2.egg-info/PKG-INFO   2020-09-29 
18:32:03.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: py3exiv2
-Version: 0.7.1
+Version: 0.8.0
 Summary: A Python3 binding to the library exiv2
 Home-page: https://launchpad.net/py3exiv2
 Author: Vincent Vande Vyvre
@@ -45,3 +45,4 @@
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py3exiv2-0.7.1/src/pyexiv2/__init__.py 
new/py3exiv2-0.8.0/src/pyexiv2/__init__.py
--- old/py3exiv2-0.7.1/src/pyexiv2/__init__.py  2019-05-28 10:17:32.000000000 
+0200
+++ new/py3exiv2-0.8.0/src/pyexiv2/__init__.py  2020-09-28 11:36:38.000000000 
+0200
@@ -3,7 +3,7 @@
 # 
******************************************************************************
 #
 # Copyright (C) 2006-2011 Olivier Tilloy <oliv...@tilloy.net>
-# Copyright (C) 2015-2019 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
+# Copyright (C) 2015-2020 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, 7, 1)
+version_info = (0, 8, 0)
 
 #: 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.7.1/src/pyexiv2/exif.py 
new/py3exiv2-0.8.0/src/pyexiv2/exif.py
--- old/py3exiv2-0.7.1/src/pyexiv2/exif.py      2019-01-30 08:40:36.000000000 
+0100
+++ new/py3exiv2-0.8.0/src/pyexiv2/exif.py      2020-09-08 08:52:39.000000000 
+0200
@@ -3,7 +3,7 @@
 # 
******************************************************************************
 #
 # Copyright (C) 2006-2011 Olivier Tilloy <oliv...@tilloy.net>
-# Copyright (C) 2015-2019 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
+# Copyright (C) 2015-2020 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.7.1/src/pyexiv2/iptc.py 
new/py3exiv2-0.8.0/src/pyexiv2/iptc.py
--- old/py3exiv2-0.7.1/src/pyexiv2/iptc.py      2019-01-30 08:40:55.000000000 
+0100
+++ new/py3exiv2-0.8.0/src/pyexiv2/iptc.py      2020-09-08 08:52:39.000000000 
+0200
@@ -3,7 +3,7 @@
 # 
******************************************************************************
 #
 # Copyright (C) 2006-2011 Olivier Tilloy <oliv...@tilloy.net>
-# Copyright (C) 2015-2019 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
+# Copyright (C) 2015-2020 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.7.1/src/pyexiv2/metadata.py 
new/py3exiv2-0.8.0/src/pyexiv2/metadata.py
--- old/py3exiv2-0.7.1/src/pyexiv2/metadata.py  2019-01-30 08:41:11.000000000 
+0100
+++ new/py3exiv2-0.8.0/src/pyexiv2/metadata.py  2020-09-08 08:52:39.000000000 
+0200
@@ -3,7 +3,7 @@
 # 
******************************************************************************
 #
 # Copyright (C) 2006-2011 Olivier Tilloy <oliv...@tilloy.net>
-# Copyright (C) 2015-2019 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
+# Copyright (C) 2015-2020 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.7.1/src/pyexiv2/preview.py 
new/py3exiv2-0.8.0/src/pyexiv2/preview.py
--- old/py3exiv2-0.7.1/src/pyexiv2/preview.py   2019-02-05 09:44:54.000000000 
+0100
+++ new/py3exiv2-0.8.0/src/pyexiv2/preview.py   2020-09-08 08:52:39.000000000 
+0200
@@ -3,7 +3,7 @@
 # 
******************************************************************************
 #
 # Copyright (C) 2010 Olivier Tilloy <oliv...@tilloy.net>
-# Copyright (C) 2015-2019 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
+# Copyright (C) 2015-2020 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.7.1/src/pyexiv2/utils.py 
new/py3exiv2-0.8.0/src/pyexiv2/utils.py
--- old/py3exiv2-0.7.1/src/pyexiv2/utils.py     2019-01-30 08:42:17.000000000 
+0100
+++ new/py3exiv2-0.8.0/src/pyexiv2/utils.py     2020-09-08 08:52:39.000000000 
+0200
@@ -3,7 +3,7 @@
 # 
******************************************************************************
 #
 # Copyright (C) 2006-2012 Olivier Tilloy <oliv...@tilloy.net>
-# Copyright (C) 2015-2019 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
+# Copyright (C) 2015-2020 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.7.1/src/pyexiv2/xmp.py 
new/py3exiv2-0.8.0/src/pyexiv2/xmp.py
--- old/py3exiv2-0.7.1/src/pyexiv2/xmp.py       2019-04-25 06:07:43.000000000 
+0200
+++ new/py3exiv2-0.8.0/src/pyexiv2/xmp.py       2020-09-25 11:15:23.000000000 
+0200
@@ -3,7 +3,7 @@
 # 
******************************************************************************
 #
 # Copyright (C) 2006-2011 Olivier Tilloy <oliv...@tilloy.net>
-# Copyright (C) 2015-2019 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
+# Copyright (C) 2015-2020 Vincent Vande Vyvre <vincent.vandevy...@oqapy.eu>
 #
 # This file is part of the py3exiv2 distribution.
 #
@@ -49,7 +49,7 @@
     """
     def __init__(self, value, type_):
         self.value = value
-        self.type = type
+        self.type = type_
 
     def __str__(self):
         return 'Invalid value for XMP type [%s]: [%s]' % \
@@ -84,7 +84,7 @@
 
     # strptime is not flexible enough to handle all valid Date formats, we use 
a
     # custom regular expression
-    _time_zone_re = r'Z|((?P<sign>\+|-)(?P<ohours>\d{2}):(?P<ominutes>\d{2}))'
+    _time_zone_re = 
r'$|Z|((?P<sign>\+|-)(?P<ohours>\d{2}):(?P<ominutes>\d{2}))'
     _time_re = 
r'(?P<hours>\d{2})(:(?P<minutes>\d{2})(:(?P<seconds>\d{2})(.(?P<decimal>\d+))?)?(?P<tzd>%s))?'
 % _time_zone_re
     _date_re = 
re.compile(r'(?P<year>\d{4})(-(?P<month>\d{2})(-(?P<day>\d{2})(T(?P<time>%s))?)?)?'
 % _time_re)
 
@@ -95,6 +95,7 @@
         Args:
         key -- the key of the tag
         value -- the value of the tag
+        _tag -- an existing tag
         """
         super(XmpTag, self).__init__()
         if _tag is not None:
@@ -205,7 +206,8 @@
             if type_.lower().startswith('closed choice of'):
                 type_ = type[17:]
 
-            self._value = [self._convert_to_python(v, type_) for v in 
self._raw_value]
+            self._value = [self._convert_to_python(v, type_) 
+                           for v in self._raw_value]
 
         elif self.type == 'Lang Alt':
             self._value = {}
@@ -216,7 +218,8 @@
                     raise XmpValueError(self._raw_value, self.type)
 
         elif self.type.lower().startswith('closed choice of'):
-            self._value = self._convert_to_python(self._raw_value, 
self.type[17:])
+            self._value = self._convert_to_python(self._raw_value, 
+                                                  self.type[17:])
 
         elif self.type == '':
             self._value = self._raw_value
@@ -246,6 +249,10 @@
             stype = self.type[4:]
             if stype.lower().startswith('closed choice of'):
                 stype = stype[17:]
+
+            elif stype.endswith("Detail"):
+                stype = "Text"
+
             self.raw_value = [self._convert_to_string(v, stype) for v in value]
 
         elif type_ == 'LangAlt':
@@ -253,7 +260,8 @@
                 value = {'x-default': value}
 
             if not isinstance(value, dict):
-                raise TypeError('Expecting a dictionary mapping language codes 
to values')
+                raise TypeError('Expecting a dictionary mapping language '\
+                                'codes to values')
 
             raw_value = {}
             for k, v in value.items():
@@ -299,6 +307,14 @@
             raise NotImplementedError('XMP conversion for type [%s]' % type_)
 
         elif type_ == 'Date':
+            try:
+                v = value.replace("Z", "")
+                # New in Python-3.7
+                # FIXME this break unitest, maybe add a FixedOffset() ...
+                return datetime.datetime.fromisoformat(v)
+            except:
+                pass
+
             match = self._date_re.match(value)
             if match is None:
                 raise XmpValueError(value, type_)

++++++ py3exiv2-link-boost.patch ++++++
Index: py3exiv2-0.8.0/setup.py
===================================================================
--- py3exiv2-0.8.0.orig/setup.py        2020-09-29 18:30:38.000000000 +0200
+++ py3exiv2-0.8.0/setup.py     2020-10-20 08:52:35.836907091 +0200
@@ -37,7 +37,7 @@ if platform.system() == "Darwin":
     boostlib = get_libboost_osx()
 
 else:
-    python_version = str(sys.version_info.major) + str(sys.version_info.minor)
+    python_version = str(sys.version_info.major)
     boostlib = 'boost_python' + python_version
 
 setup(

Reply via email to