forked from openpaperwork/pyocr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·61 lines (58 loc) · 1.83 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env python
import sys
from setuptools import setup
try:
with open("src/pyocr/_version.py", "r") as file_descriptor:
version = file_descriptor.read().strip()
version = version.split(" ")[2][1:-1]
print("PyOCR version: {}".format(version))
if "-" in version:
version = version.split("-")[0]
except FileNotFoundError:
print("ERROR: _version.py file is missing")
print("ERROR: Please run 'make version' first")
sys.exit(1)
setup(
name="pyocr",
version=version,
description=("A Python wrapper for OCR engines (Tesseract, Cuneiform,"
" etc)"),
keywords="tesseract cuneiform ocr",
url="https://github.com/openpaperwork/pyocr",
download_url=(
"https://github.com/openpaperwork/pyocr/archive/"
"{}.zip".format(version)
),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 or later"
" (GPLv3+)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Topic :: Multimedia :: Graphics :: Capture :: Scanners",
"Topic :: Multimedia :: Graphics :: Graphics Conversion",
"Topic :: Scientific/Engineering :: Image Recognition",
],
license="GPLv3+",
author="Jerome Flesch",
author_email="jflesch@openpaper.work",
packages=[
'pyocr',
'pyocr.libtesseract',
],
package_dir={
'pyocr': 'src/pyocr',
'pyocr.libtesseract': 'src/pyocr/libtesseract',
},
data_files=[],
scripts=[],
zip_safe=True,
install_requires=[
"Pillow",
"six",
],
)