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.
This commit is contained in:
Stéphane Bidoul 2021-01-17 14:31:01 +01:00
parent 78b891a6d1
commit 7ee22ba995
No known key found for this signature in database
GPG Key ID: BCAB2555446B5B92
1 changed files with 1 additions and 1 deletions

View File

@ -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 '