-
Notifications
You must be signed in to change notification settings - Fork 23
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
Unable to parse the pyproject.toml file. #156
Comments
vipcxj
added a commit
to vipcxj/tbump
that referenced
this issue
Jan 12, 2023
I'm seeing the same issue. |
dmerejkowsky
pushed a commit
that referenced
this issue
Jan 26, 2023
timkpaine
added a commit
to timkpaine/ipydagred3
that referenced
this issue
Feb 21, 2023
@dmerejkowsky When will the new version be released? Even though pr was merged, it was still the old version on pip for months |
tbump 6.10.0 has been released and contains this fix. Enjoy :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
here is the exception stack:
I typed the command:
tbump current-version
This is my pyproject.toml:
I have debug the command, And found the problem.
return type(data)(o.validate(d, **kwargs) for d in data)
This line cause the exception. It's in schema.py line 366.
I found data here is not a native python list, but tomlkit.items.Array.
You can see to construct a Array instance, you must provide a trivia as argument.
But why data is not a list? I found when you call
ConfigFile.get_parsed
, it return a value with toml special type instance, which caused the issue.So I think to fix this issue, the config returned by
ConfigFile.get_parsed
should be clean to a pure python instance with list and dict.Here is a quick fix:
The text was updated successfully, but these errors were encountered: