Authors (rever.authors)

Utilities for dealing with authorship files.

rever.authors.load_metadata(filename, return_yaml=False)

Loads author metadata file.

rever.authors.metadata_is_valid(metadata, emails=None, fields=None, filename='the authors file')

Returns whether the author metadata is valid.

rever.authors.update_metadata(filename, write=True, validation_error=True)

Takes a YAML metadata filename and updates it with the current repo information, if possible. If validation_error is True, this will fail if the information is not consistent

rever.authors.write_mailmap(metadata, filename)

Writes a mailmap file from the metadata (list of author dicts) provided.