poetry_builder¶
Poetry-based Lambda layer builder implementation.
This module provides Lambda layer creation using Poetry’s dependency management, supporting both local and containerized builds. Poetry offers reproducible builds through lock files and sophisticated dependency resolution.
Command Pattern Classes:
PoetryBasedLambdaLayerLocalBuilder: Local poetry-based buildsPoetryBasedLambdaLayerContainerBuilder: Containerized poetry-based builds
- class aws_lambda_artifact_builder.layer.poetry_builder.PoetryBasedLambdaLayerLocalBuilder(verbose: bool = True, printer: ~typing.Callable[[str], None] = <built-in function print>, path_pyproject_toml: ~pathlib.Path = REQ, credentials: ~aws_lambda_artifact_builder.layer.foundation.Credentials | None = None, skip_prompt: bool = False, _build_tool: str = LayerBuildToolEnum.poetry, path_bin_poetry: ~pathlib.Path = REQ)[source]¶
This class implements Poetry-specific build workflow using virtual environments and lock file-based dependency resolution.
Key Features:
Lock file-based reproducible builds
Environment variable authentication (POETRY_HTTP_BASIC_*)
In-project virtual environment setup
No root package installation (–no-root)
See also
- class aws_lambda_artifact_builder.layer.poetry_builder.PoetryBasedLambdaLayerContainerBuilder(verbose: bool = True, printer: ~typing.Callable[[str], None] = <built-in function print>, path_pyproject_toml: ~pathlib.Path = REQ, py_ver_major: int = REQ, py_ver_minor: int = REQ, is_arm: bool = REQ, path_script: ~pathlib.Path = PosixPath('/home/docs/checkouts/readthedocs.org/user_builds/aws-lambda-artifact-builder/envs/latest/lib/python3.11/site-packages/aws_lambda_artifact_builder/layer/_build_lambda_layer_using_poetry_in_container.py'), credentials: ~aws_lambda_artifact_builder.layer.foundation.Credentials | None = None)[source]¶
Command class for containerized Poetry-based Lambda layer builds.
See also