forked from duo-labs/parliament
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (51 loc) · 2 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
"""Setup script for parliament"""
import os
import re
from setuptools import find_packages, setup
HERE = os.path.dirname(__file__)
VERSION_RE = re.compile(r"""__version__ = ['"]([0-9.]+)['"]""")
TESTS_REQUIRE = ["coverage", "nose"]
def get_version():
init = open(os.path.join(HERE, "parliamentarian", "__init__.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()
setup(
name="parliamentarian",
version=get_version(),
author="Climate LLC",
author_email="[email protected]",
description=("parliamentarian audits your AWS IAM policies"),
long_description=get_description(),
long_description_content_type="text/markdown",
url="https://github.com/TheClimateCorporation/parliamentarian",
entry_points={"console_scripts": "parliamentarian=parliamentarian.cli:main"},
test_suite="tests/unit",
tests_require=TESTS_REQUIRE,
extras_require={"dev": TESTS_REQUIRE + ["autoflake", "autopep8", "pylint"]},
install_requires=["boto3", "jmespath", "pyyaml", "json-cfg"],
setup_requires=["nose"],
packages=find_packages(exclude=["tests*"]),
package_data={
"parliamentarian": ["iam_definition.json", "config.yaml"],
"parliamentarian.community_auditors": ["config_override.yaml"],
},
zip_safe=True,
license="BSD 3",
keywords="aws parliamentarian iam lint audit",
python_requires=">=3.6",
classifiers=[
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"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 :: Only",
"Development Status :: 5 - Production/Stable",
],
)