diff --git a/setup.py b/setup.py index 5a60b88..7cd440b 100644 --- a/setup.py +++ b/setup.py @@ -52,7 +52,8 @@ def version_to_int(version): # 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) diff --git a/tesserocr.pyx b/tesserocr.pyx index f303774..d87eb76 100644 --- a/tesserocr.pyx +++ b/tesserocr.pyx @@ -18,7 +18,7 @@ tesseract 3.04.00 ['eng', 'osd', 'equ']) """ -__version__ = '2.2.2' +__version__ = '2.3.0' import os from io import BytesIO