Skip to content

Commit ea59e5b

Browse files
committed
feat: include extra dependencies to test parser etc.
1 parent c1e487d commit ea59e5b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/e2e/utils/infrastructure.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,12 @@ def _create_layer(self) -> str:
280280
logger.debug("Creating Lambda Layer with latest source code available")
281281
output_dir = Path(str(AssetStaging.BUNDLING_OUTPUT_DIR), "python")
282282
input_dir = Path(str(AssetStaging.BUNDLING_INPUT_DIR), "aws_lambda_powertools")
283-
build_commands = [f"pip install . -t {output_dir}", f"cp -R {input_dir} {output_dir}"]
283+
284+
build_commands = [f"pip install .[pydantic] -t {output_dir}", f"cp -R {input_dir} {output_dir}"]
284285
layer = LayerVersion(
285286
self.stack,
286-
"aws-lambda-powertools",
287-
layer_version_name="aws-lambda-powertools",
287+
"aws-lambda-powertools-e2e-test",
288+
layer_version_name="aws-lambda-powertools-e2e-test",
288289
compatible_runtimes=[PythonVersion[PYTHON_RUNTIME_VERSION].value["runtime"]],
289290
code=Code.from_asset(
290291
path=".",

0 commit comments

Comments
 (0)