cool-easter-32542
06/13/2023, 10:34 PMruntime or complete_platforms must be specified to imply the Python version/wheels. In many cases, a repo will be using a narrow interpreter constraint, like ==3.10.*, and hence the runtime is obvious.
Describe the solution you'd like
Allow python_aws_lambda_function(handler="foo.py:bar") alone, and it'll infer the runtime (and hence complete_platforms #18195) if the ICs of foo.py only include a single major version. If they cover more than one, error as ambiguous and require runtime as now.
And similarly for python_google_cloud_function.
Describe alternatives you've considered
N/A
Additional context
Add any other context or screenshots about the feature request here.
pantsbuild/pantscool-easter-32542
06/16/2023, 2:29 AM