From ab9e20b7310b7f3b91774c43aed9c34712ef7925 Mon Sep 17 00:00:00 2001 From: Paul Vinciguerra Date: Fri, 23 Nov 2018 03:43:52 -0800 Subject: [PATCH] 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 --- test/Makefile | 2 +- test/requirements.txt | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 test/requirements.txt 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 -- 2.16.6