reuse.convert_dep5 module

Logic to convert a .reuse/dep5 file to a REUSE.toml file.

reuse.convert_dep5.toml_from_dep5(dep5: Copyright) str[source]

Given a Copyright object, return an equivalent REUSE.toml string.

reuse.convert_dep5.add_arguments(parser: ArgumentParser) None[source]

Add arguments to parser.

reuse.convert_dep5.run(args: ~argparse.Namespace, project: ~reuse.project.Project, out: ~typing.IO[str] = <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>) int[source]

Convert .reuse/dep5 to REUSE.toml.