From edd988f8a6d0ba693a5ea494dae7311fdc7f1019 Mon Sep 17 00:00:00 2001 From: Lars Kiesow Date: Fri, 18 Oct 2019 23:56:36 +0200 Subject: [PATCH] Automated License Check This patch adds a license checker to the automated tests. This ensures that only dependencies with licenses from a list of known good licenses are used. --- .licenses.ini | 9 +++++++++ .travis.yml | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .licenses.ini diff --git a/.licenses.ini b/.licenses.ini new file mode 100644 index 0000000..cac5032 --- /dev/null +++ b/.licenses.ini @@ -0,0 +1,9 @@ +# Authorized licenses in lower case + +# There is no project rule against adding new licenses as long as they are +# compatible with the project's license. + +[Licenses] +authorized_licenses: + BSD + MIT diff --git a/.travis.yml b/.travis.yml index 717381a..652fae3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,12 +9,14 @@ python: - "3.7" install: - - pip install flake8 python-coveralls coverage + - pip install flake8 python-coveralls coverage liccheck + - pip install -r requirements.txt - python setup.py bdist_wheel - pip install dist/feedgen* script: - make test + - liccheck -s .licenses.ini - python -m feedgen - python -m feedgen atom - python -m feedgen rss