commit python-tesserocr for openSUSE:Factory

2020-03-26 Thread root
Hello community,

here is the log from the commit of package python-tesserocr for 
openSUSE:Factory checked in at 2020-03-26 23:34:21

Comparing /work/SRC/openSUSE:Factory/python-tesserocr (Old)
 and  /work/SRC/openSUSE:Factory/.python-tesserocr.new.3160 (New)


Package is "python-tesserocr"

Thu Mar 26 23:34:21 2020 rev:10 rq:788507 version:2.5.1

Changes:

--- /work/SRC/openSUSE:Factory/python-tesserocr/python-tesserocr.changes
2020-01-13 22:23:19.882568518 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-tesserocr.new.3160/python-tesserocr.changes  
2020-03-26 23:35:05.210814312 +0100
@@ -1,0 +2,7 @@
+Thu Mar 26 10:39:41 UTC 2020 - pgaj...@suse.com
+
+- 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.f1XXrD/_old  2020-03-26 23:35:06.434814754 +0100
+++ /var/tmp/diff_new_pack.f1XXrD/_new  2020-03-26 23:35:06.438814756 +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-INFO2019-11-09 00:11:54.0 +0100
+++ new/tesserocr-2.5.1/PKG-INFO2020-03-17 18:41:39.0 +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.py2019-11-08 23:49:38.0 +0100
+++ new/tesserocr-2.5.1/setup.py2020-03-17 18:39:50.0 +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.0 +0100
+++ new/tesserocr-2.5.1/tesserocr.egg-info/PKG-INFO 2020-03-17 
18:41:35.0 +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.0 +0100
+++ new/tesserocr-2.5.1/tesserocr.pyx   2020-03-17 18:40:03.0 +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
+

commit python-tesserocr for openSUSE:Factory

2020-01-13 Thread root
Hello community,

here is the log from the commit of package python-tesserocr for 
openSUSE:Factory checked in at 2020-01-13 22:23:17

Comparing /work/SRC/openSUSE:Factory/python-tesserocr (Old)
 and  /work/SRC/openSUSE:Factory/.python-tesserocr.new.6675 (New)


Package is "python-tesserocr"

Mon Jan 13 22:23:17 2020 rev:9 rq:764108 version:2.5.0

Changes:

--- /work/SRC/openSUSE:Factory/python-tesserocr/python-tesserocr.changes
2019-12-03 15:21:50.130521845 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-tesserocr.new.6675/python-tesserocr.changes  
2020-01-13 22:23:19.882568518 +0100
@@ -1,0 +2,6 @@
+Mon Jan 13 17:25:21 UTC 2020 - pgaj...@suse.com
+
+- disable test_LSTM_choices temporarily
+  https://github.com/sirfz/tesserocr/issues/214
+
+---



Other differences:
--
++ python-tesserocr.spec ++
--- /var/tmp/diff_new_pack.YSfuyw/_old  2020-01-13 22:23:20.566568835 +0100
+++ /var/tmp/diff_new_pack.YSfuyw/_new  2020-01-13 22:23:20.566568835 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-tesserocr
 #
-# Copyright (c) 2019 SUSE LLC
+# 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
@@ -62,7 +62,8 @@
 
 %check
 %python_exec setup.py develop --user
-%python_exec -m pytest -v tests
+# test_LSTM_choices failure: https://github.com/sirfz/tesserocr/issues/214
+%python_exec -m pytest -v -k 'not test_LSTM_choices' tests
 
 %files %{python_files}
 %license LICENSE




commit python-tesserocr for openSUSE:Factory

2019-12-03 Thread root
Hello community,

here is the log from the commit of package python-tesserocr for 
openSUSE:Factory checked in at 2019-12-03 15:21:47

Comparing /work/SRC/openSUSE:Factory/python-tesserocr (Old)
 and  /work/SRC/openSUSE:Factory/.python-tesserocr.new.4691 (New)


Package is "python-tesserocr"

Tue Dec  3 15:21:47 2019 rev:8 rq:753070 version:2.5.0

Changes:

--- /work/SRC/openSUSE:Factory/python-tesserocr/python-tesserocr.changes
2019-08-24 18:47:34.657750513 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-tesserocr.new.4691/python-tesserocr.changes  
2019-12-03 15:21:50.130521845 +0100
@@ -1,0 +2,9 @@
+Tue Nov 26 00:49:44 UTC 2019 - Martin Herkt <9+suse@cirno.systems>
+
+- Update to version 2.5.0
+  * Support for RowAttributes method in LTRResultIterator
+  * SetImage: use PNG instead of JPEG fallback
+  * Replace STRING::string() by c_str()
+  * Don't use assignment operator for TessBaseAPI
+
+---

Old:

  tesserocr-2.4.1.tar.gz

New:

  tesserocr-2.5.0.tar.gz



Other differences:
--
++ python-tesserocr.spec ++
--- /var/tmp/diff_new_pack.VK66EF/_old  2019-12-03 15:21:50.822521528 +0100
+++ /var/tmp/diff_new_pack.VK66EF/_new  2019-12-03 15:21:50.826521526 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-tesserocr
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-tesserocr
-Version:2.4.1
+Version:2.5.0
 Release:0
 Summary:A Python wrapper around tesseract-ocr
 License:MIT

++ tesserocr-2.4.1.tar.gz -> tesserocr-2.5.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tesserocr-2.4.1/PKG-INFO new/tesserocr-2.5.0/PKG-INFO
--- old/tesserocr-2.4.1/PKG-INFO2019-08-23 18:03:12.0 +0200
+++ new/tesserocr-2.5.0/PKG-INFO2019-11-09 00:11:54.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: tesserocr
-Version: 2.4.1
+Version: 2.5.0
 Summary: A simple, Pillow-friendly, Python wrapper around tesseract-ocr API 
using Cython
 Home-page: https://github.com/sirfz/tesserocr
 Author: Fayez Zouheiry
@@ -88,20 +88,16 @@
 
 The proposed downloads consist of stand-alone packages containing all 
the Windows libraries needed for execution. This means that no additional 
installation of tesseract is required on your system.
 
+The recommended method of installation is via Conda as described below.
+
 Conda
 `
 
-You can use the channel `simonflueckiger 
`_ to install from Conda:
-
-::
-
-> conda install -c simonflueckiger tesserocr
-
-or to get **tesserocr** compiled with **tesseract 4.0.0**:
+You can use the `conda-forge 
`_ channel to install from Conda:
 
 ::
 
-> conda install -c simonflueckiger/label/tesseract-4.0.0-master 
tesserocr
+> conda install -c conda-forge tesserocr
 
 pip
 ```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tesserocr-2.4.1/README.rst 
new/tesserocr-2.5.0/README.rst
--- old/tesserocr-2.4.1/README.rst  2019-08-23 18:01:21.0 +0200
+++ new/tesserocr-2.5.0/README.rst  2019-11-09 00:11:39.0 +0100
@@ -80,20 +80,16 @@
 
 The proposed downloads consist of stand-alone packages containing all the 
Windows libraries needed for execution. This means that no additional 
installation of tesseract is required on your system.
 
+The recommended method of installation is via Conda as described below.
+
 Conda
 `
 
-You can use the channel `simonflueckiger 
`_ to install from Conda:
-
-::
-
-> conda install -c simonflueckiger tesserocr
-
-or to get **tesserocr** compiled with **tesseract 4.0.0**:
+You can use the `conda-forge `_ 
channel to install from Conda:
 
 ::
 
-> conda install -c simonflueckiger/label/tesseract-4.0.0-master tesserocr
+> conda install -c conda-forge tesserocr
 
 pip
 ```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tesserocr-2.4.1/tesseract.pxd 
new/tesserocr-2.5.0/tesseract.pxd
--- 

commit python-tesserocr for openSUSE:Factory

2019-08-24 Thread root
Hello community,

here is the log from the commit of package python-tesserocr for 
openSUSE:Factory checked in at 2019-08-24 18:47:27

Comparing /work/SRC/openSUSE:Factory/python-tesserocr (Old)
 and  /work/SRC/openSUSE:Factory/.python-tesserocr.new.7948 (New)


Package is "python-tesserocr"

Sat Aug 24 18:47:27 2019 rev:7 rq:725668 version:2.4.1

Changes:

--- /work/SRC/openSUSE:Factory/python-tesserocr/python-tesserocr.changes
2018-12-07 14:35:05.147094570 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-tesserocr.new.7948/python-tesserocr.changes  
2019-08-24 18:47:34.657750513 +0200
@@ -1,0 +2,7 @@
+Fri Aug 23 18:14:51 UTC 2019 - Martin Herkt <9+suse@cirno.systems>
+
+- Update to version 2.4.1
+  * fix pixa_to_list python3 segfault
+  * fix BlockPolygon python3 segfault
+
+---

Old:

  tesserocr-2.4.0.tar.gz

New:

  tesserocr-2.4.1.tar.gz



Other differences:
--
++ python-tesserocr.spec ++
--- /var/tmp/diff_new_pack.4kMJVM/_old  2019-08-24 18:47:37.113750276 +0200
+++ /var/tmp/diff_new_pack.4kMJVM/_new  2019-08-24 18:47:37.113750276 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-tesserocr
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-tesserocr
-Version:2.4.0
+Version:2.4.1
 Release:0
 Summary:A Python wrapper around tesseract-ocr
 License:MIT

++ tesserocr-2.4.0.tar.gz -> tesserocr-2.4.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tesserocr-2.4.0/PKG-INFO new/tesserocr-2.4.1/PKG-INFO
--- old/tesserocr-2.4.0/PKG-INFO2018-12-05 15:37:32.0 +0100
+++ new/tesserocr-2.4.1/PKG-INFO2019-08-23 18:03:12.0 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: tesserocr
-Version: 2.4.0
+Version: 2.4.1
 Summary: A simple, Pillow-friendly, Python wrapper around tesseract-ocr API 
using Cython
 Home-page: https://github.com/sirfz/tesserocr
 Author: Fayez Zouheiry
@@ -45,7 +45,7 @@
 
 ::
 
-$ apt-get install tesseract-ocr libtesseract-dev libleptonica-dev
+$ apt-get install tesseract-ocr libtesseract-dev libleptonica-dev 
pkg-config
 
 You may need to `manually compile tesseract`_ for a more recent 
version. Note that you may need
 to update your ``LD_LIBRARY_PATH`` environment variable to point to 
the right library versions in
@@ -127,8 +127,8 @@
 with PyTessBaseAPI() as api:
 for img in images:
 api.SetImageFile(img)
-print api.GetUTF8Text()
-print api.AllWordConfidences()
+print(api.GetUTF8Text())
+print(api.AllWordConfidences())
 # api is automatically finalized when used in a with-statement 
(context manager).
 # otherwise api.End() should be explicitly called when it's no 
longer needed.
 
@@ -142,13 +142,13 @@
 import tesserocr
 from PIL import Image
 
-print tesserocr.tesseract_version()  # print tesseract-ocr version
-print tesserocr.get_languages()  # prints tessdata path and list 
of available languages
+print(tesserocr.tesseract_version())  # print tesseract-ocr version
+print(tesserocr.get_languages())  # prints tessdata path and list 
of available languages
 
 image = Image.open('sample.jpg')
-print tesserocr.image_to_text(image)  # print ocr text from image
+print(tesserocr.image_to_text(image))  # print ocr text from image
 # or
-print tesserocr.file_to_text('sample.jpg')
+print(tesserocr.file_to_text('sample.jpg'))
 
 ``image_to_text`` and ``file_to_text`` can be used with ``threading`` 
to
 concurrently process multiple images which is highly efficient.
@@ -168,15 +168,15 @@
 with PyTessBaseAPI() as api:
 api.SetImage(image)
 boxes = api.GetComponentImages(RIL.TEXTLINE, True)
-print 'Found {} textline image components.'.format(len(boxes))
+print('Found {} textline image components.'.format(len(boxes)))
 for i, (im, box, _, _) in enumerate(boxes):
 # im is a PIL image 

commit python-tesserocr for openSUSE:Factory

2018-12-07 Thread root
Hello community,

here is the log from the commit of package python-tesserocr for 
openSUSE:Factory checked in at 2018-12-07 14:35:02

Comparing /work/SRC/openSUSE:Factory/python-tesserocr (Old)
 and  /work/SRC/openSUSE:Factory/.python-tesserocr.new.19453 (New)


Package is "python-tesserocr"

Fri Dec  7 14:35:02 2018 rev:6 rq:655638 version:2.4.0

Changes:

--- /work/SRC/openSUSE:Factory/python-tesserocr/python-tesserocr.changes
2018-12-06 12:18:55.481416268 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-tesserocr.new.19453/python-tesserocr.changes 
2018-12-07 14:35:05.147094570 +0100
@@ -1,0 +2,5 @@
+Thu Dec  6 12:42:12 UTC 2018 - Jan Engelhardt 
+
+- Trim bias and filler wording.
+
+---



Other differences:
--
++ python-tesserocr.spec ++
--- /var/tmp/diff_new_pack.NBWrg6/_old  2018-12-07 14:35:05.595094014 +0100
+++ /var/tmp/diff_new_pack.NBWrg6/_new  2018-12-07 14:35:05.595094014 +0100
@@ -20,7 +20,7 @@
 Name:   python-tesserocr
 Version:2.4.0
 Release:0
-Summary:A simple, Pillow-friendly, Python wrapper around tesseract-ocr
+Summary:A Python wrapper around tesseract-ocr
 License:MIT
 Group:  Development/Languages/Python
 URL:https://github.com/sirfz/tesserocr
@@ -43,13 +43,13 @@
 %python_subpackages
 
 %description
-A simple, Pillow-friendly wrapper around the tesseract-ocr API for Optical
-Character Recognition (OCR).
+A wrapper around the tesseract-ocr API for Optical Character
+Recognition (OCR).
 
 tesserocr integrates directly with Tesseract's C++ API using Cython
-which allows for simple Pythonic and easy-to-read source code. It
-enables real concurrent execution when used with Python's threading
-module by releasing the GIL while processing an image in tesseract.
+which allows for Pythonic source code. It enables real concurrent
+execution when used with Python's threading module by releasing the
+GIL while processing an image in tesseract.
 
 %prep
 %setup -q -n tesserocr-%{version}




commit python-tesserocr for openSUSE:Factory

2018-12-06 Thread root
Hello community,

here is the log from the commit of package python-tesserocr for 
openSUSE:Factory checked in at 2018-12-06 12:18:51

Comparing /work/SRC/openSUSE:Factory/python-tesserocr (Old)
 and  /work/SRC/openSUSE:Factory/.python-tesserocr.new.19453 (New)


Package is "python-tesserocr"

Thu Dec  6 12:18:51 2018 rev:5 rq:655446 version:2.4.0

Changes:

--- /work/SRC/openSUSE:Factory/python-tesserocr/python-tesserocr.changes
2018-08-15 10:37:40.500212953 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-tesserocr.new.19453/python-tesserocr.changes 
2018-12-06 12:18:55.481416268 +0100
@@ -1,0 +2,9 @@
+Wed Dec  5 23:35:00 UTC 2018 - Martin Herkt <9+suse@cirno.systems>
+
+- Update to version 2.4.0
+  Tesseract v4 new API methods supported:
+
+  * GetBestLSTMSymbolChoices
+  * BlanWksBeforeWord
+
+---

Old:

  tesserocr-2.3.1.tar.gz

New:

  tesserocr-2.4.0.tar.gz



Other differences:
--
++ python-tesserocr.spec ++
--- /var/tmp/diff_new_pack.BfgL89/_old  2018-12-06 12:18:56.265415426 +0100
+++ /var/tmp/diff_new_pack.BfgL89/_new  2018-12-06 12:18:56.265415426 +0100
@@ -12,13 +12,13 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-tesserocr
-Version:2.3.1
+Version:2.4.0
 Release:0
 Summary:A simple, Pillow-friendly, Python wrapper around tesseract-ocr
 License:MIT

++ tesserocr-2.3.1.tar.gz -> tesserocr-2.4.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tesserocr-2.3.1/PKG-INFO new/tesserocr-2.4.0/PKG-INFO
--- old/tesserocr-2.3.1/PKG-INFO2018-08-13 19:35:30.0 +0200
+++ new/tesserocr-2.4.0/PKG-INFO2018-12-05 15:37:32.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: tesserocr
-Version: 2.3.1
+Version: 2.4.0
 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.3.1/setup.py new/tesserocr-2.4.0/setup.py
--- old/tesserocr-2.3.1/setup.py2018-08-13 17:58:16.0 +0200
+++ new/tesserocr-2.4.0/setup.py2018-11-30 15:43:23.0 +0100
@@ -48,12 +48,32 @@
 
 
 def version_to_int(version):
+subversion = None
+subtrahend = 0
+# Subtracts a certain amount from the version number to differentiate 
between
+# alpha, beta and release versions.
+if "alpha" in version:
+version_split = version.split("alpha")
+subversion = version_split[1]
+subtrahend = 2
+elif "beta" in version:
+version_split = version.split("beta")
+subversion = version_split[1]
+subtrahend = 1
 version = re.search(r'((?:\d+\.)+\d+)', version).group()
 # Split the groups on ".", take only the first one, and print each group 
with leading 0 if needed
 # To be safe, also handle cases where an extra group is added to the 
version string, or if one or two groups
 # are dropped.
 version_groups = (version.split('.') + [0, 0])[:3]
 version_str = "{:02}{:02}{:02}".format(*map(int, version_groups))
+version_str = str((int(version_str, 10)-subtrahend))
+# Adds a 2 digit subversion number for the subversionrelease.
+subversion_str="00"
+if subversion is not None and subversion is not "":
+subversion = re.search(r'(?:\d+)', subversion).group()
+subversion_groups = (subversion.split('-') + [0, 0])[:1]
+subversion_str = "{:02}".format(*map(int, subversion_groups))
+version_str+=subversion_str
 return int(version_str, 16)
 
 
@@ -132,7 +152,7 @@
 _LOGGER.warn('pkg-config failed to find tesseract/lept libraries: 
{}'.format(e))
 build_args = get_tesseract_version()
 
-if build_args['cython_compile_time_env']['TESSERACT_VERSION'] >= 0x030502:
+if build_args['cython_compile_time_env']['TESSERACT_VERSION'] >= 0x3050200:
 _LOGGER.debug('tesseract >= 03.05.02 requires c++11 compiler support')
 build_args['extra_compile_args'] = ['-std=c++11', 
'-DUSE_STD_NAMESPACE']
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tesserocr-2.3.1/tesseract.pxd 
new/tesserocr-2.4.0/tesseract.pxd
--- old/tesserocr-2.3.1/tesseract.pxd   2018-02-04 

commit python-tesserocr for openSUSE:Factory

2018-08-15 Thread root
Hello community,

here is the log from the commit of package python-tesserocr for 
openSUSE:Factory checked in at 2018-08-15 10:37:39

Comparing /work/SRC/openSUSE:Factory/python-tesserocr (Old)
 and  /work/SRC/openSUSE:Factory/.python-tesserocr.new (New)


Package is "python-tesserocr"

Wed Aug 15 10:37:39 2018 rev:4 rq:629058 version:2.3.1

Changes:

--- /work/SRC/openSUSE:Factory/python-tesserocr/python-tesserocr.changes
2018-08-03 12:40:49.083883565 +0200
+++ /work/SRC/openSUSE:Factory/.python-tesserocr.new/python-tesserocr.changes   
2018-08-15 10:37:40.500212953 +0200
@@ -1,0 +2,6 @@
+Mon Aug 13 18:20:26 UTC 2018 - 9+suse@cirno.systems
+
+- Update to version 2.3.1
+  * Python 3.7 support release
+
+---

Old:

  tesserocr-2.3.0.tar.gz

New:

  tesserocr-2.3.1.tar.gz



Other differences:
--
++ python-tesserocr.spec ++
--- /var/tmp/diff_new_pack.bq9H7I/_old  2018-08-15 10:37:41.680215105 +0200
+++ /var/tmp/diff_new_pack.bq9H7I/_new  2018-08-15 10:37:41.688215120 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-tesserocr
-Version:2.3.0
+Version:2.3.1
 Release:0
 Summary:A simple, Pillow-friendly, Python wrapper around tesseract-ocr
 License:MIT

++ tesserocr-2.3.0.tar.gz -> tesserocr-2.3.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tesserocr-2.3.0/PKG-INFO new/tesserocr-2.3.1/PKG-INFO
--- old/tesserocr-2.3.0/PKG-INFO2018-06-26 17:40:17.0 +0200
+++ new/tesserocr-2.3.1/PKG-INFO2018-08-13 19:35:30.0 +0200
@@ -1,6 +1,6 @@
-Metadata-Version: 1.1
+Metadata-Version: 2.1
 Name: tesserocr
-Version: 2.3.0
+Version: 2.3.1
 Summary: A simple, Pillow-friendly, Python wrapper around tesseract-ocr API 
using Cython
 Home-page: https://github.com/sirfz/tesserocr
 Author: Fayez Zouheiry
@@ -85,22 +85,31 @@
 
 Windows
 ---
+
 The proposed downloads consist of stand-alone packages containing all 
the Windows libraries needed for execution. This means that no additional 
installation of tesseract is required on your system.
 
 Conda
 `
+
 You can use the channel `simonflueckiger 
`_ to install from Conda:
+
 ::
+
 > conda install -c simonflueckiger tesserocr
 
 or to get **tesserocr** compiled with **tesseract 4.0.0**:
+
 ::
+
 > conda install -c simonflueckiger/label/tesseract-4.0.0-master 
tesserocr
 
 pip
 ```
+
 Download the wheel file corresponding to your Windows platform and 
Python installation from `simonflueckiger/tesserocr-windows_build/releases 
`_ and 
install them via:
+
 ::
+
 > pip install .whl
 
 Usage
@@ -261,6 +270,8 @@
 Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
+Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Programming Language :: Cython
+Description-Content-Type: text/x-rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tesserocr-2.3.0/README.rst 
new/tesserocr-2.3.1/README.rst
--- old/tesserocr-2.3.0/README.rst  2018-04-09 15:20:26.0 +0200
+++ new/tesserocr-2.3.1/README.rst  2018-08-13 19:32:31.0 +0200
@@ -77,22 +77,31 @@
 
 Windows
 ---
+
 The proposed downloads consist of stand-alone packages containing all the 
Windows libraries needed for execution. This means that no additional 
installation of tesseract is required on your system.
 
 Conda
 `
+
 You can use the channel `simonflueckiger 
`_ to install from Conda:
+
 ::
+
 > conda install -c simonflueckiger tesserocr
 
 or to get **tesserocr** compiled with **tesseract 4.0.0**:
+
 ::
+
 > conda install -c simonflueckiger/label/tesseract-4.0.0-master tesserocr
 
 pip
 ```
+
 Download the wheel file corresponding to your Windows platform and Python 
installation from `simonflueckiger/tesserocr-windows_build/releases 
`_ and 
install them via:
+
 ::
+
 > pip install 

commit python-tesserocr for openSUSE:Factory

2018-08-03 Thread root
Hello community,

here is the log from the commit of package python-tesserocr for 
openSUSE:Factory checked in at 2018-08-03 12:40:44

Comparing /work/SRC/openSUSE:Factory/python-tesserocr (Old)
 and  /work/SRC/openSUSE:Factory/.python-tesserocr.new (New)


Package is "python-tesserocr"

Fri Aug  3 12:40:44 2018 rev:3 rq:627286 version:2.3.0

Changes:

--- /work/SRC/openSUSE:Factory/python-tesserocr/python-tesserocr.changes
2018-07-01 21:26:30.612759628 +0200
+++ /work/SRC/openSUSE:Factory/.python-tesserocr.new/python-tesserocr.changes   
2018-08-03 12:40:49.083883565 +0200
@@ -1,0 +2,11 @@
+Thu Aug  2 09:40:45 UTC 2018 - tchva...@suse.com
+
+- Ensure we require some of the tesseract data so we can do at
+  least some basic ocr operations
+
+---
+Thu Aug  2 08:59:20 UTC 2018 - tchva...@suse.com
+
+- Drop unused bcond
+
+---



Other differences:
--
++ python-tesserocr.spec ++
--- /var/tmp/diff_new_pack.6CdzFy/_old  2018-08-03 12:40:49.479884156 +0200
+++ /var/tmp/diff_new_pack.6CdzFy/_new  2018-08-03 12:40:49.483884162 +0200
@@ -17,14 +17,13 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%bcond_without test
 Name:   python-tesserocr
 Version:2.3.0
 Release:0
 Summary:A simple, Pillow-friendly, Python wrapper around tesseract-ocr
 License:MIT
 Group:  Development/Languages/Python
-Url:https://github.com/sirfz/tesserocr
+URL:https://github.com/sirfz/tesserocr
 Source: 
https://files.pythonhosted.org/packages/source/t/tesserocr/tesserocr-%{version}.tar.gz
 BuildRequires:  %{python_module Cython}
 BuildRequires:  %{python_module Pillow}
@@ -38,6 +37,8 @@
 BuildRequires:  tesseract-ocr-traineddata-english
 BuildRequires:  tesseract-ocr-traineddata-orientation_and_script_detection
 BuildRequires:  pkgconfig(tesseract)
+Requires:   tesseract-ocr-traineddata-english
+Requires:   tesseract-ocr-traineddata-orientation_and_script_detection
 Recommends: python-Pillow
 %python_subpackages
 




commit python-tesserocr for openSUSE:Factory

2018-07-01 Thread root
Hello community,

here is the log from the commit of package python-tesserocr for 
openSUSE:Factory checked in at 2018-07-01 21:26:30

Comparing /work/SRC/openSUSE:Factory/python-tesserocr (Old)
 and  /work/SRC/openSUSE:Factory/.python-tesserocr.new (New)


Package is "python-tesserocr"

Sun Jul  1 21:26:30 2018 rev:2 rq:619191 version:2.3.0

Changes:

--- /work/SRC/openSUSE:Factory/python-tesserocr/python-tesserocr.changes
2017-08-30 16:24:19.775982859 +0200
+++ /work/SRC/openSUSE:Factory/.python-tesserocr.new/python-tesserocr.changes   
2018-07-01 21:26:30.612759628 +0200
@@ -1,0 +2,14 @@
+Tue Jun 26 16:07:43 UTC 2018 - 9+suse@cirno.systems
+
+- Run tests
+- Use %license macro
+- Update to version 2.3.0
+  * Support for Tesseract 4
++ New OCR engines LSTM_ONLY and TESSERACT_LSTM_COMBINED
++ New default tessdata path handling
+  * Fixed compilation against Tesseract v3.05.02 which required
+c++11
+  * Fallback to 'eng' as default language when default language
+returned by the API is empty
+
+---

Old:

  _service
  tesserocr-2.2.2.tar.gz

New:

  tesserocr-2.3.0.tar.gz



Other differences:
--
++ python-tesserocr.spec ++
--- /var/tmp/diff_new_pack.6q7dfM/_old  2018-07-01 21:26:31.188758879 +0200
+++ /var/tmp/diff_new_pack.6q7dfM/_new  2018-07-01 21:26:31.192758874 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-tesserocr
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %bcond_without test
 Name:   python-tesserocr
-Version:2.2.2
+Version:2.3.0
 Release:0
 Summary:A simple, Pillow-friendly, Python wrapper around tesseract-ocr
 License:MIT
@@ -27,12 +27,16 @@
 Url:https://github.com/sirfz/tesserocr
 Source: 
https://files.pythonhosted.org/packages/source/t/tesserocr/tesserocr-%{version}.tar.gz
 BuildRequires:  %{python_module Cython}
-BuildRequires:  %{python_module six}
+BuildRequires:  %{python_module Pillow}
 BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module six}
 BuildRequires:  gcc-c++
 BuildRequires:  pkgconfig
 BuildRequires:  python-rpm-macros
+BuildRequires:  tesseract-ocr-traineddata-english
+BuildRequires:  tesseract-ocr-traineddata-orientation_and_script_detection
 BuildRequires:  pkgconfig(tesseract)
 Recommends: python-Pillow
 %python_subpackages
@@ -55,9 +59,13 @@
 %install
 %python_install
 
+%check
+%python_exec setup.py develop --user
+%python_exec -m pytest -v tests
+
 %files %{python_files}
-%defattr(-,root,root,-)
-%doc LICENSE README.rst
+%license LICENSE
+%doc README.rst
 %{python_sitearch}/*
 
 %changelog

++ tesserocr-2.2.2.tar.gz -> tesserocr-2.3.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tesserocr-2.2.2/PKG-INFO new/tesserocr-2.3.0/PKG-INFO
--- old/tesserocr-2.2.2/PKG-INFO2017-07-26 20:53:03.0 +0200
+++ new/tesserocr-2.3.0/PKG-INFO2018-06-26 17:40:17.0 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: tesserocr
-Version: 2.2.2
+Version: 2.3.0
 Summary: A simple, Pillow-friendly, Python wrapper around tesseract-ocr API 
using Cython
 Home-page: https://github.com/sirfz/tesserocr
 Author: Fayez Zouheiry
@@ -59,7 +59,8 @@
 
 Installation
 
-
+Linux and BSD/MacOS
+---
 ::
 
 $ pip install tesserocr
@@ -82,6 +83,26 @@
 .. |pkg-config| replace:: **pkg-config**
 .. _pkg-config: https://pkgconfig.freedesktop.org/
 
+Windows
+---
+The proposed downloads consist of stand-alone packages containing all 
the Windows libraries needed for execution. This means that no additional 
installation of tesseract is required on your system.
+
+Conda
+`
+You can use the channel `simonflueckiger 
`_ to install from Conda:
+::
+> conda install -c simonflueckiger tesserocr
+
+or to get **tesserocr** compiled with **tesseract 4.0.0**:
+::
+> conda install -c simonflueckiger/label/tesseract-4.0.0-master 
tesserocr
+
+pip
+```
+Download the wheel