Hello community,
here is the log from the commit of package python-tesserocr for
openSUSE:Leap:15.2 checked in at 2020-03-27 16:44:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-tesserocr (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-tesserocr.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-tesserocr"
Fri Mar 27 16:44:57 2020 rev:12 rq:788702 version:2.5.1
Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-tesserocr/python-tesserocr.changes
2020-03-02 13:23:53.774462648 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-tesserocr.new.3160/python-tesserocr.changes
2020-03-27 16:47:23.695907619 +0100
@@ -1,0 +2,7 @@
+Thu Mar 26 10:39:41 UTC 2020 - [email protected]
+
+- version update to 2.5.1
+ * Fix order of linker arguments (#211)
+ * Fix memory leaks in GetComponentImages (#213)
+
+-------------------------------------------------------------------
Old:
----
tesserocr-2.5.0.tar.gz
New:
----
tesserocr-2.5.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-tesserocr.spec ++++++
--- /var/tmp/diff_new_pack.dK3IA6/_old 2020-03-27 16:47:25.767908836 +0100
+++ /var/tmp/diff_new_pack.dK3IA6/_new 2020-03-27 16:47:25.767908836 +0100
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-tesserocr
-Version: 2.5.0
+Version: 2.5.1
Release: 0
Summary: A Python wrapper around tesseract-ocr
License: MIT
@@ -63,7 +63,7 @@
%check
%python_exec setup.py develop --user
# test_LSTM_choices failure: https://github.com/sirfz/tesserocr/issues/214
-%python_exec -m pytest -v -k 'not test_LSTM_choices' tests
+%pytest -k 'not test_LSTM_choices'
%files %{python_files}
%license LICENSE
++++++ tesserocr-2.5.0.tar.gz -> tesserocr-2.5.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tesserocr-2.5.0/PKG-INFO new/tesserocr-2.5.1/PKG-INFO
--- old/tesserocr-2.5.0/PKG-INFO 2019-11-09 00:11:54.000000000 +0100
+++ new/tesserocr-2.5.1/PKG-INFO 2020-03-17 18:41:39.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: tesserocr
-Version: 2.5.0
+Version: 2.5.1
Summary: A simple, Pillow-friendly, Python wrapper around tesseract-ocr API
using Cython
Home-page: https://github.com/sirfz/tesserocr
Author: Fayez Zouheiry
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tesserocr-2.5.0/setup.py new/tesserocr-2.5.1/setup.py
--- old/tesserocr-2.5.0/setup.py 2019-11-08 23:49:38.000000000 +0100
+++ new/tesserocr-2.5.1/setup.py 2020-03-17 18:39:50.000000000 +0100
@@ -94,7 +94,9 @@
options = {'-L': 'library_dirs',
'-I': 'include_dirs',
'-l': 'libraries'}
- config = {}
+ config = {'library_dirs': [],
+ 'include_dirs': [],
+ 'libraries': []}
import itertools
for f in itertools.chain(flags, flags2):
try:
@@ -104,8 +106,7 @@
val = f[2:]
if opt == 'include_dirs' and psplit(val)[1].strip(os.sep) in
('leptonica', 'tesseract'):
val = dirname(val)
- config.setdefault(opt, set()).add(val)
- config = {k: list(v) for k, v in config.items()}
+ config[opt] += [val]
p = subprocess.Popen(['pkg-config', '--modversion', 'tesseract'],
stdout=subprocess.PIPE)
version, _ = p.communicate()
version = _read_string(version).strip()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tesserocr-2.5.0/tesserocr.egg-info/PKG-INFO
new/tesserocr-2.5.1/tesserocr.egg-info/PKG-INFO
--- old/tesserocr-2.5.0/tesserocr.egg-info/PKG-INFO 2019-11-09
00:11:54.000000000 +0100
+++ new/tesserocr-2.5.1/tesserocr.egg-info/PKG-INFO 2020-03-17
18:41:35.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: tesserocr
-Version: 2.5.0
+Version: 2.5.1
Summary: A simple, Pillow-friendly, Python wrapper around tesseract-ocr API
using Cython
Home-page: https://github.com/sirfz/tesserocr
Author: Fayez Zouheiry
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tesserocr-2.5.0/tesserocr.pyx
new/tesserocr-2.5.1/tesserocr.pyx
--- old/tesserocr-2.5.0/tesserocr.pyx 2019-11-08 23:49:38.000000000 +0100
+++ new/tesserocr-2.5.1/tesserocr.pyx 2020-03-17 18:40:03.000000000 +0100
@@ -18,7 +18,7 @@
['eng', 'osd', 'equ'])
"""
-__version__ = '2.5.0'
+__version__ = '2.5.1'
import os
from io import BytesIO
@@ -1860,14 +1860,16 @@
cdef:
Boxa *boxa
Pixa *pixa
- int *_blockids
- int *_paraids
+ int *_blockids = NULL
+ int *_paraids = NULL
+ int **blockids_addr = &_blockids
+ int **paraids_addr = &_paraids
if not blockids:
- _blockids = NULL
+ blockids_addr = NULL
if not paraids:
- _paraids = NULL
+ paraids_addr = NULL
boxa = self._baseapi.GetComponentImages(level, text_only, raw_image,
raw_padding,
- &pixa, &_blockids, &_paraids)
+ &pixa, blockids_addr,
paraids_addr)
if boxa == NULL:
# no components found
return []