From fd67fe1bb17af77620d36cab5a40991005c93812 Mon Sep 17 00:00:00 2001 From: Dorian Turba <froggit.commit.z3jqj@simplelogin.com> Date: Sun, 10 Sep 2023 15:01:02 +0200 Subject: [PATCH] add strip extra to pipcompile and fix typo in cmd --- .../python/dependency_management/depandabot/depandabot.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/python/dependency_management/depandabot/depandabot.yml b/templates/python/dependency_management/depandabot/depandabot.yml index a2ed599..b00bc54 100644 --- a/templates/python/dependency_management/depandabot/depandabot.yml +++ b/templates/python/dependency_management/depandabot/depandabot.yml @@ -19,7 +19,7 @@ depandabot: - | COMMIT_MESSAGE="build(deps): bump new versions" - $([ -f ${OUTPUT_FILE_PATH} ]) && ACTION="update" || ACTION="create" - - pip-compile --quiet -o ${OUTPUT_FILE_PATH} ${REQUIREMENTS_FILE_PATH} + - pip-compile --quiet --strip-extras -o ${OUTPUT_FILE_PATH} ${REQUIREMENTS_FILE_PATH} - if [ -n "$(git status --porcelain ${OUTPUT_FILE_PATH})" ]; then - | curl --header "Authorization: Bearer ${DEPANDABOT_TOKEN}" \ @@ -34,7 +34,7 @@ depandabot: --form "actions[][file_path]=${OUTPUT_FILE_PATH}" \ --form "actions[][content]=<${OUTPUT_FILE_PATH}" \ "https://${GITLAB_API_URL}/api/v4/projects/${CI_PROJECT_ID}/repository/commits" - - requirement-compare ${REQUIREMENTS_FILE_PATH} ${OUTPUT_FILE_PATH} + - requirements-compare ${REQUIREMENTS_FILE_PATH} ${OUTPUT_FILE_PATH} - | curl --header "Authorization: Bearer ${DEPANDABOT_TOKEN}" \ --form "source_branch=$DEPS_BRANCH" \ -- GitLab