Serverless-python-requirements: Still does not work with poetry 1.0.0b1

Created on 21 Sep 2019  路  6Comments  路  Source: UnitedIncome/serverless-python-requirements

Poetry 1.0.0b1 changed the behaviour of export.
This was fixed according to: https://github.com/UnitedIncome/serverless-python-requirements/pull/395

Except it wasn't.
The requirements.txt file is not saved in case there is no editable flag.

Most helpful comment

Is there any movement on this?

Our current hack/workaround is to have the following in the serverless.yaml

plugins:
- serverless-python-requirements
- serverless-scriptable-plugin

custom:
  pythonRequirements:
    usePoetry: false
  scriptHooks:
    before:package:createDeploymentArtifacts: poetry export --without-hashes -f requirements.txt -o requirements.txt

This works so far, but does look messy in my yaml :(

Let me know if I can help!

All 6 comments

Seconded

Is there any movement on this?

Our current hack/workaround is to have the following in the serverless.yaml

plugins:
- serverless-python-requirements
- serverless-scriptable-plugin

custom:
  pythonRequirements:
    usePoetry: false
  scriptHooks:
    before:package:createDeploymentArtifacts: poetry export --without-hashes -f requirements.txt -o requirements.txt

This works so far, but does look messy in my yaml :(

Let me know if I can help!

Also hitting this issue

Bumping this issue.
Just had the same problem.

Same for me, please deploy the fix to the NPM registry asap to make the plugin less frustrating to work with for new users

I'm closing this as resolved by #446

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tmclaugh picture tmclaugh  路  4Comments

JulienMarliac picture JulienMarliac  路  3Comments

amadensor picture amadensor  路  3Comments

chinalikai picture chinalikai  路  5Comments

calclavia picture calclavia  路  5Comments