mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-29 03:02:55 +00:00
Clarify need to include pyproject.toml with --no-install-project (#6581)
## Summary See: https://github.com/astral-sh/uv/issues/6573
This commit is contained in:
parent
1eb97c91fd
commit
8ee53a9e38
2 changed files with 29 additions and 1 deletions
|
|
@ -861,6 +861,18 @@ fn no_install_project() -> Result<()> {
|
|||
+ sniffio==1.3.1
|
||||
"###);
|
||||
|
||||
// However, we do require the `pyproject.toml`.
|
||||
fs_err::remove_file(pyproject_toml)?;
|
||||
|
||||
uv_snapshot!(context.filters(), context.sync().arg("--no-install-project"), @r###"
|
||||
success: false
|
||||
exit_code: 2
|
||||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
error: No `pyproject.toml` found in current directory or any parent directory
|
||||
"###);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
@ -928,6 +940,18 @@ fn no_install_workspace() -> Result<()> {
|
|||
+ sniffio==1.3.1
|
||||
"###);
|
||||
|
||||
// However, we do require the `pyproject.toml`.
|
||||
fs_err::remove_file(child.join("pyproject.toml"))?;
|
||||
|
||||
uv_snapshot!(context.filters(), context.sync().arg("--no-install-workspace"), @r###"
|
||||
success: false
|
||||
exit_code: 2
|
||||
----- stdout -----
|
||||
|
||||
----- stderr -----
|
||||
error: Workspace member `[TEMP_DIR]/child` is missing a `pyproject.toml` (matches: `child`)
|
||||
"###);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue