Skip to content

Commit a749f88

Browse files
committed
fix: remove index_url key
Signed-off-by: Frost Ming <[email protected]>
1 parent 8058807 commit a749f88

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/pdm/models/candidates.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import dataclasses
44
import hashlib
55
import os
6-
import posixpath
76
import re
87
import warnings
98
from functools import cached_property
@@ -405,11 +404,8 @@ def provenance_url(self) -> dict[str, Any] | None:
405404
comes_from = self.link.comes_from # e.g. https://pypi.org/simple/requests/
406405
if comes_from is None: # can't determine the index_url
407406
return None
408-
# FIXME: what about find-links source?
409-
index_url = posixpath.dirname(comes_from.rstrip("/")) + "/"
410407
return {
411408
"url": self.link.url_without_fragment,
412-
"index_url": index_url,
413409
"archive_info": {
414410
"hashes": {
415411
name: hashes[0] for name, hashes in (self.link.hash_option or {}).items() if name in ALLOWED_HASHES

0 commit comments

Comments
 (0)