From b29024eee8462315dd279aa6fc229cf9fa12f8f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sun, 17 Jan 2021 14:31:01 +0100 Subject: [PATCH] Show full list of supported VCS scheme in error message When an editable requirement is neither a local directory nor a URL with a supported VCS scheme, we show the full list of supported VCS schemes in the error message. --- src/pip/_internal/req/constructors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pip/_internal/req/constructors.py b/src/pip/_internal/req/constructors.py index 86c50b176dd..172b4cb0335 100644 --- a/src/pip/_internal/req/constructors.py +++ b/src/pip/_internal/req/constructors.py @@ -118,7 +118,7 @@ def parse_editable(editable_req): link = Link(url) if not link.is_vcs: - backends = ", ".join(f"{backend.name}+" for backend in vcs.backends) + backends = ", ".join(vcs.all_schemes) raise InstallationError( f'{editable_req} is not a valid editable requirement. ' f'It should either be a path to a local project or a VCS URL '