renovate/lib/modules/versioning/poetry
Enkidu-Aururu 271b3e34cd
docs: Update Poetry versioning references (#31051)
2024-08-28 05:29:16 +00:00
..
index.spec.ts fix(versioning): bump rangeStrategy should pin if no range qualifier (#28309) 2024-04-10 09:47:14 +00:00
index.ts docs: Update Poetry versioning references (#31051) 2024-08-28 05:29:16 +00:00
patterns.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
readme.md refactor: lib/modules (#14488) 2022-03-04 09:04:02 +01:00
transform.ts fix(versioning/poetry): improve poetry2semver validation (#29858) 2024-06-26 10:16:10 +00:00

readme.md

Poetry versioning is a little like a mix of PEP440 and SemVer.

Currently Renovate's implementation is based off npm versioning. This works by parsing versions using the same patterns and similar normalization rules as Poetry, passing them to the npm versioning implementation, and then reversing the normalizations. This allows Renovate to meaningfully compare the SemVer-style versions allowed in pyproject.toml to the PEP440 representations used on PyPI. These are equivalent for major.minor.patch releases, but different for pre-, post-, and dev releases.