Skip to content

fix: check if pyproject has poetry earlier #477

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

Merged
merged 2 commits into from
Mar 26, 2020

Conversation

miketheman
Copy link
Contributor

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]

Copy link
Contributor

@bsamuel-ui bsamuel-ui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just waiting on CI to pass; looks like it needs prettier run against lib.js.

@miketheman
Copy link
Contributor Author

Will repair tonight/tomorrow. This is a classic case of splitting up the ci job to workflows - get that fast feedback on the lint before the beefy test suite.

@miketheman miketheman self-assigned this 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]>
@bsamuel-ui bsamuel-ui merged commit 5177cdd into serverless:master Mar 26, 2020
@miketheman miketheman deleted the miketheman/fix-400 branch March 28, 2020 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Poetry
3 participants