Skip to content

Commit 3f2fee0

Browse files
committed
Consistent naming
1 parent 10d2885 commit 3f2fee0

4 files changed

Lines changed: 8 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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:

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ help:
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
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55

66
from 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"
119
PYTHON_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

7471
if __name__ == "__main__":

tests/integrations/aws_lambda/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)