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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specification of additional requirements in uv tool run #3678

Merged
merged 1 commit into from
May 23, 2024

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented May 20, 2024

Allows requesting additional transitive dependencies when running a tool.

e.g. uv tool run -v --with anyio ruff check example.py (Why would you want anyio with ruff? Who knows 馃槃)

The motivation for doing this now is that I think the first implementation of uv tool install might just shim into uv tool run with pinned dependencies? Regardless this is something we need in the long run and is a trivial addition right now.

@zanieb zanieb added the preview Experimental behavior label May 20, 2024
@zanieb zanieb marked this pull request as ready for review May 21, 2024 15:24
Base automatically changed from zb/tool-run-spec to main May 22, 2024 19:48
e.g. `uv tool run -v --with anyio ruff check example.py`

# Conflicts:
#	crates/uv/src/commands/tool/run.rs

# Conflicts:
#	crates/uv/src/commands/tool/run.rs
#	crates/uv/src/main.rs
@zanieb zanieb merged commit 9b870f2 into main May 23, 2024
45 checks passed
@zanieb zanieb deleted the zb/tool-run-with branch May 23, 2024 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview Experimental behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants