Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/package/pypi/loader.py
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | ) -> Optional[Revision]: | ||||
return Revision( | return Revision( | ||||
type=RevisionType.TAR, | type=RevisionType.TAR, | ||||
message=message.encode("utf-8"), | message=message.encode("utf-8"), | ||||
author=_author, | author=_author, | ||||
date=date, | date=date, | ||||
committer=_author, | committer=_author, | ||||
committer_date=date, | committer_date=date, | ||||
parents=[], | parents=(), | ||||
directory=directory, | directory=directory, | ||||
synthetic=True, | synthetic=True, | ||||
metadata={ | metadata={ | ||||
"intrinsic": {"tool": "PKG-INFO", "raw": i_metadata,}, | "intrinsic": {"tool": "PKG-INFO", "raw": i_metadata,}, | ||||
"extrinsic": { | "extrinsic": { | ||||
"provider": self.provider_url, | "provider": self.provider_url, | ||||
"when": self.visit_date.isoformat(), | "when": self.visit_date.isoformat(), | ||||
"raw": a_metadata, | "raw": a_metadata, | ||||
▲ Show 20 Lines • Show All 138 Lines • Show Last 20 Lines |