-
Notifications
You must be signed in to change notification settings - Fork 663
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
Can't install a recent version of ansible-lint with uv #4348
Comments
Update: ... in the meantime, I found a way to bypass this issue, by adding the following to the
...but it's a solution using the uv proprietary section. |
This same dependency resolution problem is happening with Could this please be done instead at runtime in the Python code, with a command line option (and config file setting)? This would allow a developer/debugger to ignore the problem when linting to avoid this being a blocker when debugging other dependency issues. |
That seems to be a |
AFAIU the issue is as follows:
That is While I find the use of a fake dependency to prohibit the installation on a certain platform not very elegant, I am also puzzled by the fact that apparently (i.e. AFAIK) python does not provide an obvious solution for this (IMHO) reasonable use-case. |
@ssbarnea You're confusing the uv pip interface¹ with the uv project interface². The pip interface doesn't use Steps to reproduce: uv init
uv add ansible-lint
uv pip show ansible-lint Alternatively ¹ "Manually managing environments and packages — intended to be used in legacy workflows or cases where the high-level commands do not provide enough control." |
I am also experiencing the same issue as in the OP. The recommendation from @dpprdan to add [tool.uv]
environments = ["platform_system != 'Windows'"] to The real problem that I was experiencing was with an incompatibility of Please, please consider making this a runtime check. As seen in issues related to poetry and pdm, this is not a unique problem and reports of this will continue to come in I expect. |
Environment: MacOS 15.0
Ansible version: 10.4.0
uv version: 0.4.15
When trying to installed ansible-lint n a uv-managed virtual environment, with
uv add ansible-lint
, uv will only installed the version 6.8.7 which seems to be the last version with a dependency tree that uv can resolve.So I tried to force a more recent version by specifying the version in
pyproject.toml
(for example>=24.9.2
), but in that case I get the following dependency tree solving error:I also tried the following in the
pyproject.toml
:...but this platform flag seems to have no effect and I get the same error.
The text was updated successfully, but these errors were encountered: