rattler icon indicating copy to clipboard operation
rattler copied to clipboard

Add extra solve options

Open wolfv opened this issue 1 year ago • 3 comments

uv has some nice solver options:

  • --exclude-newer (compare timestamps and exclude packages that were published after some date)
  • --override to override some dependencies (basically a way of locally "repodata patching")

wolfv avatar Mar 30 '24 18:03 wolfv

exclude_newer has been implemented in #654

baszalmstra avatar May 14 '24 09:05 baszalmstra

@wolfv What do you think should be the input for --override? What would it look like in code?

baszalmstra avatar May 14 '24 11:05 baszalmstra

I am thinking something like HashMap<MatchSpec, MatchSpec>.

So that you can do something like:

jupyterlab 3.3.*: python ==3.10

And this would replace all dependencies with name python of any jupyterlab 3.3.* with the specified one.

It's relatively broad but I think people should be able to make it specific enough for their use cases.

wolfv avatar May 16 '24 07:05 wolfv