Skip to content

Bump minimum shrub.py to 3.7 for ec2_assume_role #1393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions .evergreen/config_generator/components/sbom.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from config_generator.etc.utils import bash_exec

from shrub.v3.evg_build_variant import BuildVariant
from shrub.v3.evg_command import BuiltInCommand, EvgCommandType, expansions_update, s3_put
from shrub.v3.evg_command import BuiltInCommand, EvgCommandType, ec2_assume_role, expansions_update, s3_put
from shrub.v3.evg_task import EvgTask, EvgTaskRef

from pydantic import ConfigDict
Expand All @@ -20,23 +20,6 @@ class CustomCommand(BuiltInCommand):
model_config = ConfigDict(arbitrary_types_allowed=True)


def ec2_assume_role(
role_arn: Optional[str] = None,
policy: Optional[str] = None,
duration_seconds: Optional[int] = None,
command_type: Optional[EvgCommandType] = None,
) -> CustomCommand:
return CustomCommand(
command="ec2.assume_role",
params={
"role_arn": role_arn,
"policy": policy,
"duration_seconds": duration_seconds,
},
type=command_type,
)


class CheckAugmentedSBOM(Function):
name = 'check augmented sbom'
commands = [
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ config_generator = [
# .evergreen/config_generator/generate.py
"packaging>=14.0",
"pydantic>=2.8",
"shrub-py>=3.6",
"shrub-py>=3.7",
]

make_release = [
Expand Down
4 changes: 2 additions & 2 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.