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

Rename python_awslambda to python_aws_lambda_function #19216

Merged
merged 3 commits into from Jun 1, 2023

Conversation

huonw
Copy link
Contributor

@huonw huonw commented 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 huonw enabled auto-merge (squash) June 1, 2023 04:30
@huonw huonw merged commit f34846f into pantsbuild:main Jun 1, 2023
24 checks passed
@huonw huonw deleted the feature/rename-python_awslambda branch June 1, 2023 04:39
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).
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants