Fix requirements, tox , zuul

Change-Id: Ie32028c901831185d9694db8b9fd35829759a1ac
This commit is contained in:
Eyal 2020-01-15 14:12:55 +02:00
parent f3b09f4b94
commit 57afe0a3f4
7 changed files with 69 additions and 18 deletions

View File

@ -2,3 +2,4 @@
templates:
- openstack-python3-ussuri-jobs
- check-requirements
- openstack-lower-constraints-jobs

5
doc/requirements.txt Normal file
View File

@ -0,0 +1,5 @@
sphinx>=1.8.0,!=2.1.0;python_version>='3.4' # BSD
sphinxcontrib-httpdomain>=1.3.0 # BSD
sphinxcontrib-pecanwsme>=0.8.0 # Apache-2.0
openstackdocstheme>=1.30.0 # Apache-2.0
reno>=2.5.0 # Apache-2.0

View File

18
lower-constraints.txt Normal file
View File

@ -0,0 +1,18 @@
Babel==2.3.4
coverage==4.0
doc8==0.6.0
fixtures==3.0.0
hacking==1.1.0
mistral-lib==1.2.0
mock==2.0.0
openstackdocstheme==1.30.0
oslo.log==3.36.0
oslotest==3.2.0
pbr==2.0.0
reno==2.5.0
requests-mock==1.2.0
sphinx==1.8.0
sphinxcontrib-httpdomain==1.3.0
sphinxcontrib-pecanwsme==0.10.0
stestr==2.0.0
unittest2==1.1.0

View File

@ -2,6 +2,7 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
pbr>=2.0.0 # Apache-2.0
Babel>=2.3.4 # BSD
oslo.log>=3.11.0 # Apache-2.0
pbr!=2.1.0,>=2.0.0 # Apache-2.0
Babel!=2.4.0,>=2.3.4 # BSD
oslo.log>=3.36.0 # Apache-2.0
mistral-lib>=1.2.0 # Apache-2.0

View File

@ -2,15 +2,12 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
hacking>=1.1.0,<1.2.0 # Apache-2.0
coverage>=4.0 # Apache-2.0
python-subunit>=0.0.18 # Apache-2.0/BSD
sphinx>=1.8.0,!=2.1.0;python_version>='3.4' # BSD
oslosphinx>=4.7.0 # Apache-2.0
oslotest>=1.10.0 # Apache-2.0
stestr>=1.0.0 # Apache-2.0
testscenarios>=0.4 # Apache-2.0/BSD
testtools>=1.4.0 # MIT
# releasenotes
reno>=1.8.0 # Apache-2.0
hacking>=1.1.0 # Apache-2.0
coverage!=4.4,>=4.0 # Apache-2.0
doc8>=0.6.0 # Apache-2.0
oslotest>=3.2.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0
unittest2>=1.1.0 # BSD
mock>=2.0.0 # BSD
requests-mock>=1.2.0 # Apache-2.0
fixtures>=3.0.0 # Apache-2.0/BSD

35
tox.ini
View File

@ -2,27 +2,41 @@
minversion = 2.0
envlist = py37,pep8
skipsdist = True
ignore_basepython_conflict = True
[testenv]
basepython = python3
usedevelop = True
install_command = pip install {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
PYTHONDONTWRITEBYTECODE = 1
PYTHONWARNINGS=default::DeprecationWarning
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = stestr run --slowest {posargs}
commands =
rm -f .testrepository/times.dbm
find . -type f -name "*.pyc" -delete
stestr run --slowest {posargs}
whitelist_externals =
rm
find
[testenv:pep8]
commands =
doc8 doc/source
flake8 {posargs}
[testenv:venv]
setenv = PYTHONHASHSEED=0
commands = {posargs}
[testenv:cover]
setenv =
PYTHON=coverage run --source $project --parallel-mode
{[testenv]setenv}
PYTHON=coverage run --source mistral --parallel-mode
commands =
stestr run {posargs}
coverage combine
@ -30,7 +44,11 @@ commands =
coverage xml -o cover/coverage.xml
[testenv:docs]
commands = python setup.py build_sphinx
deps = -r{toxinidir}/doc/requirements.txt
setenv = PYTHONHASHSEED=0
commands =
rm -rf doc/build
sphinx-build -E -W --keep-going -b html doc/source doc/build/html
[testenv:releasenotes]
whitelist_externals =
@ -42,6 +60,11 @@ commands =
[testenv:debug]
commands = oslo_debug_helper {posargs}
[doc8]
extensions = .rst, .yaml, .mistral
# Maximal line length should be 80.
max-line-length = 80
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
@ -49,3 +72,9 @@ show-source = True
ignore = E123,E125
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
[testenv:lower-constraints]
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt