Commit Graph

5 Commits

Author SHA1 Message Date
Paul Eggleton
2b98f751e6 check_requirements.sh: more tweaks
* Use venv module instead of deprecated virtualenv command
* Upgrade pip at the start so we don't get warnings about it

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-07-17 11:31:04 +12:00
Paul Eggleton
86682be25d check_requirements: make output file naming a bit more consistent
Prefix all output files with "requirements" so that it's clear what they
are related to.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-07-17 11:31:04 +12:00
Paul Eggleton
58e501afc9 check_requirements.sh: improve output for cron usage
For running this script in a cron job we want to see just the
interesting output since that will be sent as an email, so make the
following changes:

* Silence the normal output of virtualenv and pip
* Add a -q option for the script to silence progress messages

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-07-17 11:31:04 +12:00
Paul Eggleton
736c1104ae check_requirements: write out output of safety check
Use tee to write the output of safety check just in case we need to
refer to it later.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-07-17 11:31:04 +12:00
Paul Eggleton
55d6840072 Add a script to help keep requirements.txt up to date
Add a script that creates a virtualenv and does the following:
1) Tests pip install -r requirements.txt
2) Runs pip freeze and diffs the output to requirements.txt (to
   check if any dependencies have been missed when it was last updated)
3) Runs pip list --outdated and writes the output to a file so you can
   see which packages might need updating (of course some may not be
   able to be updated easily e.g. if an API change has been made)
4) Installs safety and runs "safety check" to check if there are any
   known vulnerabilities

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-11-06 13:58:30 +13:00