Skip to content

Commit

Permalink
Fix compatibile toolchain (#1429)
Browse files Browse the repository at this point in the history
Resolves: #1426

This pull request includes an update to the compatibility range for the
supported Python versions in the `is_self_compatible_toolchain`
function.

*
[`rye/src/bootstrap.rs`](diffhunk://#diff-5e3b4dd9c9d72709e7551b50ad0bb8933e251e3f7ea71370a13637900c1b349cL285-R287):
Updated the supported Python versions to include cpython 3.13.
  • Loading branch information
PushUpek authored Nov 7, 2024
1 parent b8f472e commit 7b8b101
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rye/src/bootstrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ pub fn get_pip_module(venv: &Path) -> Result<PathBuf, Error> {
Ok(rv)
}

/// we only support cpython 3.9 to 3.12
/// we only support cpython 3.9 to 3.13
pub fn is_self_compatible_toolchain(version: &PythonVersion) -> bool {
version.name == "cpython" && version.major == 3 && version.minor >= 9 && version.minor <= 12
version.name == "cpython" && version.major == 3 && version.minor >= 9 && version.minor <= 13
}

/// Ensure that the toolchain for the self environment is available.
Expand Down

0 comments on commit 7b8b101

Please sign in to comment.