Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 4e7b815

Browse files
authored
Remove line associated with old poetry version
1 parent f57475d commit 4e7b815

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/poetry.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,7 @@ function pyprojectTomlToRequirements() {
4242

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

5147
if (requirementsContents.match(editableFlag)) {
5248
this.serverless.cli.log(

0 commit comments

Comments
 (0)