Skip to content
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

Merged
merged 2 commits into from
May 25, 2023

Conversation

huonw
Copy link
Contributor

@huonw huonw commented May 23, 2023

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:

release supports lambdex? supports zip? default layout deprecation warnings
2.17 lambdex if layout = "lambdex" is implicit, tell people to set it: recommend zip, but allow lambdex if they have to
2.18 (this PR) zip if layout is set, tell people to remove it and thus switch to (implicit) zip
2.19 zip none, migration over (or maybe just about removing the [lambdex] section entirely)

@huonw huonw changed the title Switch to [lambdex].layout = "zip", deprecating the section Switch to [lambdex].layout = "zip" by default, deprecating the section May 23, 2023
@huonw huonw force-pushed the feature/18879-zip-by-default branch from 316d1c2 to 4023b6d Compare May 23, 2023 22:53
@huonw huonw requested a review from benjyw May 23, 2023 22:54
Copy link
Contributor

@benjyw benjyw left a 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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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

Copy link
Contributor

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.

Copy link
Contributor Author

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.

@huonw huonw merged commit 8637f9c into pantsbuild:main May 25, 2023
@huonw huonw deleted the feature/18879-zip-by-default branch May 25, 2023 21:33
huonw added a commit that referenced this pull request Jun 1, 2023
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.
huonw added a commit that referenced this pull request Jun 1, 2023
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants