-
-
Notifications
You must be signed in to change notification settings - Fork 644
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
Rename python_awslambda
to python_aws_lambda_function
#19216
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
benjyw
approved these changes
Jun 1, 2023
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)
huonw
added a commit
that referenced
this pull request
Oct 31, 2023
This PR extends the deprecation of the old `python_awslambda` alias for the `python_aws_lambda_function` target, to make it easier/smoother for people to upgrade to 2.18 and particularly 2.19. We renamed the `python_awslambda` target to `python_aws_lambda_function` in #19216 (in 2.18), and deprecated the old name. This was originally scheduled to be removed in 2.19, and happened in #19759, but I've reconsidered that slightly: 2.17 - 2.19 is a time of much upheaval for Pants' FaaS support, so it seems sensible to try to smooth that over if we can, especially for something like this, that's just two lines of configuration (not even "real" code).
huonw
added a commit
that referenced
this pull request
Oct 31, 2023
This PR extends the deprecation of the old `python_awslambda` alias for the `python_aws_lambda_function` target, to make it easier/smoother for people to upgrade to 2.18 and particularly 2.19. We renamed the `python_awslambda` target to `python_aws_lambda_function` in #19216 (in 2.18), and deprecated the old name. This was originally scheduled to be removed in 2.19, and happened in #19759, but I've reconsidered that slightly: 2.17 - 2.19 is a time of much upheaval for Pants' FaaS support, so it seems sensible to try to smooth that over if we can, especially for something like this, that's just two lines of configuration (not even "real" code).
huonw
added a commit
that referenced
this pull request
Oct 31, 2023
…#20101) (#20125) This PR extends the deprecation of the old `python_awslambda` alias for the `python_aws_lambda_function` target, to make it easier/smoother for people to upgrade to 2.18 and particularly 2.19. We renamed the `python_awslambda` target to `python_aws_lambda_function` in #19216 (in 2.18), and deprecated the old name. This was originally scheduled to be removed in 2.19, and happened in #19759, but I've reconsidered that slightly: 2.17 - 2.19 is a time of much upheaval for Pants' FaaS support, so it seems sensible to try to smooth that over if we can, especially for something like this, that's just two lines of configuration (not even "real" code).
This was referenced Feb 26, 2024
huonw
added a commit
that referenced
this pull request
Feb 27, 2024
The `python_awslambda` target was replaced by `python_aws_lambda_function` in #19216, first released in 2.18.0.dev1 (the deprecation was extended in #20101). We're now up to 2.21 (#20609), and thus the deprecation has expired and this can be removed. This has been deprecated for 3 versions, and is easy for users to adapt to, so doesn't seem worth extending.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This renames the
python_awslambda
target topython_aws_lambda_function
. This is to reduce ambiguity now that Pants has support for building layers viapython_aws_lambda_layer
(#19123), in addition to functions, and also aligns with thepython_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.