From f7c6868817dd9ec9dd111b4cf8ea852f8c8748ec Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Mon, 22 Aug 2022 12:19:28 +0200 Subject: [PATCH] Add requirements and base pep8 job This patch also adds tox.ini file with config for the pep8 job Change-Id: I1f804dd03f254223cc1a7ed3371f6606fbb579cc --- .zuul.yaml | 2 +- requirements.txt | 6 ++++++ test-requirements.txt | 17 +++++++++++++++++ tox.ini | 26 ++++++++++++++++++++++++++ 4 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 requirements.txt create mode 100644 test-requirements.txt create mode 100644 tox.ini diff --git a/.zuul.yaml b/.zuul.yaml index e7c200a..defd922 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -1,3 +1,3 @@ - project: templates: - - noop-jobs + - tempest-plugin-jobs diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..d122f89 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +python-subunit >= 0.0.18 +testtools >= 0.9.30 +dpkt >= 1.8.8 # BSD +cryptography >= 2.5, < 3.3 +netaddr +netifaces diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..aea87ad --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,17 @@ +# The order of packages is significant, because pip processes them in the order +# of appearance. Changing the order has an impact on the overall integration +# process, which may cause wedges in the gate later. + +hacking>=3.0.1,<3.1.0 + +coverage!=4.4,>=4.0 # Apache-2.0 +flake8-import-order==0.12 # LGPLv3 +python-subunit>=1.0.0 # Apache-2.0/BSD +sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD +sphinx!=1.6.6,!=1.6.7,!=2.1.0,>=1.6.2;python_version>='3.4' # BSD +oslotest>=3.2.0 # Apache-2.0 +stestr>=1.0.0 # Apache-2.0 +testtools>=2.2.0 # MIT +openstackdocstheme>=1.20.0 # Apache-2.0 +# releasenotes +reno>=2.5.0 # Apache-2.0 diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..a8ead27 --- /dev/null +++ b/tox.ini @@ -0,0 +1,26 @@ +[tox] +minversion = 3.18.0 +envlist = pep8 +skipsdist = True +ignore_basepython_conflict = True + +[testenv] +basepython = python3 +usedevelop = True +setenv = + VIRTUAL_ENV={envdir} + PYTHONWARNINGS=default::DeprecationWarning + OS_LOG_CAPTURE={env:OS_LOG_CAPTURE:true} + OS_STDOUT_CAPTURE={env:OS_STDOUT_CAPTURE:true} + OS_STDERR_CAPTURE={env:OS_STDERR_CAPTURE:true} +deps = + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} + -r{toxinidir}/test-requirements.txt +commands = stestr run --slowest {posargs} + +[testenv:pep8] +commands = + flake8 + +[testenv:venv] +commands = {posargs}