mirror of
https://github.com/jsvine/pdfplumber.git
synced 2026-08-30 00:50:24 +08:00
43f496cd29
h/t @GjjvdBurg: https://github.com/jsvine/pdfplumber/issues/167
32 lines
788 B
Python
32 lines
788 B
Python
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==20200104",
|
|
"six",
|
|
"pillow>=7.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" ]
|
|
}
|
|
)
|