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.
This commit is contained in:
Lars Kiesow 2019-10-18 23:56:36 +02:00
parent 9e3146f2ab
commit edd988f8a6
No known key found for this signature in database
GPG key ID: 5DAFE8D9C823CE73
2 changed files with 12 additions and 1 deletions

9
.licenses.ini Normal file
View file

@ -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

View file

@ -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