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 lockfile for PythonFunction bundling #32413

Open
2 tasks
garysassano opened this issue Dec 7, 2024 · 2 comments
Open
2 tasks
Labels
@aws-cdk/aws-lambda-python effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2

Comments

@garysassano
Copy link

garysassano commented Dec 7, 2024

Describe the feature

Today, PythonFunction supports lockfiles from the following ecosystems:

  • PIP
  • Poetry

uv is gaining in popularity and has its own lockfile, uv.lock. It would be great if PythonFunction supported using this lockfile.

Use Case

Allow the usage of Python modern dev tools.

Proposed Solution

Update the bundling logic in the Dockerfile.

The Dockerfile is still using Python 3.7 as the default, despite even Python 3.8 being deprecated.

Other Information

Issue inspired by #31753
Issue related to #31238

Acknowledgements

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

CDK version used

2.172.0

Environment details (OS name and version, etc.)

Ubuntu 24.04

@garysassano garysassano added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Dec 7, 2024
@pahud
Copy link
Contributor

pahud commented Dec 9, 2024

Makes sense for me. Please help us prioritize with 👍

@pahud pahud added p2 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Dec 9, 2024
@garysassano
Copy link
Author

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 effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2
Projects
None yet
Development

No branches or pull requests

2 participants