diff --git a/packages/type-safe-api/src/project/codegen/handlers/generated-python-handlers-base-project.ts b/packages/type-safe-api/src/project/codegen/handlers/generated-python-handlers-base-project.ts index 86f98d048..7ef9ea221 100644 --- a/packages/type-safe-api/src/project/codegen/handlers/generated-python-handlers-base-project.ts +++ b/packages/type-safe-api/src/project/codegen/handlers/generated-python-handlers-base-project.ts @@ -132,7 +132,7 @@ export abstract class GeneratedPythonHandlersBaseProject extends PythonProject { `cp -r ${this.moduleName} dist/lambda/${this.moduleName}` ); this.packageTask.exec( - "poetry export --without-hashes --format=requirements.txt > dist/lambda/requirements.txt" + "poetry export --without-hashes --format=requirements.txt | sed -E 's/^-e[[:space:]]+//' > dist/lambda/requirements.txt" ); // Select the platform based on the specified architecture, defaulting to x86_64 // See: https://docs.aws.amazon.com/lambda/latest/dg/python-package.html#python-package-native-libraries diff --git a/packages/type-safe-api/test/project/__snapshots__/type-safe-api-project.test.ts.snap b/packages/type-safe-api/test/project/__snapshots__/type-safe-api-project.test.ts.snap index 532c44dbf..af68b48b1 100644 --- a/packages/type-safe-api/test/project/__snapshots__/type-safe-api-project.test.ts.snap +++ b/packages/type-safe-api/test/project/__snapshots__/type-safe-api-project.test.ts.snap @@ -31894,7 +31894,7 @@ cython_debug/ "exec": "cp -r smithy_handlers_python_handlers dist/lambda/smithy_handlers_python_handlers", }, { - "exec": "poetry export --without-hashes --format=requirements.txt > dist/lambda/requirements.txt", + "exec": "poetry export --without-hashes --format=requirements.txt | sed -E 's/^-e[[:space:]]+//' > dist/lambda/requirements.txt", }, { "exec": "pip install -r dist/lambda/requirements.txt --target dist/lambda --upgrade --platform manylinux2014_x86_64 --only-binary :all: --python-version 3.11", diff --git a/packages/type-safe-api/test/project/codegen/handlers/__snapshots__/generated-python-async-handlers-project.test.ts.snap b/packages/type-safe-api/test/project/codegen/handlers/__snapshots__/generated-python-async-handlers-project.test.ts.snap index 901b6d9f5..3617d8dfb 100644 --- a/packages/type-safe-api/test/project/codegen/handlers/__snapshots__/generated-python-async-handlers-project.test.ts.snap +++ b/packages/type-safe-api/test/project/codegen/handlers/__snapshots__/generated-python-async-handlers-project.test.ts.snap @@ -341,7 +341,7 @@ cython_debug/ "exec": "cp -r test_handlers dist/lambda/test_handlers", }, { - "exec": "poetry export --without-hashes --format=requirements.txt > dist/lambda/requirements.txt", + "exec": "poetry export --without-hashes --format=requirements.txt | sed -E 's/^-e[[:space:]]+//' > dist/lambda/requirements.txt", }, { "exec": "pip install -r dist/lambda/requirements.txt --target dist/lambda --upgrade --platform manylinux2014_x86_64 --only-binary :all: --python-version 3.11", diff --git a/packages/type-safe-api/test/project/codegen/handlers/__snapshots__/generated-python-handlers-project.test.ts.snap b/packages/type-safe-api/test/project/codegen/handlers/__snapshots__/generated-python-handlers-project.test.ts.snap index 5ed60dbba..892178f8c 100644 --- a/packages/type-safe-api/test/project/codegen/handlers/__snapshots__/generated-python-handlers-project.test.ts.snap +++ b/packages/type-safe-api/test/project/codegen/handlers/__snapshots__/generated-python-handlers-project.test.ts.snap @@ -341,7 +341,7 @@ cython_debug/ "exec": "cp -r test_handlers dist/lambda/test_handlers", }, { - "exec": "poetry export --without-hashes --format=requirements.txt > dist/lambda/requirements.txt", + "exec": "poetry export --without-hashes --format=requirements.txt | sed -E 's/^-e[[:space:]]+//' > dist/lambda/requirements.txt", }, { "exec": "pip install -r dist/lambda/requirements.txt --target dist/lambda --upgrade --platform manylinux2014_x86_64 --only-binary :all: --python-version 3.11",