CEP 44: clarify MatchSpec `extra` syntax
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from conda/ceps
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
Difficulty 3/5 Half a day Newbie friendliness 28/100
-
Difficulty 5/5 Over a week Newbie friendliness 32/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
italia/eid-wallet-it-docs#1288 · 1 comment ·
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
jonathanong/no-mistakes#5490 ·
-
15.0
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day