pixi icon indicating copy to clipboard operation
pixi copied to clipboard

Project-specific repodata patches

Open pavelzw opened this issue 1 month ago • 3 comments

It would be cool if we had the opportunity to do repodata patches for manually adjusting dependencies in case they have some unwanted constraints that we want to relax

[workspace]
channels = ["conda-forge", "https://prefix.dev/bioconda"]

[channels."https://prefix.dev/bioconda"]
repodata-patches = ["my-patch.conda"]

not sure about how the exact should look like, maybe adjusting the dependencies of a specific package directly could be more comfortable?

pavelzw avatar Nov 05 '25 15:11 pavelzw

@pavelzw would a feature similar to what uv provides also work for you, if we implemented for conda?
https://docs.astral.sh/uv/concepts/resolution/#dependency-metadata

Hofer-Julian avatar Nov 10 '25 08:11 Hofer-Julian

The reason we are asking is because, I would like to implement that at some point. However, patching would allow patching multiple versions, but this only allows patching a single version.

tdejager avatar Nov 10 '25 08:11 tdejager

yes this should also work. would be cool though if it was possible to specify this per conda package

[dependency-metadata."polars-1.0.0-hcf12345.conda".dependencies]
run = ["numpy>=1.8.1", "scipy>=0.13.0", "six>=1.11.0"]

something like this maybe?

maybe there is a better api, haven't though about how this should look like much

pavelzw avatar Nov 10 '25 12:11 pavelzw