Browse Source

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.
bandit
Lars Kiesow 3 years ago
parent
commit
edd988f8a6
No known key found for this signature in database GPG Key ID: 5DAFE8D9C823CE73
  1. 9
      .licenses.ini
  2. 4
      .travis.yml

9
.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

4
.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

Loading…
Cancel
Save