We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Environment Info:
uv: 0.5.7 os: Ubuntu 22.04.5 LTS
Using the following paragraph in pyproject.toml ...
pyproject.toml
[tool.uv] override-dependencies = [ "some-lib @ file:///${PROJECT_ROOT}/libs/some-lib-1.4.1-cp311.cp312-none-linux_x86_64.whl; platform_machine == 'x86_64'", "some-lib @ file:///${PROJECT_ROOT}/libs/some-lib-1.4.1-cp311.cp312-none-linux_aarch64.whl; platform_machine == 'aarch64'", ]
... leads to the following error: uv sync
uv sync
error: Overrides contain conflicting URLs for package `some-lib`: - file:///${PROJECT_ROOT}/libs/some-lib-1.4.1-cp311.cp312-none-linux_x86_64.whl - file:///${PROJECT_ROOT}/libs/some-lib-1.4.1-cp311.cp312-none-linux_aarch64.whl
Not sure if I'm doing something wrong here, but imho this should work since the URLs are for different platforms.
EDIT:
I got it to work with
[tool.uv.sources] some-lib = [ { path = "libs/some-lib-1.4.1-cp311.cp312-none-linux_x86_64.whl", marker = "platform_machine == 'x86_64'" }, { path = "libs/some-lib-1.4.1-cp311.cp312-none-linux_aarch64.whl", marker = "platform_machine == 'aarch64'" }, { path = "", marker = "platform_machine != 'x86_64' and platform_machine != 'aarch64'" }
So this ticket can (probably) be closed
The text was updated successfully, but these errors were encountered:
Thanks. I think what you have above should probably still work so I'll leave this open.
Sorry, something went wrong.
f0a2d6f
charliermarsh
Successfully merging a pull request may close this issue.
Environment Info:
Using the following paragraph in
pyproject.toml
...... leads to the following error:
uv sync
Not sure if I'm doing something wrong here, but imho this should work since the URLs are for different platforms.
EDIT:
I got it to work with
So this ticket can (probably) be closed
The text was updated successfully, but these errors were encountered: