We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 835ef2f commit 9750662Copy full SHA for 9750662
lib/poetry.js
@@ -35,7 +35,11 @@ function pyprojectTomlToRequirements() {
35
36
const editableFlag = new RegExp(/^-e /gm);
37
const sourceRequirements = path.join(this.servicePath, 'requirements.txt');
38
- const requirementsContents = res.stdout.toString();
+ const requirementsContents =
39
+ res.stdout.toString() ||
40
+ fse.readFileSync(sourceRequirements, {
41
+ encoding: 'utf-8'
42
+ });
43
44
if (requirementsContents.match(editableFlag)) {
45
this.serverless.cli.log(
0 commit comments