uv
bf2ee6bc - Adds support for --no-deps to pip compile (#1311)

Commit
1 year ago
Adds support for --no-deps to pip compile (#1311) Mostly throwing this up here as a discussion topic. Having something like this is primarily useful for enabling use cases similar to `rye add` where I want to use this currently. One can accomplish something similar with `unearth` today or by abusing regular `pip install`: ``` $ ~/.rye/self/bin/pip install --no-deps --dry-run flask --report - -q | jq '.install[0].metadata | {name, version}' { "name": "Flask", "version": "3.0.2" } ``` Another option would be to have a `puffin resolve` command or similar that works like `pip compile` without dependencies, takes the requirements as arguments and returns a line for each resolution. That would be a larger change.
Author
Parents
Loading