prefix-dev / pixi

Package management made easy
https://pixi.sh
BSD 3-Clause "New" or "Revised" License
3.3k stars 183 forks source link

Patch conda-pypi mapping with a specific name #1470

Open nichmor opened 5 months ago

nichmor commented 5 months ago

Problem description

Right now users can specify their own mapping by this:

conda-pypi-map = { "conda-forge" = "https://example.com/mapping", "https://repo.prefix.dev/robostack" = "local/robostack_mapping.json"}

based on the discussion with @tdejager it would be nice to have the ability to patch mapping, just by adding a name or fixing an existing one, without entire overwriting of it.

ruben-arts commented 5 months ago

This would indeed be great!

Something like this?:

conda-pypi-map = { "conda-forge" = {patch = { boltons_py = "boltons"}}
nichmor commented 5 months ago

This would indeed be great!

Something like this?:

conda-pypi-map = { "conda-forge" = {patch = { boltons_py = "boltons"}}

yeah! In this case we can also configure channel-specific settings conda-pypi-map = { "conda-forge" = { "url": "https://example.com/mapping", "overwrite": false}

ruben-arts commented 5 months ago

As in "extra_url" you mean?