Skip to content

Commit f18824e

Browse files
Addressed comments - updated layer name and added docs.
1 parent 276e6c3 commit f18824e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

release_layer.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import json
88

99
# The following values are used in the documentation, so any change of them requires updates to the documentation.
10-
LAYER_NAME = 'AWSCodeGuruProfilerPythonAgentLambdaLayerTestDev'
10+
LAYER_NAME = 'AWSCodeGuruProfilerPythonAgentLambdaLayer'
1111
SUPPORTED_VERSIONS = ['3.6', '3.7', '3.8']
1212
EXEC_SCRIPT_FILE_NAME = 'codeguru_profiler_lambda_exec'
1313

@@ -56,6 +56,10 @@ def read(*parts):
5656

5757

5858
def find_version(*file_paths):
59+
"""
60+
To keep track of which PyPI version corresponds to which layer version we cross reference the PyPI x¬version in the layer description.
61+
This function is used to read the PyPi directly from the source code.
62+
"""
5963
version_file = read(*file_paths)
6064
version_match = re.search(r"^__agent_version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
6165
if version_match:

0 commit comments

Comments
 (0)