Skip to content

Comments

Denote required platforms in [tool.uv] metadata#10017

Closed
charliermarsh wants to merge 1 commit intocharlie/incompletefrom
charlie/required-platforms
Closed

Denote required platforms in [tool.uv] metadata#10017
charliermarsh wants to merge 1 commit intocharlie/incompletefrom
charlie/required-platforms

Conversation

@charliermarsh
Copy link
Member

Summary

This is an extension of #9928 that makes the set of "required platforms" configurable, thereby making the resolver less tightly-coupled to the list of platforms.

I'm wondering if there's a way for us to reuse environments for this somehow.

@charliermarsh charliermarsh force-pushed the charlie/required-platforms branch from f1ae91a to 25296f7 Compare December 19, 2024 01:48
]
"#
)]
pub required_platforms: Option<SupportedEnvironments>,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@charliermarsh charliermarsh force-pushed the charlie/required-platforms branch from 999b68c to 4c2d493 Compare December 19, 2024 03:37
/// By default, uv will require that each package includes at least one wheel for Linux, macOS,
/// and Windows. The `required-platforms` setting can be used to make those requirements more
/// or less strict. For example, an empty `required-platforms` list avoid enforcing any such
/// requirements on binary-only packages.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make clearer that the specific requirement is that for each marker, there exists at least one wheel that can be installed in the marker's environment.

@charliermarsh
Copy link
Member Author

We merged #10046 instead for now. We may return to this later.

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.

2 participants