Filter managed Python distributions by platform before querying when included in request (#13936)

In the case where we have platform information in a Python request, we
should filter managed Python distributions by it prior to querying them.

Closes https://github.com/astral-sh/uv/issues/13935

---------

Co-authored-by: Aria Desires <aria.desires@gmail.com>
This commit is contained in:
Zanie Blue 2025-06-13 08:50:44 -05:00 committed by GitHub
parent b95e66019d
commit 881e17600f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 105 additions and 17 deletions

View file

@ -9,6 +9,7 @@ pub use crate::discovery::{
PythonPreference, PythonRequest, PythonSource, PythonVariant, VersionRequest,
find_python_installations,
};
pub use crate::downloads::PlatformRequest;
pub use crate::environment::{InvalidEnvironmentKind, PythonEnvironment};
pub use crate::implementation::ImplementationName;
pub use crate::installation::{PythonInstallation, PythonInstallationKey};