From 7ca28795db48b81a508e5b17d4e5e056930f801e Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Sun, 24 Mar 2024 12:52:31 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: chrysle --- piptools/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piptools/build.py b/piptools/build.py index 4f86d83e..cdb9e7c1 100644 --- a/piptools/build.py +++ b/piptools/build.py @@ -81,7 +81,7 @@ def maybe_statically_parse_project_metadata( project_table = pyproject_contents["project"] - # Dynamic dependencies require build invocation + # Dynamic dependencies require build backend invocation dynamic = project_table.get("dynamic", []) if "dependencies" in dynamic or "optional-dependencies" in dynamic: return None @@ -152,7 +152,7 @@ def build_project_metadata( if build_targets: raise ValueError( "Cannot execute the PEP 517 optional get_requires_for_build* " - "hooks statically" + "hooks statically, as build requirements are requested" ) project_metadata = maybe_statically_parse_project_metadata(src_file) if project_metadata is not None: