aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2018-11-23 03:43:52 -0800
committerOle Trøan <otroan@employees.org>2018-11-26 09:30:46 +0000
commitab9e20b7310b7f3b91774c43aed9c34712ef7925 (patch)
tree1977ddff90dc756fe633ef5aa1c9cba88c4e84d3
parent9db94454b979d54d9a4bbaeb335582adacba9943 (diff)
VPP-1508 Add support for environment markers.
Add the ability to specify a specific python library version based on the interpreter/platform/etc. Change-Id: I027acdf22ad839b5cff63b319f0aa100b0f336c8 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
-rw-r--r--test/Makefile2
-rw-r--r--test/requirements.txt12
2 files changed, 13 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile
index 9f13e90d701..0369018af2f 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -73,7 +73,7 @@ PYTHON_EXTRA_DEPENDS=
endif
PYTHON_VENV_PATH=$(VPP_PYTHON_PREFIX)/virtualenv
-PYTHON_DEPENDS=$(PYTHON_EXTRA_DEPENDS) psutil faulthandler six scapy==2.4.0 pexpect cryptography subprocess32 cffi syslog-rfc5424-parser
+PYTHON_DEPENDS=$(PYTHON_EXTRA_DEPENDS) -r requirements.txt
SCAPY_SOURCE=$(shell find $(PYTHON_VENV_PATH) -name site-packages)
BUILD_COV_DIR=$(BR)/test-cov
diff --git a/test/requirements.txt b/test/requirements.txt
new file mode 100644
index 00000000000..7ae21f875fa
--- /dev/null
+++ b/test/requirements.txt
@@ -0,0 +1,12 @@
+cffi # MIT
+cryptography!=2.0 # BSD/Apache-2.0
+faulthandler; python_version < '3.3' # # BSD License (2 clause)
+flake8 # MIT
+ipaddress; python_version < '3.3' # PSF
+pexpect # ISC
+psutil # BSD
+pycodestyle # MIT (Expat license) https://pypi.org/project/pycodestyle/
+scapy==2.4.0; python_version >= '2.7' or python_version >= '3.4' # GPL2 https://github.com/secdev/scapy/blob/master/LICENSE
+six # MIT
+subprocess32 # PSF
+syslog_rfc5424_parser # ISC