Skip to content

Commit

Permalink
Better expand on our TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
dstufft committed Jul 15, 2022
1 parent 68836d4 commit 41051f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pip/_internal/index/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,12 @@ def _get_index_content(
# final segment
if not url.endswith("/"):
url += "/"
# TODO: In the future, it would be nice if pip supported PEP 691
# style respones in the file:// URLs, however there's no
# standard file extension for application/vnd.pypi.simple.v1+json
# so we'll need to come up with something on our own.
url = urllib.parse.urljoin(url, "index.html")
logger.debug(" file: URL is directory, getting %s", url)
# TODO: index.json?

try:
resp = _get_simple_response(url, session=session)
Expand Down

0 comments on commit 41051f5

Please sign in to comment.