def do_release_version():
    """Set the version to 'final' for a release."""
    facts = get_release_facts()
    rel_vi = facts.vi[:3] + ("final", 0)
    rel_version = f"version_info = {rel_vi}\n_dev = 0".replace("'", '"')
    update_file(
        "coverage/version.py", r"(?m)^version_info = .*\n_dev = \d+$", rel_version,
    )
Set the version to 'final' for a release.
igor.py