import io


def generated_setup(file_path):
    """Determine if the seutp.py is one we've generated.

    Args:
        file_path: full file path to a setup.py

    Returns:
        True if we've made the setup.py
    """

    trigger = """This file was autogenerated by pypackage. To make changes, you
should edit the pypackage.meta rather than this setup.py."""
    with io.open(file_path, "r", encoding="utf-8") as opensetup:
        return trigger in opensetup.read()