-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
85 lines (74 loc) · 2.01 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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
import io
import os
from setuptools import setup, find_packages
# Package meta-data.
NAME = "thumbtack"
DESCRIPTION = "Service to manage disk image mounts."
URL = "https://github.com/mitre/thumbtack"
EMAIL = "[email protected]"
AUTHOR = "The MITRE Corporation"
LICENSE = "Apache 2.0"
REQUIRES_PYTHON = ">=3.4.0"
VERSION = "0.5.4"
REQUIRED = [
"Click",
"Flask==3.0.3",
"Flask-RESTful",
"gunicorn",
"imagemounter_mitre",
"requests",
]
doc_requires = [
"sphinx",
]
test_requires = [
"coverage",
"pytest",
"pytest-cov",
]
dev_requires = (
doc_requires + test_requires + ["bumpversion", "python-magic", "pytsk3",]
)
EXTRAS = {
"dev": dev_requires,
"docs": doc_requires,
"test": test_requires,
}
here = os.path.abspath(os.path.dirname(__file__))
# Import the README and use it as the long-description.
try:
with io.open(os.path.join(here, "README.rst"), encoding="utf-8") as f:
long_description = "\n" + f.read()
except FileNotFoundError:
long_description = DESCRIPTION
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
license=LICENSE,
long_description=long_description,
long_description_content_type="text/x-rst",
author=AUTHOR,
author_email=EMAIL,
python_requires=REQUIRES_PYTHON,
url=URL,
zip_safe=False,
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Security",
"Topic :: System :: Filesystems",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
packages=find_packages("src"),
package_dir={"": "src"},
install_requires=REQUIRED,
extras_require=EXTRAS,
include_package_data=True,
entry_points={"console_scripts": ["thumbtack = thumbtack:start_app",]},
)