forked from Netflix/consoleme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
77 lines (68 loc) · 2.75 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
import os
from shutil import rmtree
import distutils.cmd
import distutils.log
from setuptools import find_packages, setup
class CleanAllCommand(distutils.cmd.Command):
"""Docstring for public class."""
description = "remove extra build files"
user_options = []
dirname = os.path.dirname(os.path.realpath(__file__))
def initialize_options(self):
"""Docstring for public method."""
pass
def finalize_options(self):
"""Docstring for public method."""
pass
def run(self):
"""Docstring for public method."""
targets = [
".cache",
".coverage.py27",
".coverage.py36",
".tox",
"coverage-html.py27",
"coverage-html.py36",
"consoleme.egg-info",
"consoleme/__pycache__",
"test/__pycache__",
]
for t in targets:
path = os.path.join(self.dirname, t)
if os.path.isfile(path):
self.announce(f"removing file: {path}", level=distutils.log.INFO)
os.remove(path)
elif os.path.isdir(path):
self.announce(f"removing directory: {path}", level=distutils.log.INFO)
rmtree(path)
setup(
name="consoleme",
author="Netflix Security",
author_email="[email protected]",
description="A central control plane for AWS permissions and access",
keywords="consoleme",
url="https://github.com/Netflix/ConsoleMe",
python_requires=">=3.8",
setup_requires=["setupmeta"],
packages=find_packages(exclude=("tests",)),
entry_points={
"console_scripts": [
"consoleme = consoleme.__main__:init",
],
"consoleme.plugins": [
"default_config = consoleme.default_plugins.plugins.config.config:Config",
"default_auth = consoleme.default_plugins.plugins.auth.auth:Auth",
"default_aws = consoleme.default_plugins.plugins.aws.aws:Aws",
"default_celery_tasks = consoleme.default_plugins.plugins.celery_tasks.celery_tasks:internal_schedule",
"default_celery_tasks_functions = consoleme.default_plugins.plugins.celery_tasks.celery_tasks:CeleryTasks",
"default_metrics = consoleme.default_plugins.plugins.metrics.metrics:Metric",
"default_policies = consoleme.default_plugins.plugins.policies.policies:Policies",
"default_group_mapping = consoleme.default_plugins.plugins.group_mapping.group_mapping:GroupMapping",
"default_internal_routes = consoleme.default_plugins.plugins.internal_routes.internal_routes:InternalRoutes",
],
},
cmdclass={"cleanall": CleanAllCommand},
include_package_data=True,
versioning="dev",
zip_safe=False,
)