-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
72 lines (66 loc) · 1.97 KB
/
setup.py
File metadata and controls
72 lines (66 loc) · 1.97 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import os
import setuptools
import sys
dir_name = os.path.abspath(os.path.dirname(__file__))
version_contents = {}
with open(os.path.join(dir_name, "src", "impira", "version.py"), encoding="utf-8") as f:
exec(f.read(), version_contents)
with open(os.path.join(dir_name, "README.md"), "r", encoding="utf-8") as f:
long_description = f.read()
install_requires = [
"python-dateutil",
"pydantic",
"requests",
"toml",
]
if sys.version_info.major == 3 and sys.version_info.minor < 7:
install_requires.append("typing")
extras_require = {
"dev": [
"black",
"build",
"flake8",
"flake8-isort",
"isort==5.10.1",
"pre-commit",
"twine",
],
"cli": [
"boto3",
"textract-trp",
],
"doc": [
"myst-parser >= 0.15",
"sphinx >= 4.5",
"commonmark >= 0.9",
"enum-tools[sphinx] >= 0.9",
],
}
extras_require["all"] = sorted({package for packages in extras_require.values() for package in packages})
extras_require["dev"].extend(sorted(extras_require["cli"]) + sorted(extras_require["doc"]))
setuptools.setup(
name="impira",
version=version_contents["VERSION"],
author="Impira Engineering",
author_email="engineering@impira.com",
description="Official Impira Python SDK",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/impira/impira-python",
project_urls={
"Bug Tracker": "https://github.com/impira/impira-python/issues",
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
package_dir={"": "src"},
packages=setuptools.find_packages(where="src"),
python_requires=">=3.7.4",
entry_points={
"console_scripts": ["impira = impira.cmd.__main__:main"],
},
install_requires=install_requires,
extras_require=extras_require,
)