diff --git a/lib/poetry.js b/lib/poetry.js index c9062df2..106bb14c 100644 --- a/lib/poetry.js +++ b/lib/poetry.js @@ -43,11 +43,9 @@ function pyprojectTomlToRequirements() { const editableFlag = new RegExp(/^-e /gm); const sourceRequirements = path.join(this.servicePath, 'requirements.txt'); - const requirementsContents = - res.stdout.toString().trim() || // As of poetry 1.0.0b1, requirements.txt is printed to standard output when the -o option is not specified. - fse.readFileSync(sourceRequirements, { - encoding: 'utf-8', - }); + const requirementsContents = fse.readFileSync(sourceRequirements, { + encoding: "utf-8" + }); if (requirementsContents.match(editableFlag)) { this.serverless.cli.log(