Add requirements and base pep8 job

This patch also adds tox.ini file with config for the pep8 job

Change-Id: I1f804dd03f254223cc1a7ed3371f6606fbb579cc
This commit is contained in:
Slawek Kaplonski 2022-08-22 12:19:28 +02:00
parent 91c2c4f8e9
commit f7c6868817
4 changed files with 50 additions and 1 deletions

View File

@ -1,3 +1,3 @@
- project: - project:
templates: templates:
- noop-jobs - tempest-plugin-jobs

6
requirements.txt Normal file
View File

@ -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

17
test-requirements.txt Normal file
View File

@ -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

26
tox.ini Normal file
View File

@ -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}