Skip to content

feat: add requirements.extras for optional dependency groups (CEP 44) - #86

Merged
Hofer-Julian merged 1 commit into
prefix-dev:mainfrom
ytausch:yt/requirements-extra
Sep 24, 2026
Merged

Hofer-Julian merged 1 commit into
prefix-dev:mainfrom
ytausch:yt/requirements-extra

Conversation

@ytausch

@ytausch ytausch commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds the extras key under requirements, as specified by CEP 44 — Optional dependency groups (accepted via conda/ceps#165).

CEP 44 requires recipe formats v1+ to expose requirements.extras (sibling to build, host, run, …), rendering to dict[str, list[MatchSpec]]. The published JSON Schema was lagging: Requirements sets additionalProperties: false but did not declare extras, so editors incorrectly flagged it.

Example

requirements:
  run:
    - main-dependency
  extras:
    diff:
      - textual-diff-view >=0.1.5,<0.2

Selecting the group downstream uses the V3 MatchSpec syntax, e.g. pixi-browse[extras=[diff]].

@ytausch
ytausch force-pushed the yt/requirements-extra branch from 7095b5d to 685dcd0 Compare September 14, 2026 09:40

@Hofer-Julian Hofer-Julian left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@ytausch

ytausch commented Sep 23, 2026

Copy link
Copy Markdown
Contributor Author

@Hofer-Julian anything preventing a merge here?

@Hofer-Julian
Hofer-Julian merged commit 7be6ba9 into prefix-dev:main Sep 24, 2026
4 checks passed
@ytausch
ytausch deleted the yt/requirements-extra branch September 24, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants