From 55cdc908fdfca3c3b5850253bd01227bf2019d53 Mon Sep 17 00:00:00 2001 From: Scott Wyman Neagle Date: Mon, 3 Oct 2022 19:24:25 -0400 Subject: [PATCH] exclude MPL (#1265) --- .github/workflows/license.yml | 41 +++++++++++------------------------ CHANGELOG.md | 1 + 2 files changed, 14 insertions(+), 28 deletions(-) diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index 47d4cd073..fec7a6302 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -33,17 +33,6 @@ jobs: with: persist-credentials: false - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - - name: Install Python dependencies - run: | - pip install --no-cache-dir -r ./requirements.txt - pip install --no-cache-dir -r ./tests/requirements.txt - pip install pip-licenses - - name: Install NPM dependencies run: | npm i -g license-checker @@ -71,20 +60,16 @@ jobs: UNLICENSED ' - - name: Check back-end licenses - run: | - pip-licenses --format=csv --allow-only ' - Apache Software License; - BSD; - BSD License; - Freely Distributable; - Freeware; - GNU Library or Lesser General Public License (LGPL); - Historical Permission Notice and Disclaimer (HPND); - MIT License; - Mozilla Public License 2.0 (MPL 2.0); - Public Domain; - Python Software Foundation License; - Zope Public License; - MIT; - ' + - name: Check Python dependencies license names and type + id: license_check_report + uses: pilosus/action-pip-license-checker@main + with: + requirements: "requirements.txt,tests/requirements.txt,requirements-client.txt" + fail: "Copyleft,Error,Other" + exclude: "^(pylint|aio[-_]*).*" + exclude-license: 'Mozilla Public License 2.0 \(MPL 2.0\)' + with-totals: true + table-headers: true + - name: Print report + if: ${{ always() }} + run: echo "${{ steps.license_check_report.outputs.report }}" diff --git a/CHANGELOG.md b/CHANGELOG.md index 3efe85903..489d38229 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Adding boilerplate workflow - Syntax fixes in release.yml - Verbose failure messages in boilerplate workflow +- Change license.yml to pip-license-checker action ## [0.199.0] - 2022-09-29