-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pyproject-based parser fails on some valid input files #40
Comments
Hmm, that's unfortunate indeed. As you already stated, it seems the bug is in the pyproject-parser project rather than in codemetapy itself. I investigated a bit further:
It's probably best to submit this issue to them rather than seeking a workaround in codemetapy. |
On a closer it's even the toml module in the standard library that seems to be the culprit. Is such mixed content really valid toml? I'd think so too but I'd be surprised if a module in the standard library is that bugged:
|
I guess the toml wasn't valid after all, I tried https://www.toml-lint.com/ and that complains as well with:
Closing this issue. |
|
Oh reading further the thread, in TOML 1.0 they decided to allow it and on the website is says: mixing types is allowed! https://toml.io/en/v1.0.0#array I'll open an issue at the parser library. EDIT: here it is: repo-helper/pyproject-parser#47 |
Hmm, interesting! That would mean that the implementations are a bit
behind still. Hopefully this issue will self-correct once the
toml implementation in Python catches up. I assume they'll aim to
implement all of TOML 1.0.
|
Here is a valid
pyproject.toml
on whichcodemetapy
fails, even though it should not:Stacktrace for
codemetapy pyproject.toml
:The text was updated successfully, but these errors were encountered: