Hello community,

here is the log from the commit of package python-reportlab for 
openSUSE:Factory checked in at 2020-08-01 12:29:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-reportlab (Old)
 and      /work/SRC/openSUSE:Factory/.python-reportlab.new.3592 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-reportlab"

Sat Aug  1 12:29:57 2020 rev:26 rq:822235 version:3.5.46

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-reportlab/python-reportlab.changes        
2020-07-17 20:46:43.784660048 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-reportlab.new.3592/python-reportlab.changes  
    2020-08-01 12:30:16.490406075 +0200
@@ -1,0 +2,11 @@
+Wed Jul 22 10:14:37 UTC 2020 - Michael Ströder <mich...@stroeder.com>
+
+- Update to 3.5.46
+  * micro changes to normalDate
+  * fix warnings about is not (detected in python 3.8b4)
+  * implement PR #59 bug fix
+  * add recursive ttf searching
+  * sync with rlextra
+  * fix Barchart axis crossing issue
+
+-------------------------------------------------------------------

Old:
----
  reportlab-3.5.44.tar.gz

New:
----
  reportlab-3.5.46.tar.gz

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

Other differences:
------------------
++++++ python-reportlab.spec ++++++
--- /var/tmp/diff_new_pack.Q6vk9M/_old  2020-08-01 12:30:19.238408648 +0200
+++ /var/tmp/diff_new_pack.Q6vk9M/_new  2020-08-01 12:30:19.238408648 +0200
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define oldpython python
 Name:           python-reportlab
-Version:        3.5.44
+Version:        3.5.46
 Release:        0
 Summary:        The Reportlab Toolkit
 License:        BSD-3-Clause


++++++ reportlab-3.5.44.tar.gz -> reportlab-3.5.46.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/reportlab-3.5.44/CHANGES.md 
new/reportlab-3.5.46/CHANGES.md
--- old/reportlab-3.5.44/CHANGES.md     2020-06-03 11:03:01.000000000 +0200
+++ new/reportlab-3.5.46/CHANGES.md     2020-07-22 09:53:33.000000000 +0200
@@ -11,8 +11,22 @@
 The contributors lists are in no order and apologies to those accidentally not
 mentioned. If we missed you, please let us know!
 
+RELEASE 3.5.46  22/07/2020
+---------------------------
+       * fix style-data mismatch in LinePlot found by Anshika Sahay
+
+RELEASE 3.5.45  10/07/2020
+---------------------------
+       * fix some documentation bugs reported by Lele Gaifax
+       * fix error in BarChart axes joining reported by Faisal.Fareed
+
+RELEASE 3.5.44  26/06/2020
+---------------------------
+       * ensure qr bar colour is passed (contrib by Lele Gaifax)
+       * fix img layout bug (reported by Lele Gaifax) 
+
 RELEASE 3.5.43  03/06/2020
---------------------------
+---------------------------
        * small change to improve strokeDashArray handling to allow [phase, 
[values]] and allow stroke-dashoffset
        * Hatching class which inherits from shapes.Path
        * add support for soft hyphens u'\xad'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/reportlab-3.5.44/PKG-INFO 
new/reportlab-3.5.46/PKG-INFO
--- old/reportlab-3.5.44/PKG-INFO       2020-06-26 19:08:22.000000000 +0200
+++ new/reportlab-3.5.46/PKG-INFO       2020-07-22 09:54:00.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: reportlab
-Version: 3.5.44
+Version: 3.5.46
 Summary: The Reportlab Toolkit
 Home-page: http://www.reportlab.com/
 Author: Andy Robinson, Robin Becker, the ReportLab team and the community
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/reportlab-3.5.44/docs/userguide/ch5_paragraphs.py 
new/reportlab-3.5.46/docs/userguide/ch5_paragraphs.py
--- old/reportlab-3.5.44/docs/userguide/ch5_paragraphs.py       2019-10-01 
17:38:11.000000000 +0200
+++ new/reportlab-3.5.46/docs/userguide/ch5_paragraphs.py       2020-07-20 
09:39:52.000000000 +0200
@@ -185,7 +185,7 @@
 colour can be set with $backColor$. The paragraph's border properties may be 
changed using
 $borderWidth$, $borderPadding$, $borderColor$ and $borderRadius$.""")
 
-disc("""The $textTransform$ attribute can be <b><i>None</i></b>, 
<i>'upper'</i> or <i>'lower'</i> to get the obvious result.""")
+disc("""The $textTransform$ attribute can be <b><i>None</i></b>, 
<i>'uppercase'</i> or <i>'lowercase'</i> to get the obvious result and 
<i>'capitalize'</i> to get initial letter capitalization.""")
 disc("""Attribute $endDots$ can be <b><i>None</i></b>, a string, or an object 
with attributes text and optional fontName, fontSize, textColor,  backColor
 and dy(y offset) to specify trailing matter on the last line of left/right 
justified paragraphs.""")
 disc("""The $splitLongWords$ attribute can be set to a false value to avoid 
splitting very long words.""")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/reportlab-3.5.44/src/reportlab/__init__.py 
new/reportlab-3.5.46/src/reportlab/__init__.py
--- old/reportlab-3.5.44/src/reportlab/__init__.py      2020-06-26 
19:07:54.000000000 +0200
+++ new/reportlab-3.5.46/src/reportlab/__init__.py      2020-07-22 
09:53:33.000000000 +0200
@@ -1,9 +1,9 @@
 #Copyright ReportLab Europe Ltd. 2000-2018
 #see license.txt for license details
 __doc__="""The Reportlab PDF generation library."""
-Version = "3.5.44"
+Version = "3.5.46"
 __version__=Version
-__date__='20200626'
+__date__='20200722'
 
 import sys, os
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/reportlab-3.5.44/src/reportlab/graphics/charts/barcharts.py 
new/reportlab-3.5.46/src/reportlab/graphics/charts/barcharts.py
--- old/reportlab-3.5.44/src/reportlab/graphics/charts/barcharts.py     
2020-02-28 13:52:10.000000000 +0100
+++ new/reportlab-3.5.46/src/reportlab/graphics/charts/barcharts.py     
2020-07-20 09:39:52.000000000 +0200
@@ -230,15 +230,9 @@
         self._getConfigureData()
         vA.configure(self._configureData)
 
-        # if zero is in chart, put the other axis there, otherwise use low
+        # if zero is in chart, put the other axis there, otherwise use org
         crossesAt = vA.scale(0)
-        if not vA.forceZero:
-            eps = min(1,1.001*abs(length))
-            end = org+length
-            org, end = min(org,end)-eps, max(org,end)+eps
-            if crossesAt>eps or crossesAt<end:
-                crossesAt = org
-        return crossesAt
+        return crossesAt if vA.forceZero or (crossesAt>=org and 
crossesAt<=org+length) else org
 
     def _drawFinish(self):
         '''finalize the drawing of a barchart'''
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/reportlab-3.5.44/src/reportlab/graphics/charts/lineplots.py 
new/reportlab-3.5.46/src/reportlab/graphics/charts/lineplots.py
--- old/reportlab-3.5.44/src/reportlab/graphics/charts/lineplots.py     
2019-10-15 12:46:59.000000000 +0200
+++ new/reportlab-3.5.46/src/reportlab/graphics/charts/lineplots.py     
2020-07-22 09:53:33.000000000 +0200
@@ -207,8 +207,7 @@
                 if 0<=other<n:
                     if other==rowNo:
                         raise ValueError('data row %r may not be paired with 
itself' % rowNo)
-                    t = (rowNo,other)
-                    pairs.add((min(t),max(t)))
+                    pairs.add((rowNo,other))
                 else:
                     raise ValueError('data row %r is paired with invalid data 
row %r' % (rowNo, other))
             line = [].append
@@ -297,7 +296,10 @@
             inFillG = getattr(self,'_inFillG',g)
         lG = getattr(self,'_lineG',g)
         # Iterate over data rows.
-        for rowNo, row in enumerate(reversed(P) if self.reversePlotOrder else 
P):
+        R = range(len(P))
+        if self.reversePlotOrder: R = reversed(R)
+        for rowNo in R:
+            row = P[rowNo]
             styleRowNo = rowNo % styleCount
             rowStyle = lines[styleRowNo]
             strokeColor = getattr(rowStyle,'strokeColor',None)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/reportlab-3.5.44/src/reportlab/platypus/paragraph.py 
new/reportlab-3.5.46/src/reportlab/platypus/paragraph.py
--- old/reportlab-3.5.44/src/reportlab/platypus/paragraph.py    2020-06-26 
19:07:54.000000000 +0200
+++ new/reportlab-3.5.46/src/reportlab/platypus/paragraph.py    2020-07-20 
09:39:52.000000000 +0200
@@ -19,6 +19,7 @@
 from reportlab.lib.enums import TA_LEFT, TA_RIGHT, TA_CENTER, TA_JUSTIFY
 from reportlab.lib.geomutils import normalizeTRBL
 from reportlab.lib.textsplit import wordSplit, ALL_CANNOT_START
+from reportlab.lib.styles import ParagraphStyle
 from copy import deepcopy
 from reportlab.lib.abag import ABag
 from reportlab.rl_config import platypus_link_underline, decimalSymbol, _FUZZ,\
@@ -1759,7 +1760,9 @@
 
         It will also be able to handle any MathML specified Greek characters.
     """
-    def __init__(self, text, style, bulletText = None, frags=None, 
caseSensitive=1, encoding='utf8'):
+    def __init__(self, text, style=None, bulletText = None, frags=None, 
caseSensitive=1, encoding='utf8'):
+        if style is None:
+            style = ParagraphStyle(name='paragraphImplicitDefaultStyle')
         self.caseSensitive = caseSensitive
         self.encoding = encoding
         self._setup(text, style, bulletText or 
getattr(style,'bulletText',None), frags, cleanBlockQuotedText)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/reportlab-3.5.44/src/reportlab/platypus/paraparser.py 
new/reportlab-3.5.46/src/reportlab/platypus/paraparser.py
--- old/reportlab-3.5.44/src/reportlab/platypus/paraparser.py   2019-10-19 
10:14:30.000000000 +0200
+++ new/reportlab-3.5.46/src/reportlab/platypus/paraparser.py   2020-07-20 
09:39:52.000000000 +0200
@@ -205,7 +205,7 @@
     s = s.lower().strip()
     if not s: return None
     if s not in ('uppercase','lowercase','capitalize','none'):
-        raise ValueError('cannot convert wordWrap=%r' % s)
+        raise ValueError('cannot convert textTransform=%r' % s)
     return s
 
 _paraAttrMap = {'font': ('fontName', None),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/reportlab-3.5.44/src/reportlab.egg-info/PKG-INFO 
new/reportlab-3.5.46/src/reportlab.egg-info/PKG-INFO
--- old/reportlab-3.5.44/src/reportlab.egg-info/PKG-INFO        2020-06-26 
19:08:22.000000000 +0200
+++ new/reportlab-3.5.46/src/reportlab.egg-info/PKG-INFO        2020-07-22 
09:53:59.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: reportlab
-Version: 3.5.44
+Version: 3.5.46
 Summary: The Reportlab Toolkit
 Home-page: http://www.reportlab.com/
 Author: Andy Robinson, Robin Becker, the ReportLab team and the community
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/reportlab-3.5.44/src/rl_addons/renderPM/_renderPM.c 
new/reportlab-3.5.46/src/rl_addons/renderPM/_renderPM.c
--- old/reportlab-3.5.44/src/rl_addons/renderPM/_renderPM.c     2019-10-01 
17:38:11.000000000 +0200
+++ new/reportlab-3.5.46/src/rl_addons/renderPM/_renderPM.c     2020-07-20 
09:39:52.000000000 +0200
@@ -21,7 +21,7 @@
 #endif
 
 
-#define VERSION "3.02"
+#define VERSION "3.03"
 #define MODULENAME "_renderPM"
 #ifdef isPy3
 #      define PyInt_FromLong   PyLong_FromLong
@@ -72,6 +72,7 @@
 #      define PyObject_DEL(op) PyMem_DEL((op))
 #endif
 
+#define VECSP 0.25
 
 typedef struct {
   int format;
@@ -616,7 +617,7 @@
        if(!PyArg_ParseTuple(args,"|i:clipPathSet",&fillMode)) return NULL;
        gstate_pathEnd(self);
        dump_path(self);
-       vpath = art_bez_path_to_vec(self->path, 0.25);
+       vpath = art_bez_path_to_vec(self->path, VECSP);
        dump_vpath("after -->vec",vpath);
        trVpath = art_vpath_affine_transform (vpath, self->ctm);
        _vpath_area(trVpath);
@@ -639,7 +640,7 @@
                double          a;
                if(endIt) gstate_pathEnd(self);
                dump_path(self);
-               vpath = art_bez_path_to_vec(self->path, 0.25);
+               vpath = art_bez_path_to_vec(self->path, VECSP);
                if(0 && vpReverse) _vpath_reverse(vpath);
                trVpath =  art_vpath_affine_transform(vpath, self->ctm);
                a = _vpath_area(trVpath);
@@ -708,7 +709,7 @@
        if(self->strokeColor.valid && self->strokeWidth>0){
                gstate_pathEnd(self);
                dump_path(self);
-               vpath = art_bez_path_to_vec(self->path, 0.25);
+               vpath = art_bez_path_to_vec(self->path, VECSP);
 
                if(self->dash.dash){
                        ArtVpath*       tvpath=vpath;
@@ -1024,7 +1025,7 @@
        int                     i;
 
        gstate_pathEnd(self);
-       v = vpath = art_bez_path_to_vec(self->path, 0.25);
+       v = vpath = art_bez_path_to_vec(self->path, VECSP);
        while(v->code!=ART_END) v++;
        P = PyTuple_New(v-vpath);
        i = 0;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/reportlab-3.5.44/tests/test_paragraphs.py 
new/reportlab-3.5.46/tests/test_paragraphs.py
--- old/reportlab-3.5.44/tests/test_paragraphs.py       2020-01-14 
10:10:36.000000000 +0100
+++ new/reportlab-3.5.46/tests/test_paragraphs.py       2020-07-20 
09:39:52.000000000 +0200
@@ -271,6 +271,15 @@
             '''<span color="(lambda fc=(lambda n: [c for c in 
().__class__.__bases__[0].__subclasses__() if c.__name__ == n][0]): 
fc('function')(fc('code')(0,0,0,0,'KABOOM',(), 
(),(),'','',0,''),{})())()">AAA</span>''',styNormal)
         #w, h = p.wrap(5*72,7*72)
         #p.drawOn(canv,36,6.5*72)
+
+    def testSomeParaAttrs(self):
+        self.assertTrue(Paragraph('<para texttransform="">aaaaa</para>'))
+        self.assertTrue(Paragraph('<para 
texttransform="uppercase">aaaaa</para>'))
+        self.assertTrue(Paragraph('<para 
texttransform="lowercase">AAAAA</para>'))
+        self.assertTrue(Paragraph('<para 
texttransform="capitalize">aaaaa</para>'))
+        self.assertRaises(ValueError,Paragraph,'<para 
texttransform="upper">aaaaa</para>')
+        self.assertRaises(ValueError,Paragraph,'<para 
texttransform="lower">AAAAA</para>')
+        self.assertRaises(ValueError,Paragraph,'<para 
texttransform="capitalise">aaaaa</para>')
     
     if rtlSupport:
         def testBidi(self):


Reply via email to