Skip to content

Commit 0b6887c

Browse files
authored
Merge pull request #514 from drice/patch-1
Remove line associated with old poetry version
2 parents 1e280d4 + 2242c47 commit 0b6887c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/poetry.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,9 @@ function pyprojectTomlToRequirements() {
4343

4444
const editableFlag = new RegExp(/^-e /gm);
4545
const sourceRequirements = path.join(this.servicePath, 'requirements.txt');
46-
const requirementsContents =
47-
res.stdout.toString().trim() || // As of poetry 1.0.0b1, requirements.txt is printed to standard output when the -o option is not specified.
48-
fse.readFileSync(sourceRequirements, {
49-
encoding: 'utf-8',
50-
});
46+
const requirementsContents = fse.readFileSync(sourceRequirements, {
47+
encoding: "utf-8"
48+
});
5149

5250
if (requirementsContents.match(editableFlag)) {
5351
this.serverless.cli.log(

0 commit comments

Comments
 (0)