forked from virantha/pypdfocr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (43 loc) · 1.29 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
from __future__ import print_function
from setuptools import setup, find_packages
import pypdfocr
import io
from pypdfocr.version import __version__
def read(*filenames, **kwargs):
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as f:
buf.append(f.read())
return sep.join(buf)
packages = find_packages(exclude="tests")
long_description = read('README.rst', 'CHANGES.rst', 'TODO.rst')
setup (
name = "pypdfocr",
version = __version__,
description="Converts a scanned PDF into an OCR'ed pdf using Tesseract-OCR and Ghostscript",
license = "ASL 2.0",
long_description = long_description,
author="Virantha N. Ekanayake",
author_email="[email protected]", # Removed.
package_data = {'': ['*.xml']},
zip_safe = True,
include_package_data = True,
packages = packages,
install_requires = [
'pil>=1.1.7',
'reportlab>=2.7',
"watchdog>=0.6.0",
"pypdf2",
"evernote",
],
entry_points = {
'console_scripts': [
'pypdfocr = pypdfocr.pypdfocr:main'
],
},
options = {
"pyinstaller": {"packages": packages}
}
)