From a7fe970ff3c480f487af64ce8e14145b23ccaed6 Mon Sep 17 00:00:00 2001 From: messense Date: Tue, 27 Feb 2024 09:04:28 +0800 Subject: [PATCH] Revert "Auto detect Python 3.13 (#1810)" This reverts commit 177d40f2a66b17ed070d32bebaaabf149efc86ad. --- src/python_interpreter/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/python_interpreter/mod.rs b/src/python_interpreter/mod.rs index efc065d0a..5654e8a48 100644 --- a/src/python_interpreter/mod.rs +++ b/src/python_interpreter/mod.rs @@ -21,7 +21,7 @@ mod config; const GET_INTERPRETER_METADATA: &str = include_str!("get_interpreter_metadata.py"); pub const MINIMUM_PYTHON_MINOR: usize = 7; /// Be liberal here to include preview versions -pub const MAXIMUM_PYTHON_MINOR: usize = 13; +pub const MAXIMUM_PYTHON_MINOR: usize = 12; pub const MAXIMUM_PYPY_MINOR: usize = 10; /// Identifies conditions where we do not want to build wheels @@ -988,19 +988,19 @@ mod tests { let target = Target::from_target_triple(Some("x86_64-unknown-linux-gnu".to_string())).unwrap(); let pythons = PythonInterpreter::find_by_target(&target, None); - assert_eq!(pythons.len(), 11); + assert_eq!(pythons.len(), 10); let pythons = PythonInterpreter::find_by_target( &target, Some(&VersionSpecifiers::from_str(">=3.7").unwrap()), ); - assert_eq!(pythons.len(), 11); + assert_eq!(pythons.len(), 10); let pythons = PythonInterpreter::find_by_target( &target, Some(&VersionSpecifiers::from_str(">=3.10").unwrap()), ); - assert_eq!(pythons.len(), 5); + assert_eq!(pythons.len(), 4); } #[test]