mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 10:33:49 +00:00
Support build constraints (#5639)
## Summary Partially resolves #5561. Haven't added overrides support yet but I can add it tomorrow if the current approach for constraints is ok. ## Test Plan `cargo test` Manually checked trace logs after changing the constraints.
This commit is contained in:
parent
c558d70690
commit
ff9f3dede1
25 changed files with 360 additions and 4 deletions
|
@ -86,6 +86,12 @@ impl Manifest {
|
|||
}
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn with_constraints(mut self, constraints: Constraints) -> Self {
|
||||
self.constraints = constraints;
|
||||
self
|
||||
}
|
||||
|
||||
/// Return an iterator over all requirements, constraints, and overrides, in priority order,
|
||||
/// such that requirements come first, followed by constraints, followed by overrides.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue