From 0f69ec85fae7b4e352986d5f1cc4e15974f052e5 Mon Sep 17 00:00:00 2001 From: Benjamin Rosemann Date: Wed, 5 May 2021 16:31:18 +0200 Subject: [PATCH] Also consider packages on CircleCI --- .allowed-licenses | 1 + .circleci/config.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.allowed-licenses b/.allowed-licenses index 1093263..8a567a8 100644 --- a/.allowed-licenses +++ b/.allowed-licenses @@ -36,3 +36,4 @@ Public Domain # Variants of the Python Software Foundation License Python Software Foundation License +Python Software Foundation License, MIT License diff --git a/.circleci/config.yml b/.circleci/config.yml index f8f20eb..4ef79d3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -44,6 +44,7 @@ jobs: - run: # Read allowed licenses from file to ";"-separated string while removing empty lines and comments name: License check command: | + pip-licenses --from=mixed --summary ALLOWED=$(sed -e '/^#.*$/d' -e '/^\s*$/d' .allowed-licenses | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/;/g'); echo $ALLOWED pip-licenses --from=mixed --allow-only="${ALLOWED}" --summary