`pyproject.toml` Incorrect `~=0.0` matching
Closed this issue · 1 comments
JP-Ellis commented
There is inconsistent behaviour when checking for ~=0.0
vs non-zero versions:
For Python, PEP 440 makes it very clear that ~=x.y
is equivalent to >=x.y, ==x.*
; and furthermore has no exception when x
or y
is 0. Similarly, ~=x.y.z
is equivalent to >=x.y.z, ==x.y.*
.
The above example indicates that the latest version of Pytest is selected (which is correct), but would suggest that pytest-asyncio
is behind (which is incorrect).
EDIT: I would like to highlight that this behaviour is subtly different from node-semver's tilde ranges.
MOzanGul commented
Hi @JP-Ellis , we have fixed this issue per your request.
We'd be really happy if you could review Dependi, here is our reviews page.