mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-18 11:20:40 +00:00
Allow uv pip install for unmanaged projects (#5504)
## Summary Just an oversight. Closes: https://github.com/astral-sh/uv/issues/5500.
This commit is contained in:
parent
24859bd3ee
commit
866d844977
3 changed files with 49 additions and 7 deletions
|
|
@ -736,9 +736,12 @@ impl ProjectWorkspace {
|
|||
return Ok(None);
|
||||
};
|
||||
|
||||
Ok(Some(
|
||||
Self::from_project(install_path, lock_path, &project, &pyproject_toml, options).await?,
|
||||
))
|
||||
match Self::from_project(install_path, lock_path, &project, &pyproject_toml, options).await
|
||||
{
|
||||
Ok(workspace) => Ok(Some(workspace)),
|
||||
Err(WorkspaceError::NonWorkspace(_)) => Ok(None),
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns the directory containing the closest `pyproject.toml` that defines the current
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue