diff options
| author | DianQK <dianqk@dianqk.net> | 2024-06-14 08:08:57 +0800 |
|---|---|---|
| committer | DianQK <dianqk@dianqk.net> | 2024-06-14 19:04:16 +0800 |
| commit | ab7fc60a7389667f6e7eee952c4e1101f1746b3d (patch) | |
| tree | be790c7fae2d422cb7644c51a90f288417b4dd57 | |
| parent | 7999dbbd3e62dfd1cf65e19ea1949e41935b997c (diff) | |
| download | rust-ab7fc60a7389667f6e7eee952c4e1101f1746b3d.tar.gz rust-ab7fc60a7389667f6e7eee952c4e1101f1746b3d.zip | |
End support for Python 3.8 in tidy
| -rw-r--r-- | src/tools/tidy/src/ext_tool_checks.rs | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/tools/tidy/src/ext_tool_checks.rs b/src/tools/tidy/src/ext_tool_checks.rs index fb626cac3fa..995ad58cb62 100644 --- a/src/tools/tidy/src/ext_tool_checks.rs +++ b/src/tools/tidy/src/ext_tool_checks.rs @@ -24,9 +24,8 @@ use std::io; use std::path::{Path, PathBuf}; use std::process::Command; -/// Minimum python revision is 3.7 for ruff -const MIN_PY_REV: (u32, u32) = (3, 7); -const MIN_PY_REV_STR: &str = "≥3.7"; +const MIN_PY_REV: (u32, u32) = (3, 9); +const MIN_PY_REV_STR: &str = "≥3.9"; /// Path to find the python executable within a virtual environment #[cfg(target_os = "windows")] @@ -223,17 +222,8 @@ fn get_or_create_venv(venv_path: &Path, src_reqs_path: &Path) -> Result<PathBuf, fn create_venv_at_path(path: &Path) -> Result<(), Error> { /// Preferred python versions in order. Newest to oldest then current /// development versions - const TRY_PY: &[&str] = &[ - "python3.11", - "python3.10", - "python3.9", - "python3.8", - "python3.7", - "python3", - "python", - "python3.12", - "python3.13", - ]; + const TRY_PY: &[&str] = + &["python3.11", "python3.10", "python3.9", "python3", "python", "python3.12", "python3.13"]; let mut sys_py = None; let mut found = Vec::new(); |
