def main()

in scripts/compare_package_version.py [0:0]


def main() -> None:
    setup_version = get_setup_version(setup_file_path)
    pypi_version = get_pypi_version(package)
    if version_parse(setup_version) > version_parse(pypi_version):
        print(f"setup.py {setup_version} is higher than Pypi version {pypi_version}")
        print("higher")
    elif version_parse(setup_version) == version_parse(pypi_version):
        print(f"setup.py {setup_version} is equal to Pypi version {pypi_version}")
        print("equal")
    else:
        print(
            f"Error: setup.py {setup_version} is lower than to Pypi version {pypi_version}, this is not exepected."
        )
        # when exit code is 1, the workflow will stop and raise an error
        sys.exit(1)