update oslo.messaging to v9.4.0

- Also fix BuildRequires/Requires for vmware-nsxlib . The problem got
  visible while updating oslo.messaging
- Also fix mistral build for newer oslo.messaging version, and update
  to 8.0.0.0b1

Co-Authored-By: Thomas Bechtold <tbechtold@suse.com>
Change-Id: I6bbbe32f228a408d170da3644423763d21cbb3c9
Depends-On: https://review.openstack.org/639994
This commit is contained in:
tonybrad
2018-10-10 16:18:56 +08:00
committed by Javier Pena
parent 48cea46292
commit 7d6d8876a4
3 changed files with 21 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
{% set pypi_name = 'mistral' %}
{% set upstream_version = upstream_version('7.0.0.0b1') %}
{% set upstream_version = upstream_version('8.0.0.0b1') %}
{% set source = url_pypi() %}
{% set rpm_release = '1' %}
%if 0%{?rhel} || 0%{?fedora}
@@ -35,12 +35,14 @@ BuildRequires: {{ py2pkg('kazoo') }}
BuildRequires: {{ py2pkg('python-keystoneclient') }}
BuildRequires: {{ py2pkg('keystonemiddleware') }}
BuildRequires: {{ py2pkg('python-magnumclient') }}
BuildRequires: {{ py2pkg('python-manilaclient') }}
BuildRequires: {{ py2pkg('mistral-lib') }}
BuildRequires: {{ py2pkg('python-mistralclient') }}
BuildRequires: {{ py2pkg('python-muranoclient') }}
BuildRequires: {{ py2pkg('python-neutronclient') }}
BuildRequires: {{ py2pkg('nose') }}
BuildRequires: {{ py2pkg('python-novaclient') }}
BuildRequires: {{ py2pkg('os-api-ref') }}
BuildRequires: {{ py2pkg('oslo.concurrency') }}
BuildRequires: {{ py2pkg('oslo.config') }}
BuildRequires: {{ py2pkg('oslo.db') }}
@@ -54,10 +56,12 @@ BuildRequires: {{ py2pkg('oslotest') }}
BuildRequires: {{ py2pkg('osprofiler') }}
BuildRequires: {{ py2pkg('pbr') }}
BuildRequires: {{ py2pkg('python-subunit') }}
BuildRequires: {{ py2pkg('python-qinlingclient') }}
BuildRequires: {{ py2pkg('reno') }}
BuildRequires: {{ py2pkg('requests-mock') }}
BuildRequires: {{ py2pkg('python-senlinclient') }}
BuildRequires: {{ py2pkg('six') }}
BuildRequires: {{ py2pkg('stestr') }}
BuildRequires: {{ py2pkg('stevedore') }}
BuildRequires: {{ py2pkg('python-swiftclient') }}
BuildRequires: {{ py2pkg('python-tackerclient') }}
@@ -67,7 +71,9 @@ BuildRequires: {{ py2pkg('testtools') }}
BuildRequires: {{ py2pkg('tooz') }}
BuildRequires: {{ py2pkg('python-troveclient') }}
BuildRequires: {{ py2pkg('unittest2') }}
BuildRequires: {{ py2pkg('python-vitrageclient') }}
BuildRequires: {{ py2pkg('python-zaqarclient') }}
BuildRequires: {{ py2pkg('python-zunclient') }}
Requires: python-mistral = %{version}-%{release}
BuildArch: noarch
%if 0%{?suse_version}
@@ -124,6 +130,7 @@ Requires: {{ py2pkg('jsonschema') }}
Requires: {{ py2pkg('python-keystoneclient') }}
Requires: {{ py2pkg('keystonemiddleware') }}
Requires: {{ py2pkg('python-magnumclient') }}
Requires: {{ py2pkg('python-manilaclient') }}
Requires: {{ py2pkg('mistral-lib') }}
Requires: {{ py2pkg('python-mistralclient') }}
Requires: {{ py2pkg('mock') }}
@@ -145,6 +152,7 @@ Requires: {{ py2pkg('osprofiler') }}
Requires: {{ py2pkg('paramiko') }}
Requires: {{ py2pkg('pbr') }}
Requires: {{ py2pkg('pecan') }}
Requires: {{ py2pkg('python-qinlingclient') }}
Requires: {{ py2pkg('requests') }}
Requires: {{ py2pkg('retrying') }}
Requires: {{ py2pkg('python-senlinclient') }}
@@ -155,9 +163,11 @@ Requires: {{ py2pkg('python-swiftclient') }}
Requires: {{ py2pkg('python-tackerclient') }}
Requires: {{ py2pkg('tooz') }}
Requires: {{ py2pkg('python-troveclient') }}
Requires: {{ py2pkg('python-vitrageclient') }}
Requires: {{ py2pkg('yaql') }}
Requires: {{ py2pkg('zake') }}
Requires: {{ py2pkg('python-zaqarclient') }}
Requires: {{ py2pkg('python-zunclient') }}
%description -n python-{{ pypi_name }}
Mistral is a workflow service.
@@ -201,8 +211,8 @@ which the API servers will use.
%else
%autosetup -p1 -n {{ pypi_name }}-{{upstream_version}}
%endif
%py_req_cleanup
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
%build
%{py2_build}
@@ -210,7 +220,7 @@ export PYTHONPATH="."
oslo-config-generator --config-file tools/config/config-generator.mistral.conf \
--output-file etc/mistral.conf.sample
%{__python2} setup.py build_sphinx -b html
PBR_VERSION={{ upstream_version }} sphinx-build -b html doc/source doc/build/html
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
@@ -235,7 +245,7 @@ chmod +x %{buildroot}%{_bindir}/mistral*
%openstack_pre_user_group_create mistral mistral
%check
%{__python2} setup.py test
%{__python2} -m stestr.cli run
%post api
%systemd_post openstack-mistral-api.service

View File

@@ -1,5 +1,5 @@
{% set pypi_name = 'oslo.messaging' %}
{% set upstream_version = upstream_version('8.1.0') %}
{% set upstream_version = upstream_version('9.4.0') %}
{% set rpm_release = '1' %}
{% set source = url_pypi() %}
@@ -17,15 +17,15 @@ BuildRequires: {{ py2pkg('PyYAML', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('WebOb', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('amqp', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('cachetools', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('confluent-kafka', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('debtcollector', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('eventlet', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('fixtures', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('futurist', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('greenlet', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('kafka-python', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('kombu', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('mock', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('monotonic', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('monotonic', py_versions=['py2']) }}
BuildRequires: {{ py2pkg('oslo.config', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('oslo.i18n', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('oslo.log', py_versions=['py2', 'py3']) }}
@@ -56,7 +56,6 @@ Requires: {{ py2pkg('debtcollector') }}
Requires: {{ py2pkg('futurist') }}
Requires: {{ py2pkg('greenlet') }}
Requires: {{ py2pkg('kombu') }}
Requires: {{ py2pkg('monotonic') }}
Requires: {{ py2pkg('oslo.config') }}
Requires: {{ py2pkg('oslo.i18n') }}
Requires: {{ py2pkg('oslo.log') }}
@@ -68,11 +67,11 @@ Requires: {{ py2pkg('pika') }}
Requires: {{ py2pkg('pika-pool') }}
Requires: {{ py2pkg('six') }}
Requires: {{ py2pkg('stevedore') }}
Requires: {{ py2pkg('tenacity') }}
BuildArch: noarch
%ifpython2
BuildRequires: {{ py2pkg('futures') }}
Requires: {{ py2pkg('futures') }}
Requires: {{ py2pkg('monotonic') }}
%endif
%if 0%{?suse_version}
Requires(post): update-alternatives
@@ -117,18 +116,12 @@ rm -rf build/sphinx/html/.{doctrees,buildinfo}
%install
%{python_install}
%python_clone -a %{buildroot}%{_bindir}/oslo-messaging-zmq-broker
%python_clone -a %{buildroot}%{_bindir}/oslo-messaging-zmq-proxy
%python_clone -a %{buildroot}%{_bindir}/oslo-messaging-send-notification
%post
%python_install_alternative oslo-messaging-zmq-broker
%python_install_alternative oslo-messaging-zmq-proxy
%python_install_alternative oslo-messaging-send-notification
%postun
%python_uninstall_alternative oslo-messaging-zmq-broker
%python_uninstall_alternative oslo-messaging-zmq-proxy
%python_uninstall_alternative oslo-messaging-send-notification
%check
@@ -139,8 +132,6 @@ rm -rf build/sphinx/html/.{doctrees,buildinfo}
%doc README.rst ChangeLog
%{python_sitelib}/oslo_messaging
%{python_sitelib}/*.egg-info
%python_alternative %{_bindir}/oslo-messaging-zmq-broker
%python_alternative %{_bindir}/oslo-messaging-zmq-proxy
%python_alternative %{_bindir}/oslo-messaging-send-notification
%files -n {{ py2name() }}-doc

View File

@@ -19,15 +19,18 @@ BuildRequires: {{ py2pkg('oslo.log', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('oslotest', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('pyOpenSSL', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('requests-mock', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('tenacity', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('testrepository', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('testresources', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('testscenarios', py_versions=['py2', 'py3']) }}
BuildRequires: {{ py2pkg('testtools', py_versions=['py2', 'py3']) }}
Requires: {{ py2pkg('eventlet') }}
Requires: {{ py2pkg('netaddr') }}
Requires: {{ py2pkg('neutron-lib') }}
Requires: {{ py2pkg('oslo.i18n') }}
Requires: {{ py2pkg('oslo.log') }}
Requires: {{ py2pkg('oslo.serialization') }}
Requires: {{ py2pkg('oslo.service') }}
Requires: {{ py2pkg('oslo.utils') }}
Requires: {{ py2pkg('pyOpenSSL') }}
Requires: {{ py2pkg('six') }}
@@ -35,8 +38,6 @@ Requires: {{ py2pkg('tenacity') }}
BuildArch: noarch
%ifpython2
Requires: {{ py2pkg('enum34') }}
Requires: {{ py2pkg('neutron-lib') }}
Requires: {{ py2pkg('oslo.service') }}
%endif
%python_subpackages