Improve Poetry warning (#1730)

Good feedback from:
https://github.com/astral-sh/uv/pull/1650#discussion_r1495140531
This commit is contained in:
Charlie Marsh 2024-02-19 22:08:49 -05:00 committed by GitHub
parent 505b99d9b6
commit 402edf1522
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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());
}
}

View File

@ -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]
"###
);