Add default-conda-pypi-map to Config.toml. - #6858
Open
FHTMitchell wants to merge 1 commit into
Open
Conversation
This sets `conda-pypi-map` on `pixi-init` from the default values unless overridden with a CLI flag. AI-Authored-By: anthropic/claude-opus-5-anthropic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This sets
conda-pypi-maponpixi-initfrom the default values in config (unless overridden with the CLI flag).Description
Currently, you can add a
[conda-pypi-map]section to apixi.tomlmanifest.This works, but means it needs to be updated per repo in an organisation. This PR adds a config section to the
~/.pixi/config.toml,[default-conda-pypi-map]that writes thenconda-pypi-mapto thepixi.tomlonpixi init, much like the(default-)channelssection.Fixes #6856
Open Questions For Reviewer
CondaPypiMapand associated types frompixi_manifesttopixi_config.pixi_configis already a transitive dependency ofpixi_manifestso this doesn't change anything in practise, but should we move this out into another leaf crate instead?How Has This Been Tested?
I have run
cargo test -p pixi_config -p pixi_manifest -p pixi_apiwhich pass. I actually can't build the full repo locally due to upstream errors.
AI Disclosure
Claude Code was used but I iterated with it manually and have reviewed the entire output to my standards. The issue and this PR description was entirely written by me.
Tools: Claude Code
Checklist:
schema/model.py.