Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

aws-lambda-python-alpha: Support uv #31238

Open
1 of 2 tasks
sachaos opened this issue Aug 28, 2024 · 3 comments
Open
1 of 2 tasks

aws-lambda-python-alpha: Support uv #31238

sachaos opened this issue Aug 28, 2024 · 3 comments
Labels
@aws-cdk/aws-lambda-python feature-request A feature should be added or improved. p2

Comments

@sachaos
Copy link

sachaos commented Aug 28, 2024

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

  • 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 sachaos added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Aug 28, 2024
@pahud pahud added p2 and removed needs-triage This issue or PR still needs to be triaged. labels Aug 28, 2024
@pahud
Copy link
Contributor

pahud commented Aug 28, 2024

Hi @sachaos

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

@orshemtov
Copy link

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

@garysassano
Copy link

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
@aws-cdk/aws-lambda-python feature-request A feature should be added or improved. p2
Projects
None yet
Development

No branches or pull requests

4 participants