From 52fd6436a252c08c5c9ce8f8dfed0fb477c8c5fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sun, 1 May 2022 19:40:16 +0200 Subject: [PATCH] Fix propagation of user_supplied with URL constrains --- news/11079.bugfix.rst | 1 + src/pip/_internal/req/constructors.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 news/11079.bugfix.rst diff --git a/news/11079.bugfix.rst b/news/11079.bugfix.rst new file mode 100644 index 000000000..61305a765 --- /dev/null +++ b/news/11079.bugfix.rst @@ -0,0 +1 @@ +Fix missing ``REQUESTED`` metadata when using URL constraints. diff --git a/src/pip/_internal/req/constructors.py b/src/pip/_internal/req/constructors.py index a879e94ea..dea7c3b01 100644 --- a/src/pip/_internal/req/constructors.py +++ b/src/pip/_internal/req/constructors.py @@ -497,4 +497,5 @@ def install_req_from_link_and_ireq( global_options=ireq.global_options, hash_options=ireq.hash_options, config_settings=ireq.config_settings, + user_supplied=ireq.user_supplied, )