@@ -156,10 +156,10 @@ def _create_files_info_mapping(
156
156
157
157
158
158
class MinimalDistribution (pkginfo .Distribution ):
159
- def __init__ (self , name : str , summary : str ):
159
+ def __init__ (self , name : str , description : str ):
160
160
super ().__init__ () # Get all the default None values
161
161
self .name = name
162
- self .summary = summary
162
+ self .description = description
163
163
164
164
165
165
async def _fetch_metadata_resource (
@@ -174,7 +174,7 @@ async def _fetch_metadata_resource(
174
174
# Return a minimal distribution object with basic info
175
175
ext = file .filename .rsplit ("." , 1 )[- 1 ]
176
176
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 )
178
178
return file , minimal_dist
179
179
180
180
resource_name = file .filename + ".metadata"
@@ -185,7 +185,7 @@ async def _fetch_metadata_resource(
185
185
resource = await repository .get_resource (project_name , resource_name )
186
186
except simple_repository .errors .ResourceUnavailable as err :
187
187
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 )
189
189
logging .exception (reason )
190
190
return file , minimal_dist
191
191
0 commit comments