poetry-core icon indicating copy to clipboard operation
poetry-core copied to clipboard

markers: add new method to reduce a marker by a Python constraint

Open radoering opened this issue 1 year ago • 0 comments

That is useful for removing redundant information from markers. For example, if the project's Python constraint is >=3.9, a dependency's marker like python_version >= 3.7 carries the same information as an AnyMarker for this project. (The dependency is required for all supported Python versions.)

Required for python-poetry/poetry#9427

  • [x] Added tests for changed code.
  • [ ] Updated documentation for changed code.

radoering avatar May 20 '24 13:05 radoering