Skip to content

Commit

Permalink
wip: misc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanleary committed Jan 22, 2025
1 parent 1bc5c06 commit a9e7185
Showing 1 changed file with 18 additions and 23 deletions.
41 changes: 18 additions & 23 deletions crates/uv/src/commands/project/license.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,29 +69,24 @@ pub(crate) async fn license(
// Determine the default groups to include.
let defaults = default_dependency_groups(workspace.pyproject_toml())?;

// Find an interpreter for the project, unless `--frozen` and `--universal` are both set.
let interpreter = if frozen && universal {
None
} else {
Some(
ProjectInterpreter::discover(
&workspace,
project_dir,
python.as_deref().map(PythonRequest::parse),
python_preference,
python_downloads,
connectivity,
native_tls,
allow_insecure_host,
&install_mirrors,
no_config,
cache,
printer,
)
.await?
.into_interpreter(),
let interpreter = Some(
ProjectInterpreter::discover(
&workspace,
project_dir,
python.as_deref().map(PythonRequest::parse),
python_preference,
python_downloads,
connectivity,
native_tls,
allow_insecure_host,
&install_mirrors,
no_config,
cache,
printer,
)
};
.await?
.into_interpreter(),
);

// Determine the lock mode.
let mode = if frozen {
Expand Down Expand Up @@ -201,7 +196,7 @@ pub(crate) async fn license(
&index_locations,
&flat_index,
&dependency_metadata,
state.clone(),
state,
index_strategy,
&config_setting,
build_isolation,
Expand Down

0 comments on commit a9e7185

Please sign in to comment.