def _parse_package_name(name: str) -> str:
    """
    Force lower case and replace underscore with dash to compare environment
    packages (see https://www.python.org/dev/peps/pep-0426/#name)

    Args:
        name: Unformatted package name

    Returns:
        Formatted package name
    """
    return name.lower().replace("_", "-")