Sync requirements with OpenStack requirements

It also adds upper constraints in pip calls.

Change-Id: I5a6b296b09628f0c21fe2c015c9379cc25c58198
Signed-off-by: Cédric Ollivier <ollivier.cedric@gmail.com>
This commit is contained in:
Cédric Ollivier 2019-05-20 20:33:45 +02:00
parent 2b53ece6de
commit c1b0f57f3d
4 changed files with 39 additions and 28 deletions

View File

@ -2,20 +2,20 @@
# of appearance. Changing the order has an impact on the overall integration # of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later. # process, which may cause wedges in the gate later.
pbr<2.0,>=1.3 pbr!=2.1.0 # Apache-2.0
Babel>=1.3 Babel!=2.4.0 # BSD
attrdict>=2.0.0 attrdict>=2.0.0
lxml>=3.4.0 lxml!=3.7.0 # BSD
paramiko>=2.4.2 paramiko # LGPLv2.1+
prettytable>=0.7.2 PrettyTable<0.8 # BSD
pymongo>=2.7.2 pymongo!=3.1 # Apache-2.0
pytz>=2016.4 pytz # MIT
python-glanceclient>=0.15.0 python-glanceclient # Apache-2.0
python-neutronclient>=3.0.0 python-neutronclient # Apache-2.0
python-novaclient>=2.18.1 python-novaclient # Apache-2.0
python-openstackclient>=0.4.1 python-openstackclient # Apache-2.0
python-keystoneclient>=3.10.0 python-keystoneclient!=2.1.0 # Apache-2.0
scp>=0.8.0 scp>=0.8.0
tabulate>=0.7.3 tabulate>=0.7.3
fluent-logger>=0.5.2 fluent-logger>=0.5.2

11
setup.py Executable file → Normal file
View File

@ -1,4 +1,3 @@
#!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
@ -17,6 +16,14 @@
# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT # THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
import setuptools import setuptools
# In python < 2.7.4, a lazy loading of package `pbr` will break
# setuptools if some other modules registered functions in `atexit`.
# solution from: http://bugs.python.org/issue15881#msg170215
try:
import multiprocessing # noqa
except ImportError:
pass
setuptools.setup( setuptools.setup(
setup_requires=['pbr'], setup_requires=['pbr>=2.0.0'],
pbr=True) pbr=True)

View File

@ -2,16 +2,17 @@
# of appearance. Changing the order has an impact on the overall integration # of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later. # process, which may cause wedges in the gate later.
hacking>=1.1.0,<1.2.0 # Apache-2.0 hacking<1.2.0,>=1.1.0 # Apache-2.0
coverage>=3.6 coverage!=4.4 # Apache-2.0
discover discover
python-subunit>=0.0.18 python-subunit # Apache-2.0/BSD
sphinx>=1.4.0 sphinx!=1.6.6,!=1.6.7,<2.0.0;python_version=='2.7' # BSD
sphinx_rtd_theme>=0.1.9 sphinx!=1.6.6,!=1.6.7;python_version>='3.4' # BSD
oslosphinx>=2.5.0 # Apache-2.0 sphinx-rtd-theme>=0.1.9
oslotest>=1.10.0 # Apache-2.0 oslosphinx # Apache-2.0
testrepository>=0.0.18 oslotest # Apache-2.0
testscenarios>=0.4 testrepository # Apache-2.0/BSD
testtools>=1.4.0 testscenarios # Apache-2.0/BSD
testtools # MIT
pytest>=3.0.2 pytest>=3.0.2

View File

@ -5,11 +5,14 @@ skipsdist = True
[testenv] [testenv]
usedevelop = True usedevelop = True
install_command = pip install -U {opts} {packages} install_command =
pip install {opts} {packages}
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
setenv = setenv =
VIRTUAL_ENV={envdir} VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = py.test -q -s --basetemp={envtmpdir} {posargs} commands = py.test -q -s --basetemp={envtmpdir} {posargs}
[testenv:pep8] [testenv:pep8]