Skip to content

Poetry #400

Closed
Closed
@khornberg

Description

@khornberg

This is related to #324
When I have a pyproject.toml file I must explicitly say usePoetry: false to package the requirements.

In the current versions of things I get ENOENT: no such file or directory, open '/Users/kyle/projects/serverless-python-requirements-bug/.serverless/requirements.txt'

The above error results from falling into https://github.com/UnitedIncome/serverless-python-requirements/blob/c9d910cc40d95163f8894abfdefaf9c4fc33b505/lib/pip.js#L66

Whatever the logic is to determine if usePoetry is true seems to be at fault.

A working example is at https://github.com/khornberg/serverless-python-requirements-bug

  • Clone and run sls package to get the error
  • Uncomment the custom section in the serverless.yaml file. Running sls package again works.

There is a work around but it seems unintuitive

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions