Add --python-platform to configuration (#3147)

## Summary

Just for consistency with `--python-version`.
This commit is contained in:
Charlie Marsh 2024-04-19 19:08:03 -04:00 committed by GitHub
parent 5e4e2fa0bf
commit 70b6bde254
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 128 additions and 28 deletions

View file

@ -4,7 +4,9 @@ use serde::Deserialize;
use distribution_types::{FlatIndexLocation, IndexUrl};
use install_wheel_rs::linker::LinkMode;
use uv_configuration::{ConfigSettings, IndexStrategy, KeyringProviderType, PackageNameSpecifier};
use uv_configuration::{
ConfigSettings, IndexStrategy, KeyringProviderType, PackageNameSpecifier, TargetTriple,
};
use uv_normalize::{ExtraName, PackageName};
use uv_resolver::{AnnotationStyle, ExcludeNewer, PreReleaseMode, ResolutionMode};
use uv_toolchain::PythonVersion;
@ -70,6 +72,7 @@ pub struct PipOptions {
pub legacy_setup_py: Option<bool>,
pub config_settings: Option<ConfigSettings>,
pub python_version: Option<PythonVersion>,
pub python_platform: Option<TargetTriple>,
pub exclude_newer: Option<ExcludeNewer>,
pub no_emit_package: Option<Vec<PackageName>>,
pub emit_index_url: Option<bool>,