Closed
Description
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 theserverless.yaml
file. Runningsls package
again works.
There is a work around but it seems unintuitive