Use full Python version for installed version (#1033)

## Summary

`interpreter.version()` returns the `python_full_version`, but the
marker variant uses `python_version` instead of `python_full_version` --
so it's omitting the patch.
This commit is contained in:
Charlie Marsh
2024-01-22 01:44:39 -05:00
committed by GitHub
parent 6202c9e1b5
commit b9bee013ce
3 changed files with 9 additions and 18 deletions
@@ -16,7 +16,7 @@ impl PythonRequirement {
pub fn new(interpreter: &Interpreter, markers: &MarkerEnvironment) -> Self {
Self {
installed: interpreter.version().clone(),
target: markers.python_version.version.clone(),
target: markers.python_full_version.version.clone(),
}
}