-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
uv pip compile --universal
not picking up required transitive dependency for certain python versions
#11304
Comments
If you don't specify a |
I think that’s sensible enough. Maybe more of a documentation fix then, the cli help doesn’t seem to imply this limitation. |
We do have this in the documentation
and
|
Interesting, it looks like maybe the
|
Summary
Overview
I'm seeing some weird behavior where
uv pip compile --universal
does not seem to properly resolve theasync-timeout
transitive dependency ofaiohttp
, which is only required for python < 3.11. We can see this dep listed here.It does seem to work if
--python-version
is specified to a lower version (despite warning it doesn't exist), though this doesn't seem to be the intended outcome reading the docs/help strings for--universal
and--python-version
.Repro
uv.toml
requirements.in
Commands:
Output:
versions:
Note that running using
--python 3.10
provides a warning that it does not exist, but provides the expected output below now:async-timeout==5.0.1 ; python_full_version < '3.11'
Cargo culting
One more note, and take this with a grain of salt, but I am 80% sure it initially did not resolve the transitive dep when using
--python-version 3.10
, but then after removingpython-preference = "managed"
from myuv.toml
and then rerunning, it seemed to now work (though I am unable to reproduce that behavior now). I am only including this in case it is somehow related to existing uv python versions on the system.Platform
macOS
Version
uv 0.5.29 (ca73c47 2025-02-05)
Python version
Python 3.11.8
The text was updated successfully, but these errors were encountered: