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 8058807 commit a749f88Copy full SHA for a749f88
src/pdm/models/candidates.py
@@ -3,7 +3,6 @@
3
import dataclasses
4
import hashlib
5
import os
6
-import posixpath
7
import re
8
import warnings
9
from functools import cached_property
@@ -405,11 +404,8 @@ def provenance_url(self) -> dict[str, Any] | None:
405
404
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("/")) + "/"
410
return {
411
"url": self.link.url_without_fragment,
412
- "index_url": index_url,
413
"archive_info": {
414
"hashes": {
415
name: hashes[0] for name, hashes in (self.link.hash_option or {}).items() if name in ALLOWED_HASHES
0 commit comments