File tree Expand file tree Collapse file tree
tests/integrations/aws_lambda Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,15 +116,14 @@ jobs:
116116
117117 - run : |
118118 pip install virtualenv
119- make aws-lambda-layer-build
120- # TODO: xxx !!! rename to make aws-lambda-layer
119+ make aws-lambda-layer
121120
122121 - uses : actions/upload-artifact@v3
123122 with :
124123 name : prepared-lambda-layer-${{ github.sha }}
125124 path : |
126125 dist/*
127- # TODO: xxx !!! MAKE SURE TO PICK UP DIST FOLDER FROM make aws-lambda-layer-build
126+ # TODO: xxx !!! MAKE SURE TO PICK UP DIST FOLDER FROM make aws-lambda-layer
128127
129128 - uses : getsentry/action-build-aws-lambda-extension@v1
130129 with :
Original file line number Diff line number Diff line change 99 @echo " make test: Run basic tests (not testing most integrations)"
1010 @echo " make test-all: Run ALL tests (slow, closest to CI)"
1111 @echo " make format: Run code formatters (destructive)"
12- @echo " make aws-lambda-layer-build : Build serverless ZIP dist package "
12+ @echo " make aws-lambda-layer: Build AWS Lambda layer directorzy for serverless integration "
1313 @echo
1414 @echo " Also make sure to read ./CONTRIBUTING.md"
1515 @false
@@ -60,8 +60,8 @@ apidocs-hotfix: apidocs
6060 @$(VENV_PATH ) /bin/ghp-import -pf docs/_build
6161.PHONY : apidocs-hotfix
6262
63- aws-lambda-layer-build : dist
63+ aws-lambda-layer : dist
6464 $(VENV_PATH ) /bin/pip install urllib3
6565 $(VENV_PATH ) /bin/pip install certifi
66- $(VENV_PATH ) /bin/python -m scripts.build_awslambda_layer
67- .PHONY : aws-lambda-layer-build
66+ $(VENV_PATH ) /bin/python -m scripts.build_aws_lambda_layer
67+ .PHONY : aws-lambda-layer
Original file line number Diff line number Diff line change 55
66from sentry_sdk .consts import VERSION as SDK_VERSION
77
8- DIST_PATH = (
9- "dist" # created by "make dist, that is called by make aws-lambda-layer-build"
10- )
8+ DIST_PATH = "dist" # created by "make dist" that is called by "make aws-lambda-layer"
119PYTHON_SITE_PACKAGES = "python" # see https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html#configuration-layers-path
1210
1311
@@ -68,7 +66,6 @@ def build_layer_dir():
6866 layer_builder .create_init_serverless_sdk_package ()
6967
7068 # TODO: move whole directory to a dist folder somewhere.
71- # TODO: rename file to build_aws_lambda_layer.py
7269
7370
7471if __name__ == "__main__" :
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def build_no_code_serverless_function_and_layer(
2525 sdk by creating a layer containing the Python-sdk, and then creating a func
2626 that uses that layer
2727 """
28- from scripts .build_awslambda_layer import build_layer_dir
28+ from scripts .build_aws_lambda_layer import build_layer_dir
2929
3030 build_layer_dir (dest_abs_path = tmpdir )
3131
You can’t perform that action at this time.
0 commit comments