-
-
Notifications
You must be signed in to change notification settings - Fork 470
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
force "incompatible" version #505
Comments
i too would like to this via pyproject.toml |
We support this over in uv now. I wonder if Rye supports it if you use the uv overrides syntax in your |
@zanieb i couldn't find any docs/notes on the overrides syntax in uv. how do you define them in pyproject.toml? |
Here's an example in our test suite https://github.com/astral-sh/uv/blob/b22ee82f0d3af607cc49d3f3870805769ea0b6e6/crates/uv/tests/pip_compile.rs#L3014-L3029 Basically: [tool.uv]
override-dependencies = [
"..."
] |
i tried it and still had problems, so perhaps there's something on rye side
|
Sounds like the override was applied here though?
|
i apologize, i assumed the override would force installation of that version despite the requirements being unsatisfied |
Nope the override allows you to change the required version of a package when it is specified by a dependency in your tree. |
interesting developments but i'll still keep it open as what we're looking for is to force install. |
Can you explain what the semantics of that would be? |
I can explain the usecase i had @charliermarsh
in pnpm its a bit like |
Adding my use case from #1231 here, there are a set of pyyaml which are seemingly incompatible with rye, as evidenced by this rye PR, and some dependencies of ours pull in one of those versions. |
Sometimes pip(?) refuses to install a package whose version I specify in pyproject.toml creates a supposed incompatibility. Is there a way to override this? As a workaround I manually update the requirements*.txt while not specifying a version in pyproject.toml.
The text was updated successfully, but these errors were encountered: