Exemple #1
0
def check_requirements():
    if is_pyup_branch() and tools.last_committer() != tools.TOOLING_COMMITER_NAME:
        # Recompile to fix broken formatting etc., but ensure there can't be a loop.
        compile_requirements(upgrade=True)
        if tools.has_uncommitted_changes("requirements"):
            push_pyup_requirements_commit()
            raise RuntimeError("Pushed new requirements; check next build.")
    else:
        compile_requirements(upgrade=False)
Exemple #2
0
def check_requirements():
    if is_pyup_branch():
        # We recompile to fix broken formatting etc., but also want to support
        # manual fixes to the bot's PRs and ensure there can't be a loop.
        should_recompile = tools.last_committer() == "pyup-bot"
        compile_requirements(upgrade=should_recompile)
    else:
        compile_requirements(upgrade=False)

    if tools.has_uncommitted_changes("requirements"):
        push_pyup_requirements_commit()
        raise RuntimeError("Pushed new requirements; check next build.")
def check_requirements():
    if is_pyup_branch():
        # We recompile to fix broken formatting etc., but also want to support
        # manual fixes to the bot's PRs and ensure there can't be a loop.
        should_recompile = tools.last_committer() == "pyup-bot"
        compile_requirements(upgrade=should_recompile)
    else:
        compile_requirements(upgrade=False)

    if tools.has_uncommitted_changes("requirements"):
        push_pyup_requirements_commit()
        raise RuntimeError("Pushed new requirements; check next build.")