-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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.toml some valid TOML syntax not accepted #7556
Comments
Could you give us a full file which fails? It can be as small/redacted as you want, as long as poetry accepts it and our parser rejects it. Then we'll need to work out if we file a bug upstream to our TOML parser |
Complete failing [tool.poetry]
name = "app"
version = "1.0.0"
description = " ᕕ( ᐛ )ᕗ "
authors = ["MR <marti@juffo.org>"]
[tool.poetry.dependencies]
python = "^3.8"
"ruamel.yaml" = "0.16.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.coverage]
run.omit = ["*/tests_*.py"] I can successfully run
|
Maybe we need to switch our toml library, see https://github.com/toml-lang/toml/wiki#v100-rc1-compliant. Our current lib only supports v0.4.0 and there is an open issue for v0.5.0 suport, see BinaryMuse/toml-node#50 |
Or maybe we don't need to formally parse the full toml to get the data we need? |
That would be a more complex refactoring. Switching the parser to a more modern one is a far more easy fix. 🙃 |
🎉 This issue has been resolved in version 23.57.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Thank you for such a quick fix! :) |
What Renovate type, platform and version are you using?
Self-hosting using GitLab, with Python "poetry" package manager
Describe the bug
When I enable the "poetry" manager with Renovate, it attempts to read the
pyproject.toml
configuration file in my project.Python tools are perfectly happy with
pyproject.toml
that contains the following:However, Renovate fails to parse this file ("Error parsing pyproject.toml file"; "SyntaxError").
Thankfully as a workaround I could rewrite the file using different syntax, that works with Renovate:
Relevant debug logs
To Reproduce
Append the following fragment to a
pyproject.toml
file:Additional context
Does Renovate only support some older toml syntax?
The text was updated successfully, but these errors were encountered: