File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change 33import dataclasses
44import hashlib
55import os
6- import posixpath
76import re
87import warnings
98from functools import cached_property
@@ -402,14 +401,8 @@ def provenance_url(self) -> dict[str, Any] | None:
402401 if not isinstance (req , NamedRequirement ):
403402 return None
404403 assert self .link is not None
405- comes_from = self .link .comes_from # e.g. https://pypi.org/simple/requests/
406- if comes_from is None : # can't determine the index_url
407- return None
408- # FIXME: what about find-links source?
409- index_url = posixpath .dirname (comes_from .rstrip ("/" )) + "/"
410404 return {
411405 "url" : self .link .url_without_fragment ,
412- "index_url" : index_url ,
413406 "archive_info" : {
414407 "hashes" : {
415408 name : hashes [0 ] for name , hashes in (self .link .hash_option or {}).items () if name in ALLOWED_HASHES
You can’t perform that action at this time.
0 commit comments