mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-01 09:32:18 +00:00
Introduce a --fork-strategy
preference mode (#9868)
## Summary This PR makes the behavior in https://github.com/astral-sh/uv/pull/9827 the default: we try to select the latest supported package version for each supported Python version, but we still optimize for choosing fewer versions when stratifying by platform. However, you can opt out with `--fork-strategy fewest`. Closes https://github.com/astral-sh/uv/issues/7190.
This commit is contained in:
parent
0ee21146f4
commit
b2459e6326
35 changed files with 699 additions and 48 deletions
|
@ -3,6 +3,7 @@ pub use error::{NoSolutionError, NoSolutionHeader, ResolveError, SentinelRange};
|
|||
pub use exclude_newer::ExcludeNewer;
|
||||
pub use exclusions::Exclusions;
|
||||
pub use flat_index::{FlatDistributions, FlatIndex};
|
||||
pub use fork_strategy::ForkStrategy;
|
||||
pub use lock::{
|
||||
InstallTarget, Lock, LockError, LockVersion, PackageMap, RequirementsTxtExport,
|
||||
ResolverManifest, SatisfiesResult, TreeDisplay, VERSION,
|
||||
|
@ -41,6 +42,7 @@ mod exclude_newer;
|
|||
mod exclusions;
|
||||
mod flat_index;
|
||||
mod fork_indexes;
|
||||
mod fork_strategy;
|
||||
mod fork_urls;
|
||||
mod graph_ops;
|
||||
mod lock;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue