Hello community, here is the log from the commit of package python-relatorio for openSUSE:Factory checked in at 2017-10-21 20:21:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-relatorio (Old) and /work/SRC/openSUSE:Factory/.python-relatorio.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-relatorio" Sat Oct 21 20:21:35 2017 rev:4 rq:535484 version:0.7.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-relatorio/python-relatorio.changes 2017-08-02 11:27:54.172428201 +0200 +++ /work/SRC/openSUSE:Factory/.python-relatorio.new/python-relatorio.changes 2017-10-21 20:21:36.491471356 +0200 @@ -1,0 +2,8 @@ +Fri Oct 20 06:26:54 UTC 2017 - [email protected] + +- Version 0.7.1 - Bugfix release + * Remove warning when import plugin fails + * Apply the guess type function on the correct node + * Fix guess_type for date and datetime + +------------------------------------------------------------------- Old: ---- relatorio-0.7.0.tar.gz New: ---- relatorio-0.7.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-relatorio.spec ++++++ --- /var/tmp/diff_new_pack.Fe5CrE/_old 2017-10-21 20:21:38.519376394 +0200 +++ /var/tmp/diff_new_pack.Fe5CrE/_new 2017-10-21 20:21:38.523376207 +0200 @@ -2,7 +2,7 @@ # spec file for package python-relatorio # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. -# Copyright (c) 2016 Dr. Axel Braun +# Copyright (c) 2016-2017 Dr. Axel Braun # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,7 +21,7 @@ %define mod_name relatorio Name: python-relatorio -Version: 0.7.0 +Version: 0.7.1 Release: 0 Summary: Python module to create reports from Python objects License: GPL-3.0+ ++++++ relatorio-0.7.0.tar.gz -> relatorio-0.7.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/relatorio-0.7.0/CHANGES new/relatorio-0.7.1/CHANGES --- old/relatorio-0.7.0/CHANGES 2017-07-29 18:57:56.000000000 +0200 +++ new/relatorio-0.7.1/CHANGES 2017-10-08 17:40:18.000000000 +0200 @@ -1,3 +1,8 @@ +0.7.1 - 20171008 +* Remove warning when import plugin fails +* Apply the guess type function on the correct node +* Fix guess_type for date and datetime + 0.7.0 - 20170729 * Replace hard-coded extensions by mimetypes guess * Add more guess types: 'boolean', 'date', 'time' and 'void' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/relatorio-0.7.0/PKG-INFO new/relatorio-0.7.1/PKG-INFO --- old/relatorio-0.7.0/PKG-INFO 2017-07-29 19:00:04.000000000 +0200 +++ new/relatorio-0.7.1/PKG-INFO 2017-10-08 17:48:35.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: relatorio -Version: 0.7.0 +Version: 0.7.1 Summary: A templating library able to output odt and pdf files Home-page: http://relatorio.tryton.org/ Author: Cedric Krier diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/relatorio-0.7.0/doc/conf.py new/relatorio-0.7.1/doc/conf.py --- old/relatorio-0.7.0/doc/conf.py 2017-07-13 17:27:10.000000000 +0200 +++ new/relatorio-0.7.1/doc/conf.py 2017-07-29 19:01:46.000000000 +0200 @@ -50,7 +50,7 @@ # The short X.Y version. version = '0.7' # The full version, including alpha/beta/rc tags. -release = '0.7.0' +release = '0.7.1' # 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.7.0/relatorio/__init__.py new/relatorio-0.7.1/relatorio/__init__.py --- old/relatorio-0.7.0/relatorio/__init__.py 2017-07-13 17:27:10.000000000 +0200 +++ new/relatorio-0.7.1/relatorio/__init__.py 2017-07-29 19:01:12.000000000 +0200 @@ -12,5 +12,5 @@ from .reporting import MIMETemplateLoader, ReportRepository, Report from . import templates -__version__ = '0.7.0' +__version__ = '0.7.1' __all__ = ['MIMETemplateLoader', 'ReportRepository', 'Report', 'templates'] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/relatorio-0.7.0/relatorio/reporting.py new/relatorio-0.7.1/relatorio/reporting.py --- old/relatorio-0.7.0/relatorio/reporting.py 2017-06-15 22:31:45.000000000 +0200 +++ new/relatorio-0.7.1/relatorio/reporting.py 2017-10-04 22:47:19.000000000 +0200 @@ -18,13 +18,13 @@ # ############################################################################### -__metaclass__ = type - import os import sys from genshi.template import TemplateLoader +__metaclass__ = type + def _absolute(path): "Compute the absolute path of path relative to the caller file" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/relatorio-0.7.0/relatorio/templates/__init__.py new/relatorio-0.7.1/relatorio/templates/__init__.py --- old/relatorio-0.7.0/relatorio/templates/__init__.py 2014-07-16 17:06:04.000000000 +0200 +++ new/relatorio-0.7.1/relatorio/templates/__init__.py 2017-09-21 19:06:03.000000000 +0200 @@ -18,12 +18,7 @@ # ############################################################################### -import warnings - plugins = ['base', 'opendocument', 'pdf', 'chart'] for name in plugins: - try: - __import__('relatorio.templates.%s' % name) - except ImportError: - warnings.warn("Unable to load plugin '%s'" % name) + __import__('relatorio.templates.%s' % name) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/relatorio-0.7.0/relatorio/templates/base.py new/relatorio-0.7.1/relatorio/templates/base.py --- old/relatorio-0.7.0/relatorio/templates/base.py 2015-12-16 11:45:37.000000000 +0100 +++ new/relatorio-0.7.1/relatorio/templates/base.py 2017-10-04 22:47:35.000000000 +0200 @@ -18,13 +18,13 @@ # ############################################################################### -__metaclass__ = type - import genshi.core from genshi.template import NewTextTemplate, MarkupTemplate from relatorio.reporting import MIMETemplateLoader +__metaclass__ = type + class RelatorioStream(genshi.core.Stream): "Base class for the relatorio streams." diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/relatorio-0.7.0/relatorio/templates/chart.py new/relatorio-0.7.1/relatorio/templates/chart.py --- old/relatorio-0.7.0/relatorio/templates/chart.py 2016-11-01 22:18:17.000000000 +0100 +++ new/relatorio-0.7.1/relatorio/templates/chart.py 2017-10-04 22:54:30.000000000 +0200 @@ -19,11 +19,8 @@ # ############################################################################### -__metaclass__ = type - from io import BytesIO, StringIO -import yaml import genshi import genshi.output from genshi.template import NewTextTemplate @@ -31,19 +28,26 @@ from relatorio.templates.base import RelatorioStream from relatorio.reporting import MIMETemplateLoader -import cairo -import pycha -import pycha.pie -import pycha.line -import pycha.bar - -PYCHA_TYPE = {'pie': pycha.pie.PieChart, - 'vbar': pycha.bar.VerticalBarChart, - 'hbar': pycha.bar.HorizontalBarChart, - 'line': pycha.line.LineChart, - } +try: + import yaml + import cairo + import pycha + import pycha.pie + import pycha.line + import pycha.bar + + PYCHA_TYPE = {'pie': pycha.pie.PieChart, + 'vbar': pycha.bar.VerticalBarChart, + 'hbar': pycha.bar.HorizontalBarChart, + 'line': pycha.line.LineChart, + } +except ImportError: + yaml = cairo = None + PYCHA_TYPE = {} _encode = genshi.output.encode +__metaclass__ = type + class Template(NewTextTemplate): "A chart templating object" @@ -65,6 +69,8 @@ self.text_serializer = genshi.output.TextSerializer() def __call__(self, stream): + if not PYCHA_TYPE: + raise NotImplementedError result = BytesIO() yml = StringIO(_encode(self.text_serializer(stream))) chart_yaml = yaml.load(yml.read()) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/relatorio-0.7.0/relatorio/templates/opendocument.py new/relatorio-0.7.1/relatorio/templates/opendocument.py --- old/relatorio-0.7.0/relatorio/templates/opendocument.py 2017-07-13 17:32:06.000000000 +0200 +++ new/relatorio-0.7.1/relatorio/templates/opendocument.py 2017-10-08 17:38:46.000000000 +0200 @@ -19,8 +19,6 @@ # ############################################################################### -__metaclass__ = type - import re try: # requires python 2.5+ @@ -40,7 +38,6 @@ import warnings -warnings.filterwarnings('always', module='relatorio.templates.opendocument') import lxml.etree import genshi @@ -59,6 +56,9 @@ except ImportError: ChartTemplate = type(None) +__metaclass__ = type +warnings.filterwarnings('always', module='relatorio.templates.opendocument') + GENSHI_EXPR = re.compile(r''' (/)? # is this a closing tag? (for|if|choose|when|otherwise|with| @@ -490,7 +490,7 @@ # correct value and type for this cell. dico = ('__relatorio_guess_type(' '__relatorio_store_cache(%s, %s))') - update_py_attrs(parent, dico % (cache_id, expr)) + update_py_attrs(grand_parent, dico % (cache_id, expr)) def _handle_column_loops(self, statement, ancestor, opening, outer_o_node, outer_c_node): @@ -734,7 +734,7 @@ val = str(val).lower() elif isinstance(val, datetime.date): type_ = 'date' - val = val.date() + val = val.isoformat() elif isinstance(val, (int, float, long, Decimal)): type_ = 'float' elif isinstance(val, basestring): @@ -867,6 +867,7 @@ manifest.add_file_entry(fname, mime_type) odt_zip.writestr(MANIFEST, str(manifest)) odt_zip.writestr('mimetype', mimetype) + odt_zip.close() return odt_io diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/relatorio-0.7.0/relatorio/templates/pdf.py new/relatorio-0.7.1/relatorio/templates/pdf.py --- old/relatorio-0.7.0/relatorio/templates/pdf.py 2014-09-09 10:59:43.000000000 +0200 +++ new/relatorio-0.7.1/relatorio/templates/pdf.py 2017-10-04 22:48:10.000000000 +0200 @@ -19,8 +19,6 @@ # ############################################################################### -__metaclass__ = type - import os import shutil import tempfile @@ -34,6 +32,8 @@ from relatorio.templates.base import RelatorioStream from relatorio.reporting import MIMETemplateLoader +__metaclass__ = type + TEXEXEC = 'texexec' _encode = genshi.output.encode diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/relatorio-0.7.0/relatorio.egg-info/PKG-INFO new/relatorio-0.7.1/relatorio.egg-info/PKG-INFO --- old/relatorio-0.7.0/relatorio.egg-info/PKG-INFO 2017-07-29 19:00:00.000000000 +0200 +++ new/relatorio-0.7.1/relatorio.egg-info/PKG-INFO 2017-10-08 17:48:33.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: relatorio -Version: 0.7.0 +Version: 0.7.1 Summary: A templating library able to output odt and pdf files Home-page: http://relatorio.tryton.org/ Author: Cedric Krier
