You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: Add uv support for building #7744
Currently you can sam build with a --manifest requirements.txt but it would be nice to add support for uv.lock files as described here
Reacted by Corey Cole, Mike Fiedler, David Baleiwai, Seth Paul, Edgardo Gutierrez Jr., Justin Plock, Hleb Kastseika, xbahm, Thibaut ETIENNE, Colin Murtaugh and 25 more
Reacted by Hleb Kastseika, Fernando Souza (mercadoedu), Sean, Alessandro Ferrari, tops-jayendrasinh, jeffcarrico, grumbling-tom, Nick Lawrence, Camilo Velasquez and pavitra-infocusp
Hey, thanks for raising this up with us. Would it be fair to expand this further to supporting uv in general with SAM CLI's build processes? Currently, as you might already be aware, we only support pip as the tool to install and build Python projects, but we are open to requests.
so far, pip is the official tool for python packages,
and the python ecosystem still not solidified on which tooling we should use, there is raw pip, poetry, uv, etc
I think the best aproach is for sam-cli to just support requirements.txt and those tooling export to requirements.txt
in uv case:
uv pip compile -o src/requirements.txt pyproject.toml
running this just before sam build should suffice
Reacted by An, Tran Cong Viet, Alessandro Ferrari and nua
Reacted by Martino di Filippo, tops-jayendrasinh, Stephen and Felix B
Yes, but nothing for SAM. I think with all the traction uv is getting, this would be a very good addition to the SAM tooling if it could be added.
Reacted by Lucas Moore, Colin Murtaugh, Fernando Souza (mercadoedu), Jonathan Simon, JM, Saahitya Edamadaka, Sean, Nathan Sgarlata, tops-jayendrasinh, Andrew Stahlman and 6 more
Activity
lucashuy commentedon Nov 27, 2024
Hey, thanks for raising this up with us. Would it be fair to expand this further to supporting
uvin general with SAM CLI's build processes? Currently, as you might already be aware, we only supportpipas the tool to install and build Python projects, but we are open to requests.JonZeolla commentedon Nov 30, 2024
Yes, exactly. In the interim,
uvdoes have apip-compatible interface atuv pip ...which could be stepping stone[-]Feature request: Add uv.lock support for python lambdas[/-][+]Feature request: Add uv support for building[/+]hellupline commentedon Dec 10, 2024
so far,
pipis the official tool for python packages,and the python ecosystem still not solidified on which tooling we should use, there is raw
pip,poetry,uv, etcI think the best aproach is for sam-cli to just support requirements.txt and those tooling export to requirements.txt
in
uvcase:uv pip compile -o src/requirements.txt pyproject.tomlrunning this just before
sam buildshould sufficetrallnag commentedon Jan 20, 2025
There is a pretty extensive documentation on using uv with AWS Lambda: https://docs.astral.sh/uv/guides/integration/aws-lambda/
mbtx2 commentedon Mar 31, 2025
Yes, but nothing for SAM. I think with all the traction uv is getting, this would be a very good addition to the SAM tooling if it could be added.
jinxiao commentedon May 11, 2025
Please correct me if I am wrong.
After I have analyzed the code in aws sam cli. There are two things before this can be supported:
reedham-aws commentedon Feb 13, 2026
This feature has been merged (at least in experimental form) in #8549. I will close this issue when it gets released in the next release (1.155.0).
github-actions commentedon Mar 6, 2026
Patch is released in v1.155.2. Closing