Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-relatorio for 
openSUSE:Factory checked in at 2021-07-28 19:19:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-relatorio (Old)
 and      /work/SRC/openSUSE:Factory/.python-relatorio.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-relatorio"

Wed Jul 28 19:19:50 2021 rev:11 rq:908591 version:0.9.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-relatorio/python-relatorio.changes        
2021-01-04 19:10:35.215463139 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-relatorio.new.1899/python-relatorio.changes  
    2021-07-28 19:20:45.947578394 +0200
@@ -1,0 +2,7 @@
+Tue Jul 27 09:37:08 UTC 2021 - Axel Braun <[email protected]>
+
+- version 0.9.3 
+  * Support empty image in opendocument
+  * Add support for Python 3.9
+
+-------------------------------------------------------------------

Old:
----
  relatorio-0.9.2.tar.gz

New:
----
  relatorio-0.9.3.tar.gz

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

Other differences:
------------------
++++++ python-relatorio.spec ++++++
--- /var/tmp/diff_new_pack.cBebuo/_old  2021-07-28 19:20:46.423577770 +0200
+++ /var/tmp/diff_new_pack.cBebuo/_new  2021-07-28 19:20:46.423577770 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-relatorio
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
 # Copyright (c) 2016-2021 Dr. Axel Braun
 #
 # All modifications and additions to the file contributed by third parties
@@ -20,7 +20,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define         mod_name relatorio
 Name:           python-relatorio
-Version:        0.9.2
+Version:        0.9.3
 Release:        0
 Summary:        Python module to create reports from Python objects
 License:        GPL-3.0-or-later

++++++ relatorio-0.9.2.tar.gz -> relatorio-0.9.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/relatorio-0.9.2/.drone.yml 
new/relatorio-0.9.3/.drone.yml
--- old/relatorio-0.9.2/.drone.yml      2019-12-26 10:42:44.000000000 +0100
+++ new/relatorio-0.9.3/.drone.yml      2020-12-19 13:41:40.000000000 +0100
@@ -29,3 +29,5 @@
           TOXENV: py37
         - IMAGE: python:3.8
           TOXENV: py38
+        - IMAGE: python:3.9
+          TOXENV: py39
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/relatorio-0.9.2/.hgtags new/relatorio-0.9.3/.hgtags
--- old/relatorio-0.9.2/.hgtags 2020-08-06 09:09:30.000000000 +0200
+++ new/relatorio-0.9.3/.hgtags 2021-05-07 13:51:51.000000000 +0200
@@ -28,3 +28,4 @@
 a0cf6c5a86e3eaf125a96f942f64114b326dba3b 0.9.0
 34f63c525603ed1fe903703725a51d28cdfa622f 0.9.1
 9c0efe3507a42762e2128f9ad475f463da253c2b 0.9.2
+b190bcec6e4440fd4d21400bb1a6b01291448e41 0.9.3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/relatorio-0.9.2/CHANGELOG 
new/relatorio-0.9.3/CHANGELOG
--- old/relatorio-0.9.2/CHANGELOG       2020-08-06 09:09:14.000000000 +0200
+++ new/relatorio-0.9.3/CHANGELOG       2021-05-07 12:11:09.000000000 +0200
@@ -1,3 +1,7 @@
+0.9.3 - 20210507
+* Support empty image in opendocument
+* Add support for Python 3.9
+
 0.9.2 - 20200826
 * Support draw name tuple without parenthesis
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/relatorio-0.9.2/PKG-INFO new/relatorio-0.9.3/PKG-INFO
--- old/relatorio-0.9.2/PKG-INFO        2020-08-06 09:10:42.000000000 +0200
+++ new/relatorio-0.9.3/PKG-INFO        2021-05-07 13:52:49.767762200 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: relatorio
-Version: 0.9.2
+Version: 0.9.3
 Summary: A templating library able to output odt and pdf files
 Home-page: https://pypi.python.org/pypi/relatorio
 Author: Tryton
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/relatorio-0.9.2/doc/conf.py 
new/relatorio-0.9.3/doc/conf.py
--- old/relatorio-0.9.2/doc/conf.py     2020-03-01 00:37:03.000000000 +0100
+++ new/relatorio-0.9.3/doc/conf.py     2020-08-06 09:14:00.000000000 +0200
@@ -44,7 +44,7 @@
 # The short X.Y version.
 version = '0.9'
 # The full version, including alpha/beta/rc tags.
-release = '0.9.2'
+release = '0.9.3'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/relatorio-0.9.2/relatorio/__init__.py 
new/relatorio-0.9.3/relatorio/__init__.py
--- old/relatorio-0.9.2/relatorio/__init__.py   2020-01-26 11:04:42.000000000 
+0100
+++ new/relatorio-0.9.3/relatorio/__init__.py   2020-08-06 09:14:07.000000000 
+0200
@@ -12,5 +12,5 @@
 from .reporting import MIMETemplateLoader, ReportRepository, Report
 from . import templates
 
-__version__ = '0.9.2'
+__version__ = '0.9.3'
 __all__ = ['MIMETemplateLoader', 'ReportRepository', 'Report', 'templates']
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/relatorio-0.9.2/relatorio/templates/opendocument.py 
new/relatorio-0.9.3/relatorio/templates/opendocument.py
--- old/relatorio-0.9.2/relatorio/templates/opendocument.py     2020-07-01 
09:42:11.000000000 +0200
+++ new/relatorio-0.9.3/relatorio/templates/opendocument.py     2021-03-27 
12:52:33.000000000 +0100
@@ -55,7 +55,7 @@
 try:
     from relatorio.templates.chart import Template as ChartTemplate
 except ImportError:
-    ChartTemplate = type(None)
+    ChartTemplate = None
 
 try:
     basestring
@@ -132,15 +132,18 @@
         bitstream, mimetype = expr[:2]
         if isinstance(bitstream, Report):
             bitstream = bitstream(**self.context).render()
-        elif isinstance(bitstream, ChartTemplate):
+        elif ChartTemplate and isinstance(bitstream, ChartTemplate):
             bitstream = bitstream.generate(**self.context).render()
         elif not hasattr(bitstream, 'seek') or not hasattr(bitstream, 'read'):
             bitstream = BytesIO(bitstream)
-        bitstream.seek(0)
-        file_content = bitstream.read()
+        if bitstream:
+            bitstream.seek(0)
+            file_content = bitstream.read()
+        else:
+            file_content = b''
         name = md5(file_content).hexdigest()
         path = 'Pictures/%s%s' % (
-            name, mimetypes.guess_extension(mimetype))
+            name, mimetypes.guess_extension(mimetype or '') or '')
         self.serializer.add_file(path, file_content, mimetype)
         return {'{http://www.w3.org/1999/xlink}href': path}
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/relatorio-0.9.2/relatorio/tests/test_odt.py 
new/relatorio-0.9.3/relatorio/tests/test_odt.py
--- old/relatorio-0.9.2/relatorio/tests/test_odt.py     2020-07-01 
09:44:07.000000000 +0200
+++ new/relatorio-0.9.3/relatorio/tests/test_odt.py     2021-03-27 
12:57:46.000000000 +0100
@@ -79,14 +79,16 @@
                      'images': [(open(os.path.join(thisdir, 'one.jpg'), 'rb'),
                                  'image/jpeg', None, None, 'One'),
                                 (open(os.path.join(thisdir, 'two.png'), 'rb'),
-                                 'image/png', '2cm', '2.2cm', 'Two')],
+                                 'image/png', '2cm', '2.2cm', 'Two'),
+                                (None, None)],
                      'oeuf': open(os.path.join(thisdir, 'egg.jpg'), 'rb'),
                      'footer': u'We sell stuff'}
 
     def tearDown(self):
         self._source.close()
         for image in self.data['images']:
-            image[0].close()
+            if image[0]:
+                image[0].close()
         self.data['oeuf'].close()
 
     def test_init(self):
@@ -425,7 +427,7 @@
         tree = lxml.etree.parse(StringIO(rendered[25:styles_idx]))
         root = tree.getroot()
         images = root.xpath('//draw:frame', namespaces=self.oot.namespaces)
-        self.assertEqual(len(images), 4)
+        self.assertEqual(len(images), 5)
         self.assertFalse(
             images[0].get('{%s}name' % self.oot.namespaces['draw']))
         self.assertFalse(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/relatorio-0.9.2/relatorio.egg-info/PKG-INFO 
new/relatorio-0.9.3/relatorio.egg-info/PKG-INFO
--- old/relatorio-0.9.2/relatorio.egg-info/PKG-INFO     2020-08-06 
09:10:42.000000000 +0200
+++ new/relatorio-0.9.3/relatorio.egg-info/PKG-INFO     2021-05-07 
13:52:49.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: relatorio
-Version: 0.9.2
+Version: 0.9.3
 Summary: A templating library able to output odt and pdf files
 Home-page: https://pypi.python.org/pypi/relatorio
 Author: Tryton
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/relatorio-0.9.2/tox.ini new/relatorio-0.9.3/tox.ini
--- old/relatorio-0.9.2/tox.ini 2019-12-26 10:42:44.000000000 +0100
+++ new/relatorio-0.9.3/tox.ini 2020-12-19 13:41:50.000000000 +0100
@@ -4,7 +4,7 @@
 # and then run "tox" from this directory.
 
 [tox]
-envlist = py26, py27, py32, py33, py34, py35, py36, py37, py38, pypy
+envlist = py26, py27, py32, py33, py34, py35, py36, py37, py38, py39, pypy
 
 [testenv]
 commands = {envpython} setup.py test

Reply via email to