feat: add the conda-script block model to pixi_manifest - #6907
Open
Hofer-Julian wants to merge 1 commit into
Open
feat: add the conda-script block model to pixi_manifest#6907Hofer-Julian wants to merge 1 commit into
pixi_manifest#6907Hofer-Julian wants to merge 1 commit into
Conversation
pixi_conda_script crate with the block parser and TOML model
Hofer-Julian
force-pushed
the
conda-script-parser
branch
2 times, most recently
from
August 27, 2026 15:30
fe4a43d to
9d4a9b3
Compare
pixi_conda_script crate with the block parser and TOML modelpixi_manifest
Hofer-Julian
force-pushed
the
conda-script-parser
branch
from
August 31, 2026 11:20
9d4a9b3 to
057ca70
Compare
The first piece of the `conda-script` proposal (#3751): the `/// conda-script` comment block parsed as a script manifest next to the PEP 723 one. `script::block` holds the machinery both kinds share: comment-prefix stripping, source maps for diagnostics and serializing edits back into the block. The model covers `channels`, `entrypoint` (string or platform table), `[dependencies]` restricted to the keys the spec defines, and `[tool.pixi]` with `dependencies` and `pypi-dependencies`. Edits round-trip: `metadata_document` exposes the block as TOML and `write_metadata` writes it back through the comment prefix.
Hofer-Julian
force-pushed
the
conda-script-parser
branch
from
August 31, 2026 11:49
057ca70 to
aa105fe
Compare
Hofer-Julian
marked this pull request as ready for review
August 31, 2026 12:43
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.
First slice of the
conda-scriptproposal (#3751): the/// conda-scriptcomment block parsed as a script manifest next to the PEP 723 one.pixi_manifest::scriptsplits into machinery both block kinds share (comment-prefix stripping, source maps for diagnostics, serializing edits back into the block) and one submodule per kindchannels,entrypoint(string or platform table),[dependencies]restricted to the keys the spec defines,[tool.pixi]withdependenciesandpypi-dependenciesmetadata_documentexposes the block as TOML andwrite_metadatawrites it back through the comment prefixConsiderations before merging
urlcombined withwhenfor cross-platform URL pinning, but pixi cannot attach conditions to URL specs yet, so the parser rejects the combination with a "not supported yet" error instead