Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/package/pypi/loader.py
Show All 28 Lines | from swh.model.model import ( | ||||
Sha1Git, | Sha1Git, | ||||
TimestampWithTimezone, | TimestampWithTimezone, | ||||
) | ) | ||||
from swh.storage.interface import StorageInterface | from swh.storage.interface import StorageInterface | ||||
logger = logging.getLogger(__name__) | logger = logging.getLogger(__name__) | ||||
EXTID_TYPE = "archive-sha256" | EXTID_TYPE = "pypi-archive-sha256" | ||||
@attr.s | @attr.s | ||||
class PyPIPackageInfo(BasePackageInfo): | class PyPIPackageInfo(BasePackageInfo): | ||||
raw_info = attr.ib(type=Dict[str, Any]) | raw_info = attr.ib(type=Dict[str, Any]) | ||||
comment_text = attr.ib(type=Optional[str]) | comment_text = attr.ib(type=Optional[str]) | ||||
sha256 = attr.ib(type=str) | sha256 = attr.ib(type=str) | ||||
▲ Show 20 Lines • Show All 256 Lines • Show Last 20 Lines |