mirror of https://github.com/astral-sh/uv
Improve Poetry warning (#1730)
Good feedback from: https://github.com/astral-sh/uv/pull/1650#discussion_r1495140531
This commit is contained in:
parent
505b99d9b6
commit
402edf1522
|
|
@ -243,7 +243,7 @@ impl RequirementsSpecification {
|
|||
.iter()
|
||||
.any(|v| v.name.as_dist_info_name().starts_with("poetry"))
|
||||
}) {
|
||||
warn_user!("`{}` does not contain any dependencies (hint: Poetry's format is not supported for now)", path.normalized_display());
|
||||
warn_user!("`{}` does not contain any dependencies (hint: specify dependencies in the `project.dependencies` section; `tool.poetry.dependencies` is not currently supported)", path.normalized_display());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -409,7 +409,7 @@ build-backend = "poetry.core.masonry.api"
|
|||
# uv pip compile --cache-dir [CACHE_DIR] --exclude-newer 2023-11-18T12:00:00Z pyproject.toml
|
||||
|
||||
----- stderr -----
|
||||
warning: `pyproject.toml` does not contain any dependencies (hint: Poetry's format is not supported for now)
|
||||
warning: `pyproject.toml` does not contain any dependencies (hint: specify dependencies in the `project.dependencies` section; `tool.poetry.dependencies` is not currently supported)
|
||||
Resolved 0 packages in [TIME]
|
||||
"###
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue