We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68836d4 commit 41051f5Copy full SHA for 41051f5
src/pip/_internal/index/collector.py
@@ -525,9 +525,12 @@ def _get_index_content(
525
# final segment
526
if not url.endswith("/"):
527
url += "/"
528
+ # TODO: In the future, it would be nice if pip supported PEP 691
529
+ # style respones in the file:// URLs, however there's no
530
+ # standard file extension for application/vnd.pypi.simple.v1+json
531
+ # so we'll need to come up with something on our own.
532
url = urllib.parse.urljoin(url, "index.html")
533
logger.debug(" file: URL is directory, getting %s", url)
- # TODO: index.json?
534
535
try:
536
resp = _get_simple_response(url, session=session)
0 commit comments