Changeset View
Changeset View
Standalone View
Standalone View
swh/lister/pypi/lister.py
Show All 22 Lines | class PyPILister(ListerOnePageApiTransport, SimpleLister): | ||||
def task_dict(self, origin_type, origin_url, **kwargs): | def task_dict(self, origin_type, origin_url, **kwargs): | ||||
"""(Override) Return task format dict | """(Override) Return task format dict | ||||
This is overridden from the lister_base as more information is | This is overridden from the lister_base as more information is | ||||
needed for the ingestion task creation. | needed for the ingestion task creation. | ||||
""" | """ | ||||
_type = 'origin-update-%s' % origin_type | _type = 'load-%s' % origin_type | ||||
_policy = 'recurring' | _policy = 'recurring' | ||||
project_name = kwargs.get('name') | project_name = kwargs.get('name') | ||||
project_metadata_url = kwargs.get('html_url') | project_metadata_url = kwargs.get('html_url') | ||||
return utils.create_task_dict( | return utils.create_task_dict( | ||||
_type, _policy, project_name, origin_url, | _type, _policy, project_name, origin_url, | ||||
project_metadata_url=project_metadata_url) | project_metadata_url=project_metadata_url) | ||||
def list_packages(self, response): | def list_packages(self, response): | ||||
Show All 37 Lines |