Skip to content

Commit aefaa85

Browse files
author
Mike Grima
committed
Fixing broken dependencies
- Upped the version to 1.0.2 - Updated the `tests/starfleet_included_plugins/account_index_generator/generatedIndex.json` file to account for newer regions - Reformatted to latest standards
1 parent b9093b4 commit aefaa85

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+126
-32
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors = [
88
{name = "Gemini", email = "[email protected]"},
99
{name = "Mike Grima", email = "[email protected]"},
1010
]
11-
version = "1.0.1"
11+
version = "1.0.2"
1212
dynamic = ["dependencies"]
1313

1414
[tool.setuptools]

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:Module: setup
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
from setuptools import setup
1112

1213
setup()

src/requirements.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1+
iambic-core==0.11.97
12
cloudaux-lite==1.0.0
23
click==8.1.7
34
PyYAML==6.0.1
4-
marshmallow==3.20.1
5+
marshmallow==3.21.1
56
retry==0.9.2
67
pyjwt==2.8.0
78
requests==2.31.0
8-
cryptography==41.0.7
9-
botocore==1.34.11
10-
boto3==1.34.11
11-
slack-sdk==3.26.1
9+
# cryptography==42.0.5 Handled by iambic-core
10+
botocore==1.34.71
11+
boto3==1.34.71
12+
slack-sdk==3.27.1
1213
deepdiff==6.7.1
13-
iambic-core==0.11.97

src/starfleet/account_index/loader.py

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
:License: See the LICENSE file for details
1010
:Author: Mike Grima <[email protected]>
1111
"""
12+
1213
import starfleet.account_index.plugins
1314
from starfleet.account_index.schematics import AccountIndex, AccountIndexInstance
1415
from starfleet.utils.configuration import STARFLEET_CONFIGURATION

src/starfleet/account_index/plugins/starfleet_default_index/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
from starfleet.account_index.plugins.starfleet_default_index.ship import StarfleetDefaultAccountIndex
1112

1213
ACCOUNT_INDEX_PLUGINS = [StarfleetDefaultAccountIndex]

src/starfleet/account_index/plugins/starfleet_default_index/ship.py

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
:License: See the LICENSE file for details
99
:Author: Mike Grima <[email protected]>
1010
"""
11+
1112
# pylint: disable=too-many-locals,too-many-statements
1213
import json
1314
from typing import Any, Dict, Optional, Set

src/starfleet/account_index/resolvers.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
from typing import Any, Dict, Set
1112

1213
from starfleet.account_index.loader import ACCOUNT_INDEX

src/starfleet/account_index/schematics.py

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
:License: See the LICENSE file for details
99
:Author: Mike Grima <[email protected]>
1010
"""
11+
1112
from typing import Set, Dict, Optional, TypeVar
1213

1314

src/starfleet/cli/components.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
from typing import Any, List
1112

1213
import click

src/starfleet/starbase/entrypoints.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
import json
1112
from typing import Any, Dict
1213

src/starfleet/starbase/main.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
import json
1112
from typing import Any, Dict, Tuple, Optional
1213
from urllib.parse import unquote_plus

src/starfleet/starbase/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
import json
1112
from typing import Any, Dict, List, Type, Generator
1213

src/starfleet/startup.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
from starfleet.utils.logging import LOGGER # noqa pylint: disable=W0611
1112
from starfleet.utils.configuration import STARFLEET_CONFIGURATION
1213
from starfleet.account_index.loader import ACCOUNT_INDEX

src/starfleet/utils/config_schema.py

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
:License: See the LICENSE file for details
99
:Author: Mike Grima <[email protected]>
1010
"""
11+
1112
from typing import Any, Dict
1213

1314
from marshmallow import Schema, fields, INCLUDE, validate, validates_schema, ValidationError

src/starfleet/utils/configuration.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
import logging
1112
import os
1213
from typing import Any, Dict

src/starfleet/utils/logging.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
import logging
1112

1213
LOGGER = logging.getLogger("starfleet")

src/starfleet/utils/niceties.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
from typing import Set
1112

1213
import boto3

src/starfleet/utils/plugin_loader.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
# from importlib.metadata import entry_points
1112
import importlib
1213
from pkgutil import iter_modules

src/starfleet/utils/secrets.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
import json
1112
from typing import Any, Dict
1213

src/starfleet/utils/slack.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
from typing import Any, Dict, List
1112

1213
from slack_sdk import WebClient

src/starfleet/worker_ships/base_payload_schemas.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
from typing import List, Any, Dict, TypeVar
1112

1213
from marshmallow import Schema, fields, INCLUDE, validates, ValidationError, validate, validates_schema

src/starfleet/worker_ships/cli_utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
from io import TextIOWrapper
1112
from typing import Dict, Any
1213

src/starfleet/worker_ships/lambda_utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
import os
1112
from functools import wraps
1213
from typing import Callable, Dict, Type, Any

src/starfleet/worker_ships/loader.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
from typing import Dict
1112

1213
import starfleet.worker_ships.plugins
@@ -53,7 +54,9 @@ def load_all_plugins(self):
5354
# If there is a configuration entry, then we need to validate the correct configuration:
5455
errors = plugin.configuration_template_class().validate(worker_ship_config) # noqa
5556
if errors:
56-
raise BadConfigurationError(f"[💥] Worker ship: {plugin.get_worker_ship_name()} has an invalid configuration. {str(errors)}") # noqa
57+
raise BadConfigurationError(
58+
f"[💥] Worker ship: {plugin.get_worker_ship_name()} has an invalid configuration. {str(errors)}"
59+
) # noqa
5760

5861
# Check that the worker ship is enabled:
5962
if not worker_ship_config["Enabled"]:

src/starfleet/worker_ships/niceties.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
import datetime
1112
import json
1213
from typing import Any

src/starfleet/worker_ships/plugins/account_index_generator/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
from starfleet.worker_ships.plugins.account_index_generator.ship import AccountIndexGeneratorShip, account_inventory
1112

1213
WORKER_SHIP_PLUGINS = [AccountIndexGeneratorShip]

src/starfleet/worker_ships/plugins/account_index_generator/ship.py

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
:License: See the LICENSE file for details
99
:Author: Mike Grima <[email protected]>
1010
"""
11+
1112
from datetime import datetime
1213
import json
1314
from typing import Dict, Any, TypeVar

src/starfleet/worker_ships/plugins/account_index_generator/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
import asyncio
1112
from asyncio import AbstractEventLoop
1213
from concurrent.futures import ThreadPoolExecutor

src/starfleet/worker_ships/plugins/aws_config/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
:License: See the LICENSE file for details
1010
:Author: Mike Grima <[email protected]>
1111
"""
12+
1213
from starfleet.worker_ships.plugins.aws_config.ship import AwsConfigWorkerShip, aws_config
1314

1415
WORKER_SHIP_PLUGINS = [AwsConfigWorkerShip]

src/starfleet/worker_ships/plugins/aws_config/logic.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
import json
1112
from difflib import Differ
1213
from enum import Enum

src/starfleet/worker_ships/plugins/aws_config/schemas.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
from enum import Enum
1112
from typing import Any, Dict
1213

src/starfleet/worker_ships/plugins/aws_config/ship.py

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
:License: See the LICENSE file for details
99
:Author: Mike Grima <[email protected]>
1010
"""
11+
1112
import json
1213
import traceback
1314
from typing import Dict, Any, TypeVar

src/starfleet/worker_ships/plugins/github_sync/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
:License: See the LICENSE file for details
1111
:Author: Mike Grima <[email protected]>
1212
"""
13+
1314
from starfleet.worker_ships.plugins.github_sync.ship import GitHubSyncWorkerShip, sync_github
1415

1516
WORKER_SHIP_PLUGINS = [GitHubSyncWorkerShip]

src/starfleet/worker_ships/plugins/github_sync/auth.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
from datetime import datetime, timezone
1112
from functools import wraps
1213
from typing import Dict, Any, Callable

src/starfleet/worker_ships/plugins/github_sync/ship.py

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
:License: See the LICENSE file for details
1111
:Author: Mike Grima <[email protected]>
1212
"""
13+
1314
# pylint: disable=too-many-locals,too-many-statements
1415
import json
1516
import tempfile

src/starfleet/worker_ships/plugins/github_sync/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
import hashlib
1112
import os
1213
import re

src/starfleet/worker_ships/plugins/iam/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
import click
1112

1213
from starfleet.worker_ships.plugins.iam.role_ship import IamRoleWorkerShip, role

src/starfleet/worker_ships/plugins/iam/iambic_imports.py

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
:License: See the LICENSE file for details
66
:Author: Mike Grima <[email protected]>
77
"""
8+
89
# pylint: disable=unused-import,wrong-import-position,wrong-import-order
910
from unittest import mock
1011

src/starfleet/worker_ships/plugins/iam/role_ship.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
:License: See the LICENSE file for details
99
:Author: Mike Grima <[email protected]>
1010
"""
11+
1112
# pylint: disable=too-many-locals,too-many-statements,too-many-branches
1213
import asyncio
1314
import json
@@ -64,7 +65,7 @@ def render_iambic_template(self, commit: bool = False) -> Dict[str, Any]:
6465
"""This will render the iambic template and return it back out."""
6566
return render_iambic_template(self.payload, IambicTemplateTypes.IAM_ROLE, commit)
6667

67-
def prepare_iambic_template(self, rendered_template: Dict[str, Any]) -> "AwsIamRoleTemplate":
68+
def prepare_iambic_template(self, rendered_template: Dict[str, Any]) -> "AwsIamRoleTemplate": # noqa
6869
"""This will perform the additional validation that is needed to load and generate the iambic template."""
6970
from starfleet.worker_ships.plugins.iam.iambic_imports import AwsIamRoleTemplate
7071

src/starfleet/worker_ships/plugins/iam/schemas.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
:License: See the LICENSE file for details
66
:Author: Mike Grima <[email protected]>
77
"""
8+
89
import copy
910
from enum import Enum
1011
from typing import Any, Dict, List
@@ -68,7 +69,7 @@ def render_iambic_template(template: Dict[str, Any], template_type: IambicTempla
6869
return rendered_template
6970

7071

71-
def make_iambic_variables(template_variables: List[Dict[str, str]]) -> List["Variable"]:
72+
def make_iambic_variables(template_variables: List[Dict[str, str]]) -> List["Variable"]: # noqa
7273
"""This will make the iambic variable objects from the Starfleet template variables."""
7374
from starfleet.worker_ships.plugins.iam.iambic_imports import Variable
7475

@@ -79,7 +80,7 @@ def make_iambic_variables(template_variables: List[Dict[str, str]]) -> List["Var
7980
return iambic_variables
8081

8182

82-
def render_iambic_stanza(template_stanza: Any) -> Any: # pylint: disable=too-many-branches
83+
def render_iambic_stanza(template_stanza: Any) -> Any: # noqa # pylint: disable=too-many-branches
8384
"""This is going to recursively iterate over the iambic template and render out the stanzas as appropriate."""
8485
# Is this a dictionary?
8586
if isinstance(template_stanza, dict):

src/starfleet/worker_ships/ship_schematics.py

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
:License: See the LICENSE file for details
1212
:Author: Mike Grima <[email protected]>
1313
"""
14+
1415
from enum import Enum
1516
from typing import Any, Dict, Type, TypeVar
1617

tests/account_index/conftest.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
# pylint: disable=unused-argument
1112
from typing import Generator, Any, Dict
1213

tests/account_index/test_account_index_components.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
:License: See the LICENSE file for details
88
:Author: Mike Grima <[email protected]>
99
"""
10+
1011
# pylint: disable=unused-argument
1112
from typing import Any, Dict
1213
from unittest import mock

0 commit comments

Comments
 (0)