forked from aws-samples/amazon-textract-textractor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (40 loc) · 1.44 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
import os
from setuptools import find_packages, setup
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
def read_requirements(path):
with open(path, "r") as f:
requirements = [line for line in f.readlines()]
return requirements
setup(
# include data files
name="amazon-textract-textractor",
version="1.1.1",
license="Apache 2.0",
description="A package to use AWS Textract services.",
url="https://github.com/aws-samples/amazon-textract-textractor",
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
keywords="amazon textract aws ocr document",
packages=find_packages(exclude=["docs", "tests"], ),
include_package_data=True,
install_requires=read_requirements(os.path.join(here, "requirements.txt")),
extras_require={
f.split(".")[0]: read_requirements(os.path.join(here, "extras", f))
for f in os.listdir(os.path.join(here, "extras"))
},
entry_points={
"console_scripts": [
"textractor = textractor.cli.cli:textractor_cli",
],
},
)