Error when editables don't match Requires-Python (#2194)

## Summary

Closes https://github.com/astral-sh/uv/issues/2192.

## Test Plan

(Needs tests.)
This commit is contained in:
Charlie Marsh
2024-03-04 20:20:42 -08:00
committed by GitHub
parent 2a53e789b0
commit 0bc047866d
7 changed files with 217 additions and 16 deletions
+2 -2
View File
@@ -22,12 +22,12 @@ impl PythonRequirement {
}
/// Return the installed version of Python.
pub(crate) fn installed(&self) -> &Version {
pub fn installed(&self) -> &Version {
&self.installed
}
/// Return the target version of Python.
pub(crate) fn target(&self) -> &Version {
pub fn target(&self) -> &Version {
&self.target
}