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
Suspicious yes, but might not wrong per se. I think it depends on how its callers process the result of convert_markers(). At least, get_python_constraint_from_marker() seems to take care of it.
By the way, do you have plans to work on a correct merging of python_version and python_full_version in marker unions and intersections within the next few days? (If not, I would take a look into it.)
The marker setter on a Dependency only cares about python_version: so if I set the marker python_full_version >= 3.6 (for example), the dependency's python constraint is *.
Edit: that's not true, but it looks as though it really ought to share code with get_python_constraint_from_marker()
Activity
radoering commentedon May 29, 2022
Seems to be wrong. Probably, it is only correct for
>=and<, but fails for>and<=. Inget_python_constraint_from_marker(), there is even a special handling for these cases: https://github.com/python-poetry/poetry-core/blob/dfd1b39ffec8bfad027a6dda0c31bab24b4c6019/src/poetry/core/packages/utils/utils.py#L310-L325 I assume that is required in other places, too.dimbleby commentedon May 29, 2022
For a start, we should roll back the marker simplifications that treat these two the same.
That might be enough, if we never compare
python_versionandpython_full_versiondirectly perhaps we're okdimbleby commentedon May 30, 2022
https://github.com/python-poetry/poetry-core/blob/63322f630b40a261c26644d4b82324a44b6aafe0/src/poetry/core/packages/utils/utils.py#L162-L165 looks highly suspicious
radoering commentedon May 30, 2022
Suspicious yes, but might not wrong per se. I think it depends on how its callers process the result of
convert_markers(). At least,get_python_constraint_from_marker()seems to take care of it.By the way, do you have plans to work on a correct merging of
python_versionandpython_full_versionin marker unions and intersections within the next few days? (If not, I would take a look into it.)dimbleby commentedon May 30, 2022
You've probably seen that I've reverted the naive merging. No, I don't have plans to implement a smarter version.
dimbleby commentedon May 30, 2022
The
markersetter on aDependencyonly cares aboutpython_version: so if I set the markerpython_full_version >= 3.6(for example), the dependency's python constraint is*.Edit: that's not true, but it looks as though it really ought to share code with
get_python_constraint_from_marker()dimbleby commentedon Jun 5, 2022
Gonna call this done, it has triggered some good fixes, if there are more bugs then they can be tracked as they are found
github-actions commentedon Mar 1, 2024
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.