Accepting request 565775 from Cloud:OpenStack:Factory

- update to version 1.14.0
  - Remove unused parameters from Profiler class
  - Make dependency on oslo.messaging runtime only
  - Update reno for stable/pike
  - Add loading local static files option of template.html
  - Do not require OpenStack authentication to run osprofiler CLI
  - Improve unit test coverage
  - Make test_notifier independent of test case execution order
  - Remove dependency on oslo.log library
  - Extend messaging driver to support reporting
  - Handle and report SQLAlchemy errors
  - Add function/sql results to trace info

OBS-URL: https://build.opensuse.org/request/show/565775
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-osprofiler?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2018-01-17 20:56:39 +00:00 committed by Git OBS Bridge
commit 7cc77bcab3
5 changed files with 91 additions and 42 deletions

View File

@ -1,8 +1,8 @@
<services> <services>
<service mode="disabled" name="renderspec"> <service mode="disabled" name="renderspec">
<param name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/pike/openstack/osprofiler/osprofiler.spec.j2</param> <param name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/master/openstack/osprofiler/osprofiler.spec.j2</param>
<param name="output-name">python-osprofiler.spec</param> <param name="output-name">python-osprofiler.spec</param>
<param name="requirements">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/pike/global-requirements.txt</param> <param name="requirements">https://raw.githubusercontent.com/openstack/rpm-packaging/master/requirements.txt</param>
<param name="changelog-email">cloud-devel@suse.de</param> <param name="changelog-email">cloud-devel@suse.de</param>
<param name="changelog-provider">gh,openstack,osprofiler</param> <param name="changelog-provider">gh,openstack,osprofiler</param>
</service> </service>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b79081344555e0c7ba6fdd02a774e81728cbe81d82d8bfbe201ebd72899e6132
size 75301

3
osprofiler-1.14.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ce6362f50c98c18e47748a5bb03a9958dac9f92230ff4bdf0367374c9624f054
size 79506

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
Mon Jan 15 12:04:06 UTC 2018 - cloud-devel@suse.de
- update to version 1.14.0
- Remove unused parameters from Profiler class
- Make dependency on oslo.messaging runtime only
- Update reno for stable/pike
- Add loading local static files option of template.html
- Do not require OpenStack authentication to run osprofiler CLI
- Improve unit test coverage
- Make test_notifier independent of test case execution order
- Remove dependency on oslo.log library
- Extend messaging driver to support reporting
- Handle and report SQLAlchemy errors
- Add function/sql results to trace info
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 7 08:36:49 UTC 2017 - cloud-devel@suse.de Mon Aug 7 08:36:49 UTC 2017 - cloud-devel@suse.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-osprofiler # spec file for package python-osprofiler
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,39 +16,63 @@
# #
%global sname osprofiler
Name: python-osprofiler Name: python-osprofiler
Version: 1.11.0 Version: 1.14.0
Release: 0 Release: 0
Summary: OpenStack Profiler Library Summary: OpenStack Profiler Library
License: Apache-2.0 License: Apache-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://launchpad.net/osprofiler Url: https://launchpad.net/osprofiler
Source0: https://pypi.io/packages/source/o/%{sname}/%{sname}-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/o/osprofiler/osprofiler-1.14.0.tar.gz
BuildRequires: openstack-macros BuildRequires: openstack-macros
BuildRequires: python-WebOb >= 1.7.1
BuildRequires: python-ceilometerclient >= 2.5.0
BuildRequires: python-ddt >= 1.0.1
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: python-elasticsearch >= 2.0.0 BuildRequires: python2-WebOb >= 1.7.1
BuildRequires: python-mock >= 2.0 BuildRequires: python2-ceilometerclient >= 2.5.0
BuildRequires: python-oslo.concurrency >= 3.8.0 BuildRequires: python2-ddt >= 1.0.1
BuildRequires: python-oslo.config >= 4.0.0 BuildRequires: python2-elasticsearch >= 2.0.0
BuildRequires: python-oslo.log >= 3.22.0 BuildRequires: python2-mock >= 2.0.0
BuildRequires: python-oslo.utils >= 3.20.0 BuildRequires: python2-oslo.concurrency >= 3.20.0
BuildRequires: python-pymongo >= 3.0.2 BuildRequires: python2-oslo.config >= 4.6.0
BuildRequires: python-python-subunit >= 0.0.18 BuildRequires: python2-oslo.log >= 3.30.0
BuildRequires: python-redis >= 2.10.0 BuildRequires: python2-oslo.utils >= 3.31.0
BuildRequires: python-six >= 1.9.0 BuildRequires: python2-pymongo >= 3.0.2
BuildRequires: python-testrepository >= 0.0.18 BuildRequires: python2-python-subunit >= 1.0.0
BuildRequires: python-testtools >= 1.4.0 BuildRequires: python2-redis >= 2.10.0
BuildRequires: python2-six >= 1.10.0
BuildRequires: python2-testrepository >= 0.0.18
BuildRequires: python2-testtools >= 2.2.0
BuildRequires: python3-WebOb >= 1.7.1
BuildRequires: python3-ceilometerclient >= 2.5.0
BuildRequires: python3-ddt >= 1.0.1
BuildRequires: python3-devel
BuildRequires: python3-elasticsearch >= 2.0.0
BuildRequires: python3-mock >= 2.0.0
BuildRequires: python3-oslo.concurrency >= 3.20.0
BuildRequires: python3-oslo.config >= 4.6.0
BuildRequires: python3-oslo.log >= 3.30.0
BuildRequires: python3-oslo.utils >= 3.31.0
BuildRequires: python3-pymongo >= 3.0.2
BuildRequires: python3-python-subunit >= 1.0.0
BuildRequires: python3-redis >= 2.10.0
BuildRequires: python3-six >= 1.10.0
BuildRequires: python3-testrepository >= 0.0.18
BuildRequires: python3-testtools >= 2.2.0
Requires: python-WebOb >= 1.7.1 Requires: python-WebOb >= 1.7.1
Requires: python-oslo.concurrency >= 3.8.0 Requires: python-oslo.concurrency >= 3.20.0
Requires: python-oslo.config >= 4.0.0 Requires: python-oslo.config >= 4.6.0
Requires: python-oslo.log >= 3.22.0 Requires: python-oslo.log >= 3.30.0
Requires: python-oslo.utils >= 3.20.0 Requires: python-oslo.utils >= 3.31.0
Requires: python-six >= 1.9.0 Requires: python-six >= 1.10.0
BuildArch: noarch BuildArch: noarch
%if 0%{?suse_version}
Requires(post): update-alternatives
Requires(postun): update-alternatives
%else
# on RDO, update-alternatives is in chkconfig
Requires(post): chkconfig
Requires(postun): chkconfig
%endif
%python_subpackages
%description %description
OSProfiler provides a tiny but powerful library that is used by OSProfiler provides a tiny but powerful library that is used by
@ -58,42 +82,51 @@ through all involved services. This trace can then be extracted and used
to build a tree of calls which can be quite handy for a variety of to build a tree of calls which can be quite handy for a variety of
reasons (for example in isolating cross-project performance issues). reasons (for example in isolating cross-project performance issues).
%package doc %package -n python-osprofiler-doc
Summary: Documentation for OSProfiler Summary: Documentation for OSProfiler
Group: Development/Languages/Python Group: Development/Languages/Python
BuildRequires: python-Sphinx BuildRequires: python-Sphinx
BuildRequires: python-openstackdocstheme >= 1.11.0 BuildRequires: python-openstackdocstheme >= 1.17.0
%description doc %description -n python-osprofiler-doc
Documentation for OSProfiler. Documentation for OSProfiler.
%prep %prep
%autosetup -n %{sname}-%{version} %autosetup -p1 -n osprofiler-1.14.0
%py_req_cleanup %py_req_cleanup
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
%build %build
%{py2_build} %{python_build}
%install %install
%{py2_install} %{python_install}
%python_clone -a %{buildroot}%{_bindir}/osprofiler
# generate html docs # generate html docs
%{__python2} setup.py build_sphinx %{__python2} setup.py build_sphinx
# remove the sphinx-build leftovers # remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo} rm -rf doc/build/html/.{doctrees,buildinfo}
%check %post
%{__python2} setup.py testr %python_install_alternative osprofiler
%files %postun
%python_uninstall_alternative osprofiler
%check
%{python_expand rm -rf .testrepository
$python setup.py testr
}
%files %{python_files}
%license LICENSE %license LICENSE
%doc README.rst ChangeLog %doc README.rst ChangeLog
%{python2_sitelib}/osprofiler %{python_sitelib}/osprofiler
%{python2_sitelib}/*.egg-info %{python_sitelib}/*.egg-info
%{_bindir}/osprofiler %python_alternative %{_bindir}/osprofiler
%files doc %files -n python-osprofiler-doc
%license LICENSE %license LICENSE
%doc doc/build/html %doc doc/build/html