@@ -156,10 +156,10 @@ def _create_files_info_mapping(
156156
157157
158158class MinimalDistribution (pkginfo .Distribution ):
159- def __init__ (self , name : str , summary : str ):
159+ def __init__ (self , name : str , description : str ):
160160 super ().__init__ () # Get all the default None values
161161 self .name = name
162- self .summary = summary
162+ self .description = description
163163
164164
165165async def _fetch_metadata_resource (
@@ -174,7 +174,7 @@ async def _fetch_metadata_resource(
174174 # Return a minimal distribution object with basic info
175175 ext = file .filename .rsplit ("." , 1 )[- 1 ]
176176 reason = f"Legacy package format ({ ext } ) - metadata not available"
177- minimal_dist = MinimalDistribution (project_name , summary = reason )
177+ minimal_dist = MinimalDistribution (project_name , description = reason )
178178 return file , minimal_dist
179179
180180 resource_name = file .filename + ".metadata"
@@ -185,7 +185,7 @@ async def _fetch_metadata_resource(
185185 resource = await repository .get_resource (project_name , resource_name )
186186 except simple_repository .errors .ResourceUnavailable as err :
187187 reason = f"Unable to retrieve metadata for { file .filename } ({ err } )"
188- minimal_dist = MinimalDistribution (project_name , summary = reason )
188+ minimal_dist = MinimalDistribution (project_name , description = reason )
189189 logging .exception (reason )
190190 return file , minimal_dist
191191
0 commit comments