eric7/CycloneDXInterface/CycloneDXUtilities.py

branch
eric7
changeset 9146
409d93549d61
parent 9141
7085ece52151
equal deleted inserted replaced
9145:520a70c5437f 9146:409d93549d61
144 " version is a mandatory field.</p>" 144 " version is a mandatory field.</p>"
145 ).format("".join(excludedList)) 145 ).format("".join(excludedList))
146 ) 146 )
147 147
148 bom = Bom.from_parser(parser=parser) 148 bom = Bom.from_parser(parser=parser)
149 # TODO: add meta data to the BOM
150 _amendMetaData(bom.metadata, metadataDict) 149 _amendMetaData(bom.metadata, metadataDict)
151 output = get_output_instance( 150 output = get_output_instance(
152 bom=bom, 151 bom=bom,
153 output_format=outputFormat, 152 output_format=outputFormat,
154 schema_version=SchemaVersion['V{0}'.format( 153 schema_version=SchemaVersion['V{0}'.format(
332 ]) 331 ])
333 bomMetaData.tools.add(EricTool) 332 bomMetaData.tools.add(EricTool)
334 333
335 # add the meta data info entered by the user (if any) 334 # add the meta data info entered by the user (if any)
336 if metadataDict is not None: 335 if metadataDict is not None:
337 # TODO: add the meta info
338 if metadataDict["AuthorName"]: 336 if metadataDict["AuthorName"]:
339 bomMetaData.authors = [OrganizationalContact( 337 bomMetaData.authors = [OrganizationalContact(
340 name=metadataDict["AuthorName"], 338 name=metadataDict["AuthorName"],
341 email=metadataDict["AuthorEmail"] 339 email=metadataDict["AuthorEmail"]
342 )] 340 )]

eric ide

mercurial