Files
pdfplumber/setup.py
T

56 lines
1.5 KiB
Python
Raw Normal View History

import os
2015-08-23 23:12:56 -04:00
from setuptools import setup, find_packages
2017-02-25 13:23:51 -05:00
NAME = "pdfplumber"
HERE = os.path.abspath(os.path.dirname(__file__))
2017-02-25 13:23:51 -05:00
version_ns = {}
def _open(subpath):
path = os.path.join(HERE, subpath)
return open(path, encoding="utf-8")
with _open(NAME + "/_version.py") as f:
2017-02-25 13:23:51 -05:00
exec(f.read(), {}, version_ns)
2016-03-06 19:49:59 -05:00
with _open("requirements.txt") as f:
base_reqs = f.read().strip().split("\n")
with _open("requirements-dev.txt") as f:
dev_reqs = f.read().strip().split("\n")
2015-08-23 23:12:56 -04:00
with _open("README.md") as f:
long_description = f.read()
2015-08-23 23:12:56 -04:00
setup(
2017-02-25 13:23:51 -05:00
name=NAME,
2020-11-12 22:32:58 -05:00
url="https://github.com/jsvine/pdfplumber",
author="Jeremy Singer-Vine",
author_email="jsvine@gmail.com",
2017-02-25 13:23:51 -05:00
description="Plumb a PDF for detailed information about each char, rectangle, and line.",
long_description=long_description,
long_description_content_type="text/markdown",
version=version_ns["__version__"],
packages=find_packages(
exclude=[
"test",
]
),
tests_require=base_reqs + dev_reqs,
python_requires=">=3.7",
install_requires=base_reqs,
entry_points={"console_scripts": ["pdfplumber = pdfplumber.cli:main"]},
2020-07-25 10:41:33 -04:00
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
2020-07-25 10:41:33 -04:00
],
2015-08-23 23:12:56 -04:00
)