forked from jsvine/pdfplumber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
30 lines (27 loc) · 777 Bytes
/
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
import sys, os
from setuptools import setup, find_packages
import subprocess
NAME = "pdfplumber"
HERE = os.path.abspath(os.path.dirname(__file__))
version_ns = {}
with open(os.path.join(HERE, NAME, '_version.py')) as f:
exec(f.read(), {}, version_ns)
base_reqs = [
"chardet",
"pycryptodome",
"unicodecsv>=0.14.1",
"pdfminer.six==20181108",
"pillow>=3.0.0",
"wand"
]
setup(
name=NAME,
description="Plumb a PDF for detailed information about each char, rectangle, and line.",
version=version_ns['__version__'],
packages=find_packages(exclude=["test",]),
tests_require=[ "nose", "pandas" ] + base_reqs,
install_requires=base_reqs,
entry_points={
"console_scripts": [ "pdfplumber = pdfplumber.cli:main" ]
}
)