Files
renovate/lib/modules/versioning/poetry
RahulGautamSingh c42957a804 refactor(modules/versioning): fix null check issues in tests (#16145)
* fix null-check issues

* Update lib/modules/versioning/versioning-metadata.spec.ts

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-06-20 06:40:57 +00:00
..
2022-03-04 09:04:02 +01:00
2022-03-04 09:04:02 +01:00
2022-03-04 09:04:02 +01:00
2022-03-04 09:04:02 +01:00

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.