From 402edf1522f9d7b6b9930c7f93bafac4e14297c4 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Mon, 19 Feb 2024 22:08:49 -0500 Subject: [PATCH] Improve Poetry warning (#1730) Good feedback from: https://github.com/astral-sh/uv/pull/1650#discussion_r1495140531 --- crates/uv/src/requirements.rs | 2 +- crates/uv/tests/pip_compile.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/uv/src/requirements.rs b/crates/uv/src/requirements.rs index 26f5f30a6..8358d493d 100644 --- a/crates/uv/src/requirements.rs +++ b/crates/uv/src/requirements.rs @@ -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()); } } diff --git a/crates/uv/tests/pip_compile.rs b/crates/uv/tests/pip_compile.rs index 03c44616f..2ba16a94d 100644 --- a/crates/uv/tests/pip_compile.rs +++ b/crates/uv/tests/pip_compile.rs @@ -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] "### );