Module flavio.data.update_citations
Standalone helper script to update the list of citations referenced in the flavio source code.
Functions
def main(argv)-
Expand source code
def main(argv): parser = argparse.ArgumentParser(description='Update the list of citations referenced in the flavio source code.') args = parser.parse_args() from flavio.util import get_datapath, extract_citations filename = get_datapath('flavio', 'data/citations.yml') with open(filename, 'w') as f: f.write(yaml.dump(sorted(extract_citations()))) logging.info(f"Saved updated citations to {filename}")