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

[Feature request] Generate AWS lambda zips using uv build #9350

Open
kishaningithub opened this issue Nov 22, 2024 · 3 comments
Open

[Feature request] Generate AWS lambda zips using uv build #9350

kishaningithub opened this issue Nov 22, 2024 · 3 comments

Comments

@kishaningithub
Copy link

Generating python lambda zips is a cumbersome process. It would be great if uv build can have the ability to generate AWS Lambda zip files which can be used to create lambda function in AWS.

AWS Documentation Link: https://docs.aws.amazon.com/lambda/latest/dg/python-package.html#python-package-create-dependencies

@samypr100
Copy link
Collaborator

Could you expand on how are you currently using uv to generate these?

@kishaningithub
Copy link
Author

My shell script does the following

  • Use uv to build wheel file
  • Extract the wheel file
  • Copy contents of the wheel into a directory
  • Copy project runtime dependencies into the same directory
  • Zip the directory
  • Upload the zip to AWS

@samypr100
Copy link
Collaborator

Is there a reason you wouldn't be able to use --target like the AWS lambda guide says? I'm trying to understand if there's a compatibility gap with what pip enables you to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants