CEP 44: clarify MatchSpec `extra` syntax

Open
#200 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
54/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Domain
documentation

Research direction

Read CEP 44 alongside CEP 29, especially their MatchSpec syntax and string matching sections. Clarify whether a string value can name multiple extras and whether case-insensitive matching, regular expressions, and glob patterns apply to extras; done when the intended syntax and matching rules are explicit and consistent across the two proposals.

Written by the indexing model from the issue text.

Description

Checklist
  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate
What happened?

The initial testing of CEP 44 revealed some discrepancies between conda and rattler-build implementations. However, before I start reporting them, I've tried to figure out the exact intended syntax, and I find the spec a bit ambiguous. In particular, it seems to lack references to CEP 29 where the baseline matchspec syntax is defined.


This new field must be selectable by MatchSpec syntax using the extras keyword inside square brackets, the value of which MUST be a string or a list of strings targeting group names. […]

The syntax for lists MUST follow the same syntax as YAML 1.2 flow sequences style, without newlines. In other words, a comma-separated sequence of strings wrapped in square brackets. All nodes MUST be strings.

Does that imply that if the value is a string only one extra can be specified? In other words, what should be the result of specifying urllib3[extras="brotli,h2"]?


Furthermore, CEP 29 specifies:

For expressions targeting any other str field, string matching conventions MUST be used.

These rules are quite baroque, and CEP 44 doesn't really cancel them, though it specifies that the value:

MUST be compared case-sensitively and MUST NOT be normalized.

which contradicts CEP 29 that specifies that:

matches MUST be tested with exact, case-insensitive string equality

Besides that, CEP 29 includes regular expression and glob support. Are these intended to be allowed with extras as well?

Additional Context

No response

Dominant language
No language data
Stars
35
Forks
43
Avg merge
2h 11m
Merged PRs (30d)
1

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from conda/ceps

All issues in conda/ceps

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.