Skip to content

Commit 41051f5

Browse files
committed
Better expand on our TODO
1 parent 68836d4 commit 41051f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pip/_internal/index/collector.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,12 @@ def _get_index_content(
525525
# final segment
526526
if not url.endswith("/"):
527527
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.
528532
url = urllib.parse.urljoin(url, "index.html")
529533
logger.debug(" file: URL is directory, getting %s", url)
530-
# TODO: index.json?
531534

532535
try:
533536
resp = _get_simple_response(url, session=session)

0 commit comments

Comments
 (0)