-
Notifications
You must be signed in to change notification settings - Fork 900
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
Implement uv add
#3959
Comments
#4193 provides the initial implementation. However, there are still some improvements and open questions:
|
Also: adding dependencies that are extras. |
Excited for what's to come! Forgive my curiosity here. :) I almost asked this in #3560, where the differences and potential confusion between the planned commands Are you guys planning on a command that installs packages to the current venv (or system-wide, I guess) independent of a "project"-like setup? I.e. where there is no
But at the same time, if my impressions from your comments in various places are correct, a Or will |
## Summary Support unnamed URL requirements in `uv add`. For example, `uv add git+https://github.com/pallets/flask`. Part of #3959.
## Summary Support adding/removing dependencies from `tool.uv.dev-dependencies` with `uv add/remove --dev`. Part of #3959.
## Summary After this change, `uv add` will try to use `tool.uv.sources` for all source requirements. If a source cannot be resolved, i.e. an ambiguous Git reference is provided, it will error. Git references can be specified with the `--tag`, `--branch`, or `--rev` arguments. Editables are also supported with `--editable`. Users can opt-out of `tool.uv.sources` support with the `--raw` flag, which will force uv to use `project.dependencies`. Part of #3959.
@matterhorn103 Yes, the new project APIs are structured specifically around |
As part of the Project API, we should have native
add
andremove
commands.The text was updated successfully, but these errors were encountered: