Skip to content

Commit e5f7859

Browse files
committed
pylock: read attestation-identities field
1 parent 9f77ce5 commit e5f7859

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/pip/_internal/models/pylock.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ class Package:
356356
# (not supported) index: Optional[str]
357357
sdist: Optional[PackageSdist]
358358
wheels: Optional[List[PackageWheel]]
359-
# (not supported) attestation_identities: Optional[List[Dict[str, Any]]]
359+
attestation_identities: Optional[List[Dict[str, Any]]]
360360
tool: Optional[Dict[str, Any]]
361361

362362
def __post_init__(self) -> None:
@@ -387,6 +387,7 @@ def from_dict(cls, d: Dict[str, Any]) -> "Self":
387387
archive=_get_object(d, PackageArchive, "archive"),
388388
sdist=_get_object(d, PackageSdist, "sdist"),
389389
wheels=_get_list_of_objects(d, PackageWheel, "wheels"),
390+
attestation_identities=_get_list(d, dict, "attestation-identities"),
390391
tool=_get(d, dict, "tool"),
391392
)
392393
return package

src/pip/_internal/utils/pylock.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ def _pylock_package_from_install_requirement(
109109
archive=package_archive,
110110
sdist=package_sdist,
111111
wheels=package_wheels,
112+
attestation_identities=None, # not supported
112113
tool=None,
113114
)
114115

0 commit comments

Comments
 (0)