Skip to content

Create include array for zip step if undefined #89

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

Conversation

miketheman
Copy link
Contributor

Refs #16
Similar to 6c5523c

Signed-off-by: Mike Fiedler [email protected]

Refs #16
Similar to 6c5523c

Signed-off-by: Mike Fiedler <[email protected]>
@@ -141,3 +141,10 @@ teardown() {
unzip .serverless/sls-py-req-test.zip -d puck
! ls puck/hug
}

@test "py3.6 can package flask with zip option and no explicit include" {
sed -i'.bak' -e 's/zip: *false/zip: true/' -e 's/include://' -e 's/^.*handler.py//' serverless.yml
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Apologies here - I spent 15 minutes trying to get the right sed syntax for multiline in one expression before smashing my keyboard and writing the second expression.

Copy link
Contributor

@dschep dschep left a comment

Choose a reason for hiding this comment

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

LGTM! and no worries about the multiple expressions, that's the better solution anyway IMO 😉

@dschep dschep merged commit 1612878 into serverless:master Oct 17, 2017
dschep added a commit that referenced this pull request Oct 17, 2017
@miketheman miketheman deleted the miketheman/implicit-include-zip branch October 19, 2017 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants