Skip to content

Commit 1747997

Browse files
committed
Added a todo list
1 parent 3a62865 commit 1747997

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

LICENSE renamed to LICENSE.txt

File renamed without changes.

TODO.rst

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Todo list
2+
=========
3+
4+
- Add smtp emailing option after OCR
5+

setup.py

+13-3
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,25 @@
44
import pypdfocr
55
from pypdfocr.version import __version__
66

7-
with open('README.rst') as file:
8-
long_description = file.read()
7+
8+
def read(*filenames, **kwargs):
9+
encoding = kwargs.get('encoding', 'utf-8')
10+
sep = kwargs.get('sep', '\n')
11+
buf = []
12+
for filename in filenames:
13+
with io.open(filename, encoding=encoding) as f:
14+
buf.append(f.read())
15+
return sep.join(buf)
916

1017
packages = find_packages(exclude="tests")
18+
19+
long_description = read('README.rst', 'CHANGES.rst', 'TODO.rst')
20+
1121
setup (
1222
name = "pypdfocr",
1323
version = __version__,
1424
description="Converts a scanned PDF into an OCR'ed pdf using Tesseract-OCR and Ghostscript",
15-
license = "LICENSE",
25+
license = "LICENSE.txt",
1626
long_description = long_description,
1727
author="Virantha N. Ekanayake",
1828
author_email="[email protected]", # Removed.

0 commit comments

Comments
 (0)