renovate/lib/modules/manager/poetry
Sebastian Poxhofer 3681b2a945
chore: eslint to enforce for typed imports (#30844)
2024-08-19 13:15:27 +00:00
..
__fixtures__ refactor(manager/poetry): use zod schema validation (#23830) 2023-08-18 10:23:32 +00:00
__snapshots__ feat(manager/poetry): add support for `bumpVersion` option (#26377) 2023-12-19 19:11:04 +00:00
artifacts.spec.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
artifacts.ts chore(manager/poetry): log determined poetry version (#29028) 2024-05-13 12:31:32 +00:00
extract.spec.ts feat(manager/poetry): add support for git tag dependencies in non-GitHub repos (#27693) 2024-03-03 21:23:08 +00:00
extract.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
index.ts feat(manager/poetry): add support for git tag dependencies in non-GitHub repos (#27693) 2024-03-03 21:23:08 +00:00
readme.md docs: fix typo in poetry/readme.md (#30460) 2024-07-29 16:21:11 +00:00
schema.spec.ts feat(manager/poetry): add support for `bumpVersion` option (#26377) 2023-12-19 19:11:04 +00:00
schema.ts chore: eslint to enforce for typed imports (#30844) 2024-08-19 13:15:27 +00:00
types.ts feat(manager/poetry): support git rev dependencies (#26367) 2024-01-04 08:48:39 +00:00
update-locked.spec.ts refactor: change currentVersion to non-optional in UpdateLockedConfig (#18406) 2022-10-21 15:29:39 +00:00
update-locked.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00

readme.md

Both Poetry 0.x and 1.x versions are supported.

Whenever the pyproject.toml file is updated, the Poetry lock file will be checked for updates as well.

The following depTypes are supported by the Poetry manager:

!!! warning Updating locked versions of Poetry dependencies is at times unreliable. We recommended that you pin dependency versions in your pyproject.toml instead.

Renovate cannot accurately update locked versions of Poetry dependency ranges due to limitations in Poetry. For example, if the pyproject.toml has a constraint like coverage = "^7.2", and the version in poetry.lock is 7.4.1, and we know that 7.4.3 is available, then Renovate can only run poetry update --lock --no-interaction coverage and hope the result is 7.4.3. Poetry does not support updating to a specific/exact version with the update command, and the above update command may not even update at all sometimes. For this reason it's much better to pin dependency versions in pyproject.toml, such as coverage = "7.4.1" because it then gives Renovate more control and the ability to accurate upgrade dependencies in increments like 7.4.1 to 7.4.3.