pyproject.toml not bumping the version automatically #28836
-
What would you like help with?I would like help with my configuration How are you running Renovate?Self-hosted If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.azure devops , and renovatebot as azure container job Please tell us more about your question or problemWe use requirements.txt for tracking dependencies, but we also want automatic version tracking. We found that we could use pep621 / pyproject.toml, but somehow, this does not bump the version. I ran the bot in debug mode, and it sees 3 managers, pep621, pip_requirements and poetry. In the logs, it complains that it cannot parse poetry. I'm not a python guy, just the devops guy...perhaps somebody has some pointers here? Logs (if relevant)Logs
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
Seems like the structure of the We expect the following structure: renovate/lib/modules/manager/poetry/schema.ts Lines 334 to 336 in ca23445 You could compare it yourself and list the differences here, or link/paste the file here so we can inspect further. |
Beta Was this translation helpful? Give feedback.
-
Poetry does not use the standard dependency definitions defined by Pep621, but rather use their one fields under tools https://python-poetry.org/docs/pyproject/#dependencies-and-dependency-groups If you want to use the standard definitions you can for example use PDM |
Beta Was this translation helpful? Give feedback.
-
But, as far as i know, we don't use "poetry", it really is just a toml file with a [project] section, under which a name and version field are placed. I'll check monday with the original developer if pdm is an option for him |
Beta Was this translation helpful? Give feedback.
Yes, that is the case... or better yet...was. As I now (probably) see the errors of my ways and have changed it track the deps in pyproject.toml and now it has started to bump the project version correctly as well as the deps versions