Skip to content

Commit 2bd12c4

Browse files
committed
pylock: read attestation-identities field
1 parent 2a7e600 commit 2bd12c4

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
@@ -357,7 +357,7 @@ class Package:
357357
# (not supported) index: Optional[str]
358358
sdist: Optional[PackageSdist]
359359
wheels: Optional[List[PackageWheel]]
360-
# (not supported) attestation_identities: Optional[List[Dict[str, Any]]]
360+
attestation_identities: Optional[List[Dict[str, Any]]]
361361
tool: Optional[Dict[str, Any]]
362362

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

src/pip/_internal/utils/pylock.py

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

0 commit comments

Comments
 (0)