You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your request goes beyond what the semver spec and this library supports. The error message you received is correct. Python version strings are unfortunately not fully semver compatible. This is the bad news.
The good news is that to some degree it's possible to convert from one version spec to the other. I covered this already in the section Converting versions between PyPI and semver. The documentation mentions explicitly PEP 440.
If something is not covered in the documentation, I'm more than happy to amend the text. However, adding support for PEP440 into the library is out of scope.
Is the above documentation sufficient for your use case?
Sorry for opening this without any need - I had searched for PEP 440 in the issue without finding anything, yet had not checked out the docs before. I guess other people doing the same will now at at least find this very issue ;)
Python version strings, at least as defined in
pyproject.toml
files, use something to the sort of[N!]N(.N)*[{a|b|rc}N][.postN][.devN]
.Situation
Possible Solution/Idea
Support more (all?) possible Python version strings.
Additional context
The text was updated successfully, but these errors were encountered: