From 609e3cd427c533de868c5004d217c3ee35ad32c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sat, 16 May 2020 12:45:43 +0200 Subject: [PATCH] Uniform use of user supplied vocabulary --- news/7811.feature | 2 +- src/pip/_internal/req/req_set.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/news/7811.feature b/news/7811.feature index b06aaa5bf27..0b471405a9c 100644 --- a/news/7811.feature +++ b/news/7811.feature @@ -1,2 +1,2 @@ -Generate PEP 376 REQUESTED metadata for top level requirements installed +Generate PEP 376 REQUESTED metadata for user supplied requirements installed by pip. diff --git a/src/pip/_internal/req/req_set.py b/src/pip/_internal/req/req_set.py index a3c4d353db3..27e8346cff5 100644 --- a/src/pip/_internal/req/req_set.py +++ b/src/pip/_internal/req/req_set.py @@ -111,7 +111,7 @@ def add_requirement( # This next bit is really a sanity check. assert not install_req.user_supplied or parent_req_name is None, ( - "a direct req shouldn't have a parent" + "a user supplied req shouldn't have a parent" ) # Unnamed requirements are scanned again and the requirement won't be @@ -166,8 +166,8 @@ def add_requirement( # If we're now installing a constraint, mark the existing # object for real installation. existing_req.constraint = False - # If we're now installing a top level requirement, mark the existing - # object as top level. + # If we're now installing a user supplied requirement, + # mark the existing object as such. if install_req.user_supplied: existing_req.user_supplied = True existing_req.extras = tuple(sorted(