-
Notifications
You must be signed in to change notification settings - Fork 751
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
question for feature request: is there a way to "pin" a specific dependency to the latest? #6404
Comments
This doesn't exist, but it might be feasible. I'd like to hear some more use-cases from other users first though, it seems hard to get right. |
Maybe a similar issue, we've seen issues specifically with botocore and related libs where the uv resolver will always fail to resolve due to the sheer number of versions. The backtracking does not seem to be able to reach a solution, so we end up with arbitrary pinning in all of our requirements files:
Even doing something like pinning lower bound to the ranges e.g.
It is surprising because it seems like if the dep resolver took a different search strategy (e.g. searching most recent versions for all first) it should be a fairly fast resolve, but because it wants to walk down versions one lib at a time, it ends up looking at hundreds of boto-related versions before failing. |
@BrendanJM lots of prior discussion about that, e.g., in #1398 or #4333 — sorry you're having trouble with it though. It's something we want to explore but it's very hard. |
For what it's worth, this is an issue I've written up elsewhere, too: pypa/pip#12028 A suggestion made there was perhaps a new version specifier, bit it seems to me it could be some kind of resolver feature, too. |
I'm looking for a way to do the equivalent of: specify a pin of a dependency to whatever the latest currently is.
For example, say I have a
requirements.txt
that has something like:but at the time of installation, would be the equivalent of:
(since that's the latest for botocore as of this writing). I can't just save that as a
requirements.txt
becausebotocore
makes a new release like every day. A specific use case is that botocore has like 2000 releases so I don't want it to try to backtrack on it if it needs to search for compatible versions.My main use case is to give my non-python-expert users a command they can use to to ensure they're on the very latest versions of my own code but I don't want to force them to upgrade any other dependencies unnecessarily.
The text was updated successfully, but these errors were encountered: