add lower-constraints job

Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Also fix the lower bound for requests-kerberos.

Change-Id: Ie5da1d132321b2cffea3eb8522462daad45900b5
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-03-22 14:19:29 -04:00 committed by Colleen Murphy
parent 0c6094631a
commit f41e304849
6 changed files with 101 additions and 2 deletions

View File

@ -5,3 +5,9 @@
- osc-tox-unit-tips
- shade-functional-tips
- shade-tox-tips
check:
jobs:
- openstack-tox-lower-constraints
gate:
jobs:
- openstack-tox-lower-constraints

View File

@ -6,3 +6,9 @@ python-dev [platform:dpkg test]
python-devel [platform:rpm test]
libkrb5-dev [platform:dpkg test]
krb5-devel [platform:rpm test]
libxml2-dev [platform:dpkg]
libxml2-devel [platform:rpm]
libxslt-devel [platform:rpm]
libxslt1-dev [platform:dpkg]
zlib-devel [platform:rpm]
zlib1g-dev [platform:dpkg]

80
lower-constraints.txt Normal file
View File

@ -0,0 +1,80 @@
alabaster==0.7.10
appdirs==1.4.3
Babel==2.5.3
bandit==1.1.0
betamax==0.7.0
certifi==2018.1.18
chardet==3.0.4
cliff==2.11.0
cmd2==0.8.1
coverage==4.0
debtcollector==1.19.0
docutils==0.14
dulwich==0.19.0
extras==1.0.0
fixtures==3.0.0
flake8-docstrings==0.2.1.post1
flake8-import-order==0.17.1
flake8==2.5.5
future==0.16.0
gitdb2==2.0.3
GitPython==2.1.8
hacking==0.12.0
idna==2.6
imagesize==1.0.0
iso8601==0.1.11
Jinja2==2.10
linecache2==1.0.0
lxml==3.4.1
MarkupSafe==1.0
mccabe==0.2.1
mock==2.0.0
monotonic==1.4
mox3==0.25.0
netaddr==0.7.19
netifaces==0.10.6
oauthlib==0.6.2
openstack-requirements==1.2.0
openstackdocstheme==1.18.1
os-client-config==1.29.0
os-testr==1.0.0
oslo.config==5.2.0
oslo.i18n==3.20.0
oslo.utils==3.33.0
oslotest==3.2.0
packaging==17.1
Parsley==1.3
pbr==2.0.0
pep257==0.7.0
pep8==1.5.7
prettytable==0.7.2
pycodestyle==2.3.1
pyflakes==0.8.1
Pygments==2.2.0
pyparsing==2.2.0
pyperclip==1.6.0
python-mimeparse==1.6.0
python-subunit==1.2.0
pytz==2018.3
PyYAML==3.12
reno==2.5.0
requests-kerberos==0.8.0
requests-mock==1.2.0
requests==2.14.2
requestsexceptions==1.4.0
rfc3986==1.1.0
six==1.10.0
smmap2==2.0.3
snowballstemmer==1.2.1
Sphinx==1.6.2
sphinxcontrib-websupport==1.0.1
stestr==1.0.0
stevedore==1.20.0
testrepository==0.0.20
testresources==2.0.0
testtools==2.2.0
traceback2==1.4.0
unittest2==1.1.0
urllib3==1.22
voluptuous==0.11.1
wrapt==1.10.11

View File

@ -24,7 +24,7 @@ packages =
[extras]
kerberos =
requests-kerberos>=0.6 # ISC
requests-kerberos>=0.8.0 # ISC
saml2 =
lxml!=3.7.0,>=3.4.1 # BSD
oauth1 =

View File

@ -23,6 +23,6 @@ stestr>=1.0.0 # Apache-2.0
testresources>=2.0.0 # Apache-2.0/BSD
testtools>=2.2.0 # MIT
PyYAML>=3.12 # MIT
requests-kerberos>=0.6 # ISC
requests-kerberos>=0.8.0 # ISC
lxml!=3.7.0,>=3.4.1 # BSD
oauthlib>=0.6.2 # BSD

View File

@ -78,3 +78,10 @@ commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasen
[hacking]
local-check-factory = keystoneauth1.hacking.checks.factory
[testenv:lower-constraints]
basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt