Skip to content
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

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

Merged

Conversation

radoering
Copy link
Member

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

  • Added tests for changed code.
  • Updated documentation for changed code.

@radoering radoering force-pushed the markers/reduce-by-python-constraint branch from e75e42d to 8b1f2cc Compare July 14, 2024 05:33
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.)
@radoering radoering force-pushed the markers/reduce-by-python-constraint branch from 8b1f2cc to c3b86d2 Compare July 29, 2024 04:31
@radoering radoering merged commit e30b1ab into python-poetry:main Jul 29, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants