Closed sbidoul closed 2 months ago
The problem occurs with an override of pysocks==1.7.1
. pysocks is an optional dependency of urllib3 (pysocks!=1.5.7,<2.0,>=1.5.6; extra == 'socks'
) and it seems we're doing the extras check wrong when applying overrides.
Thanks for the fix!
In some cases, which I have difficulties to narrow down, it seems uv is installing everything specified in
--override
even though nothing depends on them.I can reproduce with uv 0.2.21 with python 3.10 on Ubuntu 22.04 with the following bits.
Assume the following
pyproject.toml
and the following
override.txt
(sorry, I could not narrow it down to something smaller):then
uv venv -p 3.10 ; uv pip install --override override.txt .
installs everything that is inoverride.txt
even though the project does not depend on them.