Improve handling of Python versioning strings #6300
Labels
L: python:pip
Python packages via pip
L: python:pipenv
Python packages via pipenv
L: python:poetry
Python packages via poetry
python
Dependabot pull requests that update Python code
T: tech-debt ⚙️
versioning
While working on #4928 Jake noticed that some of the ordering and parsing wasn't quite up to PEP 440's standards. In that PEP they have a list of version strings in order:
He tried those with our current setup and it failed in several ways. So this issue is to circle back and use the official regex and normalization logic to make that list ☝️ pass in a test.
Also we need to make sure that doing this doesn't break any current assumptions. One thought was since "Post releases" don't add anything substantial to the release we might want to ignore them completely otherwise Dependabot might annoy customers with unnecessary bumps.
I suspect we will see more bugs around Dependabot bumping versions incorrectly until we match the PEP standard.
Related:
The text was updated successfully, but these errors were encountered: