Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-tesserocr for
openSUSE:Factory checked in at 2024-04-03 17:20:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-tesserocr (Old)
and /work/SRC/openSUSE:Factory/.python-tesserocr.new.1905 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-tesserocr"
Wed Apr 3 17:20:14 2024 rev:18 rq:1164224 version:2.6.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-tesserocr/python-tesserocr.changes
2023-11-07 21:26:59.064896560 +0100
+++
/work/SRC/openSUSE:Factory/.python-tesserocr.new.1905/python-tesserocr.changes
2024-04-03 17:21:38.572211021 +0200
@@ -1,0 +2,8 @@
+Tue Apr 2 18:53:44 UTC 2024 - Dirk Müller <[email protected]>
+
+- update to 2.6.3:
+ * Clarified the comments for tessdata path
+ * skip unit test for GetComponentImages if Pillow is missing
+ * Build with C++17 for Tesseract>=5.3.4
+
+-------------------------------------------------------------------
Old:
----
tesserocr-2.6.2.tar.gz
New:
----
tesserocr-2.6.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-tesserocr.spec ++++++
--- /var/tmp/diff_new_pack.3rfK5F/_old 2024-04-03 17:21:39.168233002 +0200
+++ /var/tmp/diff_new_pack.3rfK5F/_new 2024-04-03 17:21:39.168233002 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-tesserocr
#
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: python-tesserocr
-Version: 2.6.2
+Version: 2.6.3
Release: 0
Summary: A Python wrapper around tesseract-ocr
License: MIT
++++++ tesserocr-2.6.2.tar.gz -> tesserocr-2.6.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tesserocr-2.6.2/PKG-INFO new/tesserocr-2.6.3/PKG-INFO
--- old/tesserocr-2.6.2/PKG-INFO 2023-10-09 13:46:11.488629800 +0200
+++ new/tesserocr-2.6.3/PKG-INFO 2024-03-28 17:57:56.481576400 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: tesserocr
-Version: 2.6.2
+Version: 2.6.3
Summary: A simple, Pillow-friendly, Python wrapper around tesseract-ocr API
using Cython
Home-page: https://github.com/sirfz/tesserocr
Author: Fayez Zouheiry
@@ -93,7 +93,13 @@
Conda
`````
- You can use the `conda-forge
<https://anaconda.org/conda-forge/tesserocr>`_ channel to install from Conda:
+ You can use the `simonflueckiger
<https://anaconda.org/simonflueckiger/tesserocr>`_ channel to install from
Conda:
+
+ ::
+
+ > conda install -c simonflueckiger tesserocr
+
+ Or alternatively the `conda-forge
<https://anaconda.org/conda-forge/tesserocr>`_ channel:
::
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tesserocr-2.6.2/README.rst
new/tesserocr-2.6.3/README.rst
--- old/tesserocr-2.6.2/README.rst 2023-10-09 13:46:01.000000000 +0200
+++ new/tesserocr-2.6.3/README.rst 2024-03-28 17:57:44.000000000 +0100
@@ -85,7 +85,13 @@
Conda
`````
-You can use the `conda-forge <https://anaconda.org/conda-forge/tesserocr>`_
channel to install from Conda:
+You can use the `simonflueckiger
<https://anaconda.org/simonflueckiger/tesserocr>`_ channel to install from
Conda:
+
+::
+
+ > conda install -c simonflueckiger tesserocr
+
+Or alternatively the `conda-forge
<https://anaconda.org/conda-forge/tesserocr>`_ channel:
::
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tesserocr-2.6.2/setup.py new/tesserocr-2.6.3/setup.py
--- old/tesserocr-2.6.2/setup.py 2023-10-09 13:46:01.000000000 +0200
+++ new/tesserocr-2.6.3/setup.py 2024-03-28 17:57:44.000000000 +0100
@@ -32,6 +32,10 @@
'msvc': ['/std:c11', '-DUSE_STD_NAMESPACE'],
'gcc': ['-std=c++11', '-DUSE_STD_NAMESPACE'],
}
+EXTRA_COMPILE_ARGS5 = {
+ 'msvc': ['/std:c17', '-DUSE_STD_NAMESPACE'],
+ 'gcc': ['-std=c++17', '-DUSE_STD_NAMESPACE'],
+}
def read(*parts):
@@ -269,13 +273,17 @@
compiler = self.compiler.compiler_type
_LOGGER.info('Detected compiler: %s', compiler)
extra_args = EXTRA_COMPILE_ARGS.get(compiler,
EXTRA_COMPILE_ARGS['gcc'])
+ extra_args5 = EXTRA_COMPILE_ARGS5.get(compiler,
EXTRA_COMPILE_ARGS5['gcc'])
if isinstance(_CYTHON_COMPILE_TIME_ENV, dict):
version = _CYTHON_COMPILE_TIME_ENV.get('TESSERACT_VERSION', 0)
else:
version = 0
for extension in self.extensions:
- if version >= 0x3050200:
+ if version >= 0x5030400:
+ _LOGGER.debug('tesseract >= 05.03.04 requires c++17 compiler
support')
+ extension.extra_compile_args = extra_args5
+ elif version >= 0x3050200:
_LOGGER.debug('tesseract >= 03.05.02 requires c++11 compiler
support')
extension.extra_compile_args = extra_args
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tesserocr-2.6.2/tesserocr.egg-info/PKG-INFO
new/tesserocr-2.6.3/tesserocr.egg-info/PKG-INFO
--- old/tesserocr-2.6.2/tesserocr.egg-info/PKG-INFO 2023-10-09
13:46:09.000000000 +0200
+++ new/tesserocr-2.6.3/tesserocr.egg-info/PKG-INFO 2024-03-28
17:57:54.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: tesserocr
-Version: 2.6.2
+Version: 2.6.3
Summary: A simple, Pillow-friendly, Python wrapper around tesseract-ocr API
using Cython
Home-page: https://github.com/sirfz/tesserocr
Author: Fayez Zouheiry
@@ -93,7 +93,13 @@
Conda
`````
- You can use the `conda-forge
<https://anaconda.org/conda-forge/tesserocr>`_ channel to install from Conda:
+ You can use the `simonflueckiger
<https://anaconda.org/simonflueckiger/tesserocr>`_ channel to install from
Conda:
+
+ ::
+
+ > conda install -c simonflueckiger tesserocr
+
+ Or alternatively the `conda-forge
<https://anaconda.org/conda-forge/tesserocr>`_ channel:
::
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tesserocr-2.6.2/tesserocr.pyx
new/tesserocr-2.6.3/tesserocr.pyx
--- old/tesserocr-2.6.2/tesserocr.pyx 2023-10-09 13:46:01.000000000 +0200
+++ new/tesserocr-2.6.3/tesserocr.pyx 2024-03-28 17:57:44.000000000 +0100
@@ -18,7 +18,7 @@
['eng', 'osd', 'equ'])
"""
-__version__ = '2.6.2'
+__version__ = '2.6.3'
import os
from io import BytesIO
@@ -1169,7 +1169,7 @@
... tesseract.End()
Args:
- path (str): The name of the parent directory of tessdata.
+ path (str): The name of the tessdata directory (version>=4) or the
parent of it (version<=3)
Must end in /.
lang (str): An ISO 639-3 language string. Defaults to 'eng'.
The language may be a string of the form [~]<lang>[+[~]<lang>]*
indicating
@@ -1256,7 +1256,7 @@
self._pix = NULL
def GetDatapath(self):
- """Return tessdata parent directory"""
+ """Return tessdata directory(version>=4) or parent of tessdata
directory(version<=3)"""
return self._baseapi.GetDatapath()
def SetOutputName(self, name):
@@ -1390,7 +1390,7 @@
Page Segmentation Mode is set to :attr:`PSM.AUTO` after initialization
by default.
Args:
- path (str): The name of the parent directory of tessdata.
+ path (str): The name of the tessdata directory (version>=4) or the
parent of it (version<=3)
Must end in /.
lang (str): An ISO 639-3 language string. Defaults to 'eng'.
The language may be a string of the form
[~]<lang>[+[~]<lang>]* indicating
@@ -1466,7 +1466,7 @@
See :meth:`InitFull` for more initialization info and options.
Args:
- path (str): The name of the parent directory of tessdata.
+ path (str): The name of the tessdata directory (version>=4) or the
parent of it (version<=3)
Must end in /. Uses default installation path if not specified.
lang (str): An ISO 639-3 language string. Defaults to 'eng'.
See :meth:`InitFull` for full description of this parameter.
@@ -2543,7 +2543,7 @@
lang (str): An ISO 639-3 language string. Defaults to 'eng'.
psm (int): Page segmentation mode. Defaults to :attr:`PSM.AUTO`.
See :class:`PSM` for all available psm options.
- path (str): The name of the parent directory of tessdata.
+ path (str): The name of the tessdata directory (version>=4) or the
parent of it (version<=3)
Must end in /.
oem (int): OCR engine mode. Defaults to :attr:`OEM.DEFAULT`.
see :class:`OEM` for all available oem options.
@@ -2593,7 +2593,7 @@
lang (str): An ISO 639-3 language string. Defaults to 'eng'
psm (int): Page segmentation mode. Defaults to :attr:`PSM.AUTO`
See :class:`PSM` for all available psm options.
- path (str): The name of the parent directory of tessdata.
+ path (str): The name of the tessdata directory (version>=4) or the
parent of it (version<=3)
Must end in /.
oem (int): OCR engine mode. Defaults to :attr:`OEM.DEFAULT`.
see :class:`OEM` for all available oem options.
@@ -2640,13 +2640,13 @@
"""Return available languages in the given path.
Args:
- path (str): The name of the parent directory of tessdata.
+ path (str): The name of the tessdata directory (version>=4) or the
parent of it (version<=3)
Must end in /. Default tesseract-ocr datapath is used
if no path is provided.
Returns
tuple: Tuple with two elements:
- - path (str): tessdata parent directory path
+ - path (str): tessdata directory path
- languages (list): list of available languages as ISO 639-3
strings.
"""
IF TESSERACT_MAJOR_VERSION >= 5:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/tesserocr-2.6.2/tests/test_api.py
new/tesserocr-2.6.3/tests/test_api.py
--- old/tesserocr-2.6.2/tests/test_api.py 2023-10-09 13:46:01.000000000
+0200
+++ new/tesserocr-2.6.3/tests/test_api.py 2024-03-28 17:57:44.000000000
+0100
@@ -279,6 +279,7 @@
# Test if empty
self.assertFalse(result)
+ @unittest.skipIf(not pil_installed, "Pillow not installed")
def test_layout_getcomponents(self):
self._api.Init()
self._api.SetImageFile(self._image_file)