You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to introduce uv into my project. I did the following things to simulate the scenario of installing development dependencies when other members switch to using uv:
uv add --dev pycowsay
uv pip uninstall pycowsay
At this point, pyproject.toml has:
[dependency-groups]
dev = [
"pycowsay>=0.0.0.1",
]
But pycowsay is not installed in the environment, just like what other members may encounter.
At this time, if you run uv pip install -r pyproject.toml, pycowsay will not be installed.
Trying to add --extra dev results in an error:
$ uv pip install -r pyproject.toml --extra dev
error: Requested extra not found: dev
How can I achieve my goal? Or am I trying to solve the wrong problem?
The text was updated successfully, but these errors were encountered:
We don't support dependency groups in the uv pip interface right now. We've been waiting on pip itself so that we can align on a similar CLI. Dependency groups are only supported in uv sync, uv lock, etc.
Hi.
I'm trying to introduce uv into my project. I did the following things to simulate the scenario of installing development dependencies when other members switch to using uv:
At this point,
pyproject.toml
has:But
pycowsay
is not installed in the environment, just like what other members may encounter.At this time, if you run
uv pip install -r pyproject.toml
,pycowsay
will not be installed.Trying to add
--extra dev
results in an error:How can I achieve my goal? Or am I trying to solve the wrong problem?
The text was updated successfully, but these errors were encountered: