Remove warnings for missing lower bounds (#11195)

These are noisy relative to the effect they have on the user. It seems
better to prioritize hints on poor resolutions. Notably, it seems hard
to make these "not noisy" ref #11091.

Does not include the "lowest" resolution mode, in which lower bounds are
critical.
This commit is contained in:
Zanie Blue 2025-02-03 16:03:31 -06:00 committed by GitHub
parent efbc77bc37
commit dd7cd2e86a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 49 additions and 185 deletions

View file

@ -7,9 +7,7 @@ use anyhow::Result;
use rustc_hash::FxHashSet;
use uv_cache::Cache;
use uv_configuration::{
BuildKind, BuildOptions, BuildOutput, ConfigSettings, LowerBound, SourceStrategy,
};
use uv_configuration::{BuildKind, BuildOptions, BuildOutput, ConfigSettings, SourceStrategy};
use uv_distribution_filename::DistFilename;
use uv_distribution_types::{
CachedDist, DependencyMetadata, DistributionId, IndexCapabilities, IndexLocations,
@ -84,9 +82,6 @@ pub trait BuildContext {
/// The [`ConfigSettings`] used to build distributions.
fn config_settings(&self) -> &ConfigSettings;
/// Whether to warn on missing lower bounds.
fn bounds(&self) -> LowerBound;
/// Whether to incorporate `tool.uv.sources` when resolving requirements.
fn sources(&self) -> SourceStrategy;