Report python dependencies for CLM analysis 07/2907/10
authorLott, Christopher (cl778h) <cl778h@att.com>
Sun, 22 Mar 2020 11:29:16 +0000 (07:29 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Mon, 20 Apr 2020 14:12:53 +0000 (10:12 -0400)
Define new environment 'clm' with command 'pip freeze' to report code
and test dependencies with version strings as installed by tox for
CLM analysis.

Issue-ID: INT-24
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: I93ae9a819d98f41bcc0c87a693690f54843b2019

tox.ini

diff --git a/tox.ini b/tox.ini
index 2faf2c6..4d0a6a7 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -48,6 +48,11 @@ commands = flake8 setup.py a1 tests
 [flake8]
 extend-ignore = E501,E741,E731
 
+[testenv:clm]
+# use pip to gather dependencies with versions for CLM analysis
+whitelist_externals = sh
+commands = sh -c 'pip freeze > requirements.txt'
+
 # Docs
 
 # verbatim as asked for by the docs instructions: https://wiki.o-ran-sc.org/display/DOC/Configure+Repo+for+Documentation