File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 71
71
working-directory : ./cdk
72
72
run : |
73
73
poetry install
74
+ poetry self add poetry-plugin-export
74
75
cdk deploy openaq-ingest-aeolus --require-approval never
Original file line number Diff line number Diff line change @@ -19,14 +19,16 @@ def create_dependencies_layer(
19
19
function_name : str ,
20
20
requirements_path : Path
21
21
) -> aws_lambda .LayerVersion :
22
- requirements_file = str (requirements_path .resolve ())
22
+ # requirements_file = str(requirements_path.resolve())
23
23
output_dir = f'../.build/{ function_name } '
24
24
layer_id = f'openaq-{ function_name } -{ env_name } -dependencies'
25
25
26
26
if not environ .get ('SKIP_BUILD' ):
27
- print (f'Building { layer_id } from { requirements_file } into { output_dir } ' )
27
+ print (f'Building { layer_id } into { output_dir } ' )
28
28
subprocess .run (
29
- f"""python -m pip install -qq -r { requirements_file } \
29
+ f"""
30
+ poetry export --without=cdk -o requirements.txt --without-hashes && \
31
+ poetry run python -m pip install -qq -r requirements.txt \
30
32
-t { output_dir } /python && \
31
33
cd { output_dir } /python && \
32
34
find . -type f -name '*.pyc' | \
You can’t perform that action at this time.
0 commit comments