Skip to content

Commit

Permalink
Use root package for requires python
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Jun 5, 2024
1 parent 18d4528 commit 4794cd6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions crates/uv/src/commands/project/lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,9 @@ pub(super) async fn do_lock(
let interpreter = venv.interpreter();
let tags = venv.interpreter().tags()?;
let markers = venv.interpreter().markers();
let requires_python = project
.current_project()
.pyproject_toml()
.project
.as_ref()
let requires_python = workspace
.root_member()
.and_then(|root_member| root_member.pyproject_toml().project.as_ref())
.and_then(|project| project.requires_python.as_ref());

// Initialize the registry client.
Expand Down

0 comments on commit 4794cd6

Please sign in to comment.