Support Poetry v2 dependency format #33455
Replies: 5 comments 11 replies
-
Yep, PEP 621 support for Poetry 2 would be nice. |
Beta Was this translation helpful? Give feedback.
-
Hi there, Get your discussion fixed faster by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. Discussions without reproductions are less likely to be converted to Issues. Please follow these steps:
If you need help with running renovate on your minimal reproduction repository, please refer to our Running Renovate guide. The Renovate team |
Beta Was this translation helpful? Give feedback.
-
I use the renovate app in GitHub for a repository with a Python application whose dependencies I manage with
This essentially means that renovate stops working for me for any Python repository as soon as I update to poetry >=v2.0.0. I'd appreciate it if support for poetry.lock files written with poetry >=v2.0.0 could be added to renovate. |
Beta Was this translation helpful? Give feedback.
-
Also, poetry allows link1 link2 to override Renovate ignores those overrides and tries to update dependency to the version of the package with the same name found in PyPI (logger in my case).
[project]
dependencies = [
"logger==1.0.53",
]
[[tool.poetry.source]]
name = "gitlab"
url = "https://<gitlab>/api/v4/groups/<id>/-/packages/pypi/simple"
priority = "supplemental"
[tool.poetry.dependencies]
logger = { source = "gitlab" } |
Beta Was this translation helpful? Give feedback.
-
Converted to issue: #33509 |
Beta Was this translation helpful? Give feedback.
-
Tell us more.
Poetry v2 has updated their pyproject.toml specification to support the "project" section in the pyproject.toml specification.
This means that there are now more potential locations where dependencies can be defined within a pyproject.toml file:
The other rub is that the project.dependencies list doesn't support all of the dependency specifiers that one of the dependency locations under too.poetry does: https://python-poetry.org/docs/dependency-specification/
It would be nice to have renovate support this new dependency location and formats under the project heading.
Minimal reproduction: https://github.com/ryancausey/poetry-v2-support-reproduction
Beta Was this translation helpful? Give feedback.
All reactions