aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

aws-lambda-python-alpha: Support uv

Open sachaos opened this issue 1 year ago • 1 comments

Describe the feature

Just as poetry is supported, uv will also be supported.

Use Case

Manage python modules by uv, and deploy it to AWS Lambda.

Proposed Solution

The uv can generate requirements.txt by running uv pip compile.

Other Information

No response

Acknowledgements

  • [X] I may be able to implement this feature request
  • [ ] This feature might incur a breaking change

CDK version used

2.154.0

Environment details (OS name and version, etc.)

macOS Sonoma 14.5

sachaos avatar Aug 28 '24 11:08 sachaos

Hi @sachaos

We appreciate that. Feel free to submit your PR. Thank you!

pahud avatar Aug 28 '24 20:08 pahud

If your implementation is going to use uv to generate a requirements.txt then you'll end up using pip to install, meaning the solution will be missing out on uv being so fast in installing the dependencies

I would suggest to think about how to capitalize on uv's speed to speed up CDK builds

orshemtov avatar Dec 18 '24 21:12 orshemtov

For anyone in need of a temporary solution, I came across this uv-python-lambda construct.

garysassano avatar Dec 23 '24 22:12 garysassano

Sounds like a terrific idea. I can't wait to see that happen!

kucharzyk-sebastian avatar Jan 04 '25 11:01 kucharzyk-sebastian

This issue has received a significant amount of attention so we are automatically upgrading its priority. A member of the community will see the re-prioritization and provide an update on the issue.

github-actions[bot] avatar Feb 16 '25 00:02 github-actions[bot]

Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.

github-actions[bot] avatar Jul 02 '25 09:07 github-actions[bot]