mirror of
				https://github.com/astral-sh/uv.git
				synced 2025-10-31 03:55:33 +00:00 
			
		
		
		
	Prioritize forks based on Python narrowing (#5642)
## Summary First part of: https://github.com/astral-sh/uv/issues/4926. We should solve forks that _don't_ expand the world of supported versions (e.g., `python_version >= '3.11'` enables us to select new packages, since we narrow the supported version range).
This commit is contained in:
		
							parent
							
								
									0dcec9eba8
								
							
						
					
					
						commit
						f268b7c90a
					
				
					 4 changed files with 41 additions and 24 deletions
				
			
		|  | @ -350,6 +350,12 @@ impl<'de> serde::Deserialize<'de> for RequiresPython { | |||
| #[derive(Debug, Clone, Eq, PartialEq, Hash)] | ||||
| pub struct RequiresPythonBound(Bound<Version>); | ||||
| 
 | ||||
| impl Default for RequiresPythonBound { | ||||
|     fn default() -> Self { | ||||
|         Self(Bound::Unbounded) | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| impl RequiresPythonBound { | ||||
|     pub fn new(bound: Bound<Version>) -> Self { | ||||
|         Self(match bound { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Charlie Marsh
						Charlie Marsh