Generalize the ABI provider into a generic "reserved provider", v2 #90
This should become a string too
<!-- readthedocs-1176979 -->
Documentation build overview
📚 wheelnext-peps | 🛠️ Build #34799820 | 📁 Comparing 733cc9e46c6c42028dcb1394aa3972e2a4b890ae against latest (344e58976964e61bc206c38cc3e81742b599b5f4)
<kbd> 🔍 Preview build </kbd>
<details>
<summary>51 files changed · <code>+</code> 6 added · <code>±</code> 45 modified</summary>
<br>
+ Added
pep-0845/index.htmlpep-0846/index.htmlpep-0847/index.htmlpep-9999/index.htmlpep-0825/appendix-metadata-consistency/index.htmlpep-9999/appendix-variant-json-schema/index.html± Modified
index.htmlnumerical/index.htmlpep-0000/index.htmlpep-0426/index.htmlpep-0501/index.htmlpep-0534/index.htmlpep-0545/index.htmlpep-0585/index.htmlpep-0604/index.htmlpep-0654/index.html</details>
Approved these changes.
Right. Also added an enum to check the value.
Question/Feedback
can you explain why doing this
"abi": {
"builtin": "abi_dependency"
}
instead of this:
"abi_dependency": {
"builtin": true
}
I get that it allows to name abi_dependency to be "whatever you want" - but I really don't see why doing that ... It's just feels unnecessarily "heavy".
Or that conceptually the namespace and name of the package are not necessarily 1:1 - but I also remember Ralf saying some time ago that we should try to force ecosystem consistency when possible. This seems one of these cases where we should enforce abi_dependency namespace for everybody.
1. It's more consistent with how namespaces aren't hardcoded or significant for other kinds of providers.
2. It lets people create new builtin providers without risking namespace collisions with other providers.
3. It avoids adding a field whose only valid value is true. (Given that we say only one of the three keys can be specified.)
It's not a big deal, it just felt more solid as a proposal. Makes this look less like an afterthought.
OK ... Feels a little more difficult to read but fair enough ...
internal provider implementation if supported, otherwise assume that no
features are compatible. Otherwise, proceed to step 4.
Specifically because we say that "Tools that choose to implement them
MUST follow the PEP implementing them." I would recommend kicking everything after this paragraph out the PEP.
Especially that now we don't need to reserve a name like we used to have before your builtin idea.
Requested changes.
There's already a "otherwise" below.
I caught up with these builtin changes only now - for the record, I like the generalization, 👍🏼 from me.
konsti-openai
mgorny
Same as #89, except that the identifier is explicitly given to
builtinkey, rather than reusing the namespace. IMO that's even more consistent design, and makes thebuiltinkey meaningful rather than incidental.