-
-
Notifications
You must be signed in to change notification settings - Fork 641
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
Switch to [lambdex].layout = "zip" by default, deprecating the section #19122
Conversation
316d1c2
to
4023b6d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay!
removal_version="2.19.0.dev0", | ||
removal_hint=softwrap( | ||
""" | ||
Remove the whole [lambdex] section, as Lambdex is deprecated and its functionality be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the whole [lambdex] section, as Lambdex is deprecated and its functionality be | |
Remove the whole [lambdex] section, as Lambdex is deprecated and its functionality will be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly no need to change this and trigger a new CI run, can tweak it in a future change, and merge as-is now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added to #19067 as a reminder.
This renames the `python_awslambda` target to `python_aws_lambda_function`. This is to reduce ambiguity now that Pants has support for building layers via `python_aws_lambda_layer` (#19123), in addition to functions, and also aligns with the `python_google_cloud_function` target too. This change has a single release deprecation since it's easy to fix, and keeps it inline with the layout switch over (e.g. #19122), but it's also easy to keep around for longer. This PR essentially just does a search and replace on the documentation, it doesn't update the docs to include info about layers. I'm working on that separately.
This updates the AWS Lambda and Google Cloud Functions documentation to be appropriate for Pants 2.18, which includes: - updates for the migration from Lambdex to 'native'/zip (continuing #19067 and #19122) - describing how to build a Lambda layer (documenting #19123) - updating the AWS Lambda docs for renaming from `python_awslambda` to `python_aws_lambda_function` (finishing off #19216)
This continues #18879 / #19076, by switching to the new
zip
layout by default, for 2.18. This also deprecates the option entirely, telling users to remove the[lambdex]
section.As a reminder, the phasing is:
layout = "lambdex"
is implicit, tell people to set it: recommendzip
, but allowlambdex
if they have tolayout
is set, tell people to remove it and thus switch to (implicit)zip
[lambdex]
section entirely)