-
Notifications
You must be signed in to change notification settings - Fork 293
Poetry #400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What version of the plugin are you using? |
I faced the same problem with 5.0.0. As @khornberg suggested, setting |
I haven't directly confirmed this, but we're seeing multiple reports with the same remedy. |
miketheman
added a commit
to miketheman/serverless-python-requirements
that referenced
this issue
Feb 25, 2020
During the evaluation in the package phase, we determine whether a `requirements.txt` file exists, or whether we need to generate one. Since the `pyproject.toml` file is used by poetry, but only if a stanza is contained inside the file, use the function `isPoetryProject()` along with the configuration value, thereby reducing the need for a project to have to declare a configuration override. Refs serverless#324 Refs serverless#344 Fixes serverless#400 Signed-off-by: Mike Fiedler <[email protected]>
miketheman
added a commit
to miketheman/serverless-python-requirements
that referenced
this issue
Feb 25, 2020
During the evaluation in the package phase, we determine whether a `requirements.txt` file exists, or whether we need to generate one. Since the `pyproject.toml` file is used by poetry, but only if a stanza is contained inside the file, use the function `isPoetryProject()` along with the configuration value, thereby reducing the need for a project to have to declare a configuration override. Refs serverless#324 Refs serverless#344 Fixes serverless#400 Signed-off-by: Mike Fiedler <[email protected]>
miketheman
added a commit
to miketheman/serverless-python-requirements
that referenced
this issue
Feb 28, 2020
During the evaluation in the package phase, we determine whether a `requirements.txt` file exists, or whether we need to generate one. Since the `pyproject.toml` file is used by poetry, but only if a stanza is contained inside the file, use the function `isPoetryProject()` along with the configuration value, thereby reducing the need for a project to have to declare a configuration override. Refs serverless#324 Refs serverless#344 Fixes serverless#400 Signed-off-by: Mike Fiedler <[email protected]>
I am using poetry and see this issue, 5.1.0
|
bsamuel-ui
pushed a commit
that referenced
this issue
May 4, 2020
During the evaluation in the package phase, we determine whether a `requirements.txt` file exists, or whether we need to generate one. Since the `pyproject.toml` file is used by poetry, but only if a stanza is contained inside the file, use the function `isPoetryProject()` along with the configuration value, thereby reducing the need for a project to have to declare a configuration override. Refs #324 Refs #344 Fixes #400 Signed-off-by: Mike Fiedler <[email protected]>
Aubtin
pushed a commit
to Aubtin/serverless-python-requirements
that referenced
this issue
Sep 16, 2020
During the evaluation in the package phase, we determine whether a `requirements.txt` file exists, or whether we need to generate one. Since the `pyproject.toml` file is used by poetry, but only if a stanza is contained inside the file, use the function `isPoetryProject()` along with the configuration value, thereby reducing the need for a project to have to declare a configuration override. Refs serverless#324 Refs serverless#344 Fixes serverless#400 Signed-off-by: Mike Fiedler <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is related to #324
When I have a
pyproject.toml
file I must explicitly sayusePoetry: 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
sls package
to get the errorcustom
section in theserverless.yaml
file. Runningsls package
again works.There is a work around but it seems unintuitive
The text was updated successfully, but these errors were encountered: