Use dependency pinning

For CentOS7, we use dependency pinning in the spec file. Note that we
don't do it for Ubuntu as it will use the dependency versions from the
requirements.txt.

We now use the compatible release operator [1] to define versions in
the requirements.txt.

[1]: https://www.python.org/dev/peps/pep-0440/#compatible-release

Change-Id: I33712b923b4d59c09014fa6fcc19c0929df547eb
This commit is contained in:
Vincent Llorens 2016-09-13 15:09:32 +02:00
parent 4ffaed61c4
commit d72333562b
2 changed files with 18 additions and 13 deletions

View File

@ -11,13 +11,15 @@ License: ASL 2.0
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: python-nova
Requires: python-oslo-config
Requires: python-oslo-messaging
Requires: python-pbr
Requires: python-requests
Requires: python-sqlalchemy
Requires: python-synergy-service
Requires: python-nova >= 12.0
Requires: python-oslo-config >= 2.4
Requires: python-oslo-messaging >= 2.5
Requires: python-oslo-serialization >= 1.9
Requires: python-oslo-versionedobjects >= 0.10
Requires: python-pbr >= 1.8
Requires: python-requests >= 2.10
Requires: python-sqlalchemy >= 1.0
Requires: python-synergy-service >= 1.0.1
%description

View File

@ -2,9 +2,12 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
pbr>=1.6
synergy-service>=1.0.0,<1.1.0
oslo.config>=2.4.0,<3.0.0
oslo.messaging>=2.5.0,<3.0.0
requests>=2.7.0,<3.0.0
sqlalchemy>=1.0.0,<1.1.0
pbr~=1.8
oslo.config~=2.4
oslo.messaging~=2.5
oslo.serialization~=1.9
oslo.versionedobjects~=0.10
requests>=2.0.0,<3.0.0 # availability: 2.10.0 on CentOS 7, 2.7.0 on Ubuntu 14.04
sqlalchemy~=1.0
synergy-service~=1.0.1