Skip to content

Commit 93f44f1

Browse files
committed
End support for Python 3.8 in tidy
1 parent 1199bd6 commit 93f44f1

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

src/tools/tidy/src/ext_tool_checks.rs

+4-14
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ use std::io;
2424
use std::path::{Path, PathBuf};
2525
use std::process::Command;
2626

27-
/// Minimum python revision is 3.7 for ruff
28-
const MIN_PY_REV: (u32, u32) = (3, 7);
29-
const MIN_PY_REV_STR: &str = "≥3.7";
27+
const MIN_PY_REV: (u32, u32) = (3, 9);
28+
const MIN_PY_REV_STR: &str = "≥3.9";
3029

3130
/// Path to find the python executable within a virtual environment
3231
#[cfg(target_os = "windows")]
@@ -223,17 +222,8 @@ fn get_or_create_venv(venv_path: &Path, src_reqs_path: &Path) -> Result<PathBuf,
223222
fn create_venv_at_path(path: &Path) -> Result<(), Error> {
224223
/// Preferred python versions in order. Newest to oldest then current
225224
/// development versions
226-
const TRY_PY: &[&str] = &[
227-
"python3.11",
228-
"python3.10",
229-
"python3.9",
230-
"python3.8",
231-
"python3.7",
232-
"python3",
233-
"python",
234-
"python3.12",
235-
"python3.13",
236-
];
225+
const TRY_PY: &[&str] =
226+
&["python3.11", "python3.10", "python3.9", "python3", "python", "python3.12", "python3.13"];
237227

238228
let mut sys_py = None;
239229
let mut found = Vec::new();

0 commit comments

Comments
 (0)