-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
tomlkit 0.11.2 breaks installations with comments in classifiers #6135
Comments
This might be a tomlkit issue. Since your repro script is independent of poetry, you can create an issue at tomlkit. Further, you could bisect which tomlkit commit introduces this regression and check if a fix for this change is possible. |
It could be intended behavior in tomlkit and then I think it needs to be addressed in poetry-core. |
It could, but I can't imagine why it should be intended to insert |
python-poetry/tomlkit#221 seems to address this issue. Can you try tomlkit 0.11.3? |
Thanks python-poetry/tomlkit#221 fixed the issue |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
Hi,
the latest version of tomlkit (0.11.2) did break the installations of packages for us. See for example
https://github.com/greenbone/mattermost-notify/runs/7718791468?check_suite_focus=true
https://github.com/greenbone/autohooks/runs/7718595745?check_suite_focus=true
https://github.com/greenbone/python-gvm/runs/7718639778?check_suite_focus=true
The issue seems to be caused by a behavior change with tomlkit 0.11.2 in how comments are handled in arrays. Our
pyproject.toml
files contain a comment (for example https://github.com/greenbone/autohooks/blob/43a78279e19a696cc3f0dd378aa28e4f1f2a329d/pyproject.toml#L15). It seems shallow copying an array with a comment introduces a None value. This results in a failing sort at https://github.com/python-poetry/poetry-core/blob/1.0.8/poetry/core/packages/package.py#L291.See the gist for a short script reproducing the behavior.
Please let me know if and how I can provide a PR to fix this issue. Not sure where it needs to be addressed.
Traceback:
The text was updated successfully, but these errors were encountered: