forked from salesforce/cloudsplaining
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
85 lines (78 loc) · 2.57 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
# Copyright (c) 2020, salesforce.com, inc.
# All rights reserved.
# Licensed under the BSD 3-Clause license.
# For full license text, see the LICENSE file in the repo root
# or https://opensource.org/licenses/BSD-3-Clause
import setuptools
import os
import re
HERE = os.path.abspath(os.path.dirname(__file__))
VERSION_RE = re.compile(r'''__version__ = ['"]([0-9.]+)['"]''')
TESTS_REQUIRE = [
'coverage',
'nose',
'pytest'
]
REQUIRED_PACKAGES = [
'boto3',
'botocore',
'cached-property',
'click',
'click_option_group',
'jinja2',
'markdown',
'policy_sentry>=0.11.3',
'pyyaml',
'schema',
]
PROJECT_URLS = {
"Documentation": "https://policy-sentry.readthedocs.io/",
"Example Report": "https://opensource.salesforce.com/cloudsplaining",
"Code": "https://github.com/salesforce/cloudsplaining/",
"Twitter": "https://twitter.com/kmcquade3",
"Red Team Report": "https://opensource.salesforce.com/policy_sentry"
}
def get_version():
init = open(
os.path.join(
HERE,
"cloudsplaining",
"bin",
'version.py'
)
).read()
return VERSION_RE.search(init).group(1)
def get_description():
return open(
os.path.join(os.path.abspath(HERE), "README.md"), encoding="utf-8"
).read()
setuptools.setup(
name="cloudsplaining",
include_package_data=True,
version=get_version(),
author="Kinnaird McQuade",
author_email="[email protected]",
description="AWS IAM Security Assessment tool that identifies violations of least privilege and generates a risk-prioritized HTML report.",
long_description=get_description(),
long_description_content_type="text/markdown",
url="https://github.com/salesforce/cloudsplaining",
packages=setuptools.find_packages(exclude=['test*', 'tmp*']),
tests_require=TESTS_REQUIRE,
install_requires=REQUIRED_PACKAGES,
project_urls=PROJECT_URLS,
classifiers=[
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
entry_points={"console_scripts": "cloudsplaining=cloudsplaining.bin.cli:main"},
zip_safe=True,
keywords='aws iam roles policy policies privileges security',
python_requires='>=3.6',
)