-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is handling of python_version
correct?
#5717
Comments
Seems to be wrong. Probably, it is only correct for |
For a start, we should roll back the marker simplifications that treat these two the same. That might be enough, if we never compare |
https://github.com/python-poetry/poetry-core/blob/63322f630b40a261c26644d4b82324a44b6aafe0/src/poetry/core/packages/utils/utils.py#L162-L165 looks highly suspicious # python_full_version is equivalent to python_version
# for Poetry so we merge them
if marker_name == "python_full_version":
marker_name = "python_version" |
Suspicious yes, but might not wrong per se. I think it depends on how its callers process the result of By the way, do you have plans to work on a correct merging of |
You've probably seen that I've reverted the naive merging. No, I don't have plans to implement a smarter version. |
The Edit: that's not true, but it looks as though it really ought to share code with |
Gonna call this done, it has triggered some good fixes, if there are more bugs then they can be tracked as they are found |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Currently poetry mostly treats
python_version x.y
as equivalent topython_full_version x.y.0
, but is it necessarily so?This prints
True
. But surely PEP508 says that thepython_version
at 3.6.2 is exactly 3.6, which does not satisfym1
.related #2480.
The text was updated successfully, but these errors were encountered: