-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
TOMLFile.write does not update the toml file correctly (0.12.5) #351
Comments
probably related: #347 but I am a bit burnt by the convoluted parsing logic and busy with other projects. can you try debugging yourself first? |
My group hits this issue as well, we use tomlkit to muck with pyproject.toml before publishing, and it produced invalid pyproject.toml file, unless we reorder sections in the toml file. I'm just adding "+1" datapoint here. |
It isn't easy to make both happy so I decide to revert #347 since it is less harmful and has a workaround /cc @robbotorigami |
Hello,
After updating tomlkit to version 0.12.5,
TOMLFile.write
does not update the toml file correctly anymore. See the following reproductible example:pyproject.toml file:
script:
pyproject.toml result after running the script with tomlkit 0.12.4 (you can see that the repository property was added where it should be):
pyproject.toml result after running the script with tomlkit 0.12.5 (the repository property is added under dependencies):
This behavior results in an invalid toml file, looks like a regression in the latest release.
Thanks in advance.
The text was updated successfully, but these errors were encountered: