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: Add uv support for building #7744

Open
JonZeolla opened this issue Nov 26, 2024 · 3 comments
Open

Feature request: Add uv support for building #7744

JonZeolla opened this issue Nov 26, 2024 · 3 comments
Labels
area/build sam build command type/feature Feature request

Comments

@JonZeolla
Copy link

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

@JonZeolla JonZeolla added stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. type/feature Feature request labels Nov 26, 2024
@lucashuy
Copy link
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.

@lucashuy lucashuy added area/build sam build command and removed stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. labels Nov 27, 2024
@JonZeolla
Copy link
Author

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

@JonZeolla JonZeolla changed the title Feature request: Add uv.lock support for python lambdas Feature request: Add uv support for building Nov 30, 2024
@hellupline
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build sam build command type/feature Feature request
Projects
None yet
Development

No branches or pull requests

3 participants