Skip to content

Feature request: Add uv support for building #7744

Closed

Description

@JonZeolla

Describe your idea/feature/enhancement

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

Activity

  1. added
    stage/needs-triage
    type/feature
    on Nov 26, 2024
  2. lucashuy commented on Nov 27, 2024

    @lucashuy
    Contributor

    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.

  3. added
    area/build
    and removed
    stage/needs-triage
    on Nov 27, 2024
  4. JonZeolla commented on Nov 30, 2024

    @JonZeolla
    Author

    Yes, exactly. In the interim, uv does have a pip-compatible interface at uv pip ... which could be stepping stone

  5. changed the title [-]Feature request: Add uv.lock support for python lambdas[/-] [+]Feature request: Add uv support for building[/+] on Nov 30, 2024
  6. hellupline commented on Dec 10, 2024

    @hellupline

    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

  7. trallnag commented on Jan 20, 2025

    @trallnag
  8. mbtx2 commented on Mar 31, 2025

    @mbtx2

    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.

  9. jinxiao commented on May 11, 2025

    @jinxiao

    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:

    1. make lambda-builders to support uv, this command is used to build the lambda code. There is an request_json will be generated then parsed by the lambda-builers, related github repo: https://github.com/aws/aws-lambda-builders
    2. (Optional) Make the build image of sam to support uv, since there is no UV installed by default build image.
  10. reedham-aws commented on Feb 13, 2026

    @reedham-aws
    Contributor

    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).

  11. added
    stage/waiting-for-release
    on Feb 17, 2026
  12. github-actions commented on Mar 6, 2026

    @github-actions
    Contributor

    Patch is released in v1.155.2. Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/buildstage/waiting-for-releasetype/feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions