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-INFO        2018-06-26 17:40:17.000000000 +0200
+++ new/tesserocr-2.3.1/PKG-INFO        2018-08-13 19:35:30.000000000 +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 
<https://anaconda.org/simonflueckiger/tesserocr>`_ 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 
<https://github.com/simonflueckiger/tesserocr-windows_build/releases>`_ and 
install them via:
+        
         ::
+        
             > pip install <package_name>.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.000000000 +0200
+++ new/tesserocr-2.3.1/README.rst      2018-08-13 19:32:31.000000000 +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 
<https://anaconda.org/simonflueckiger/tesserocr>`_ 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 
<https://github.com/simonflueckiger/tesserocr-windows_build/releases>`_ and 
install them via:
+
 ::
+
     > pip install <package_name>.whl
 
 Usage
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tesserocr-2.3.0/setup.py new/tesserocr-2.3.1/setup.py
--- old/tesserocr-2.3.0/setup.py        2018-06-26 17:06:31.000000000 +0200
+++ new/tesserocr-2.3.1/setup.py        2018-08-13 17:58:16.000000000 +0200
@@ -159,6 +159,7 @@
       version=find_version('tesserocr.pyx'),
       description='A simple, Pillow-friendly, Python wrapper around 
tesseract-ocr API using Cython',
       long_description=read('README.rst'),
+      long_description_content_type='text/x-rst',
       url='https://github.com/sirfz/tesserocr',
       author='Fayez Zouheiry',
       author_email='iamfa...@gmail.com',
@@ -177,6 +178,7 @@
           'Programming Language :: Python :: 3.4',
           'Programming Language :: Python :: 3.5',
           'Programming Language :: Python :: 3.6',
+          'Programming Language :: Python :: 3.7',
           'Programming Language :: Python :: Implementation :: CPython',
           'Programming Language :: Python :: Implementation :: PyPy',
           'Programming Language :: Cython'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tesserocr-2.3.0/tesserocr.egg-info/PKG-INFO 
new/tesserocr-2.3.1/tesserocr.egg-info/PKG-INFO
--- old/tesserocr-2.3.0/tesserocr.egg-info/PKG-INFO     2018-06-26 
17:40:17.000000000 +0200
+++ new/tesserocr-2.3.1/tesserocr.egg-info/PKG-INFO     2018-08-13 
19:35:29.000000000 +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 
<https://anaconda.org/simonflueckiger/tesserocr>`_ 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 
<https://github.com/simonflueckiger/tesserocr-windows_build/releases>`_ and 
install them via:
+        
         ::
+        
             > pip install <package_name>.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/tesserocr.pyx 
new/tesserocr-2.3.1/tesserocr.pyx
--- old/tesserocr-2.3.0/tesserocr.pyx   2018-06-26 17:07:15.000000000 +0200
+++ new/tesserocr-2.3.1/tesserocr.pyx   2018-08-13 19:35:16.000000000 +0200
@@ -18,7 +18,7 @@
  ['eng', 'osd', 'equ'])
 """
 
-__version__ = '2.3.0'
+__version__ = '2.3.1'
 
 import os
 from io import BytesIO
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tesserocr-2.3.0/tests/test_api.py 
new/tesserocr-2.3.1/tests/test_api.py
--- old/tesserocr-2.3.0/tests/test_api.py       2018-06-26 17:01:22.000000000 
+0200
+++ new/tesserocr-2.3.1/tests/test_api.py       2018-08-13 18:09:30.000000000 
+0200
@@ -14,15 +14,18 @@
     # 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_str = "{:02}{:02}{:02}".format(*map(int, (version.split('.') + 
[0]*2)[:3]))
+    version_groups = (version.split('.') + [0, 0])[:3]
+    version_str = "{:02}{:02}{:02}".format(*map(int, version_groups))
     return int(version_str, 16)
 
 
+_TESSERACT_VERSION = version_to_int(tesserocr.PyTessBaseAPI.Version())
+
+
 class TestTessBaseApi(unittest.TestCase):
 
     _test_dir = os.path.abspath(os.path.dirname(__file__))
     _image_file = os.path.join(_test_dir, 'eurotext.tif')
-    _tesseract_version = version_to_int(tesserocr.PyTessBaseAPI.Version())
 
     def setUp(self):
         if pil_installed:
@@ -112,7 +115,7 @@
         path = self._api.GetDatapath()
         self._api.End()
         self.assertRaises(RuntimeError, self._api.Init, path=(self._test_dir + 
os.path.sep))  # no tessdata
-        if self._tesseract_version >= 0x040000:
+        if _TESSERACT_VERSION >= 0x040000:
             new_path = path
         else:
             new_path = os.path.abspath(os.path.join(path, os.path.pardir)) + 
os.path.sep
@@ -163,7 +166,7 @@
         all(self.assertIn(k, orientation) for k in ['sconfidence', 
'oconfidence', 'script', 'orientation'])
         self.assertEqual(orientation['orientation'], 0)
         self.assertEqual(orientation['script'], 1)
-        if self._tesseract_version >= 0x040000:
+        if _TESSERACT_VERSION >= 0x040000:
             orientation = self._api.DetectOrientationScript()
             all(self.assertIn(k, orientation) for k in ['orient_deg', 
'orient_conf', 'script_name', 'script_conf'])
             self.assertEqual(orientation['orient_deg'], 0)


Reply via email to