2016-05-04 06:19:29 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-osprofiler
|
|
|
|
#
|
2020-03-14 11:46:01 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2016-05-04 06:19:29 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-03-12 09:57:18 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-05-04 06:19:29 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-osprofiler
|
2020-10-09 19:18:41 +00:00
|
|
|
Version: 3.4.0
|
2016-05-04 06:19:29 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: OpenStack Profiler Library
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Languages/Python
|
2018-09-03 09:52:41 +00:00
|
|
|
URL: https://launchpad.net/osprofiler
|
2020-10-09 19:18:41 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/o/osprofiler/osprofiler-3.4.0.tar.gz
|
2016-08-01 18:57:20 +00:00
|
|
|
BuildRequires: openstack-macros
|
2018-09-03 09:52:41 +00:00
|
|
|
BuildRequires: python3-PrettyTable >= 0.7.2
|
2018-01-15 12:04:16 +00:00
|
|
|
BuildRequires: python3-WebOb >= 1.7.1
|
2018-09-03 09:52:41 +00:00
|
|
|
BuildRequires: python3-ddt
|
2019-04-08 14:05:31 +00:00
|
|
|
BuildRequires: python3-docutils
|
2018-09-03 09:52:41 +00:00
|
|
|
BuildRequires: python3-elasticsearch
|
2020-10-09 19:18:41 +00:00
|
|
|
BuildRequires: python3-importlib-metadata
|
2018-09-03 09:52:41 +00:00
|
|
|
BuildRequires: python3-mock
|
|
|
|
BuildRequires: python3-oslo.concurrency >= 3.26.0
|
|
|
|
BuildRequires: python3-oslo.config
|
|
|
|
BuildRequires: python3-oslo.log
|
2018-02-23 13:31:24 +00:00
|
|
|
BuildRequires: python3-oslo.utils >= 3.33.0
|
2018-09-03 09:52:41 +00:00
|
|
|
BuildRequires: python3-pymongo
|
|
|
|
BuildRequires: python3-python-subunit
|
|
|
|
BuildRequires: python3-redis
|
2018-01-15 12:04:16 +00:00
|
|
|
BuildRequires: python3-six >= 1.10.0
|
2019-04-08 14:05:31 +00:00
|
|
|
BuildRequires: python3-stestr
|
2018-09-03 09:52:41 +00:00
|
|
|
BuildRequires: python3-testtools
|
2016-05-04 06:19:29 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
2016-08-01 18:57:20 +00:00
|
|
|
OSProfiler provides a tiny but powerful library that is used by
|
|
|
|
most (soon to be all) OpenStack projects and their python clients. It
|
|
|
|
provides functionality to be able to generate 1 trace per request, that goes
|
|
|
|
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
|
|
|
|
reasons (for example in isolating cross-project performance issues).
|
2016-05-04 06:19:29 +00:00
|
|
|
|
2020-03-14 11:46:01 +00:00
|
|
|
%package -n python3-osprofiler
|
|
|
|
Summary: OpenStack Profiler Library
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Requires: python3-PrettyTable >= 0.7.2
|
|
|
|
Requires: python3-WebOb >= 1.7.1
|
2020-10-09 19:18:41 +00:00
|
|
|
Requires: python3-importlib-metadata
|
2020-03-14 11:46:01 +00:00
|
|
|
Requires: python3-oslo.concurrency >= 3.26.0
|
|
|
|
Requires: python3-oslo.config
|
|
|
|
Requires: python3-oslo.log
|
|
|
|
Requires: python3-oslo.utils >= 3.33.0
|
|
|
|
Requires: python3-six >= 1.10.0
|
2020-03-23 12:16:38 +00:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
Obsoletes: python2-osprofiler < 3.0.0
|
|
|
|
%endif
|
2020-03-14 11:46:01 +00:00
|
|
|
|
|
|
|
%description -n python3-osprofiler
|
|
|
|
OSProfiler provides a tiny but powerful library that is used by
|
|
|
|
most (soon to be all) OpenStack projects and their python clients. It
|
|
|
|
provides functionality to be able to generate 1 trace per request, that goes
|
|
|
|
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
|
|
|
|
reasons (for example in isolating cross-project performance issues).
|
|
|
|
|
|
|
|
This package contains the Python 3.x module
|
|
|
|
|
2018-01-15 12:04:16 +00:00
|
|
|
%package -n python-osprofiler-doc
|
2016-08-01 18:57:20 +00:00
|
|
|
Summary: Documentation for OSProfiler
|
|
|
|
Group: Development/Languages/Python
|
2019-10-09 12:40:09 +00:00
|
|
|
BuildRequires: python3-Sphinx
|
|
|
|
BuildRequires: python3-openstackdocstheme
|
2016-05-04 06:19:29 +00:00
|
|
|
|
2018-01-15 12:04:16 +00:00
|
|
|
%description -n python-osprofiler-doc
|
2016-08-01 18:57:20 +00:00
|
|
|
Documentation for OSProfiler.
|
2016-05-04 06:19:29 +00:00
|
|
|
|
|
|
|
%prep
|
2020-10-09 19:18:41 +00:00
|
|
|
%autosetup -p1 -n osprofiler-3.4.0
|
2017-02-13 08:51:14 +00:00
|
|
|
%py_req_cleanup
|
2016-05-04 06:19:29 +00:00
|
|
|
|
|
|
|
%build
|
2020-03-14 11:46:01 +00:00
|
|
|
%{py3_build}
|
2016-05-04 06:19:29 +00:00
|
|
|
|
|
|
|
%install
|
2020-03-14 11:46:01 +00:00
|
|
|
%{py3_install}
|
2016-08-01 18:57:20 +00:00
|
|
|
|
|
|
|
# generate html docs
|
2019-10-09 12:40:09 +00:00
|
|
|
PBR_VERSION=%{version} %sphinx_build -b html doc/source doc/build/html
|
2016-08-01 18:57:20 +00:00
|
|
|
# remove the sphinx-build leftovers
|
|
|
|
rm -rf doc/build/html/.{doctrees,buildinfo}
|
2016-05-04 06:19:29 +00:00
|
|
|
|
|
|
|
%check
|
2020-03-14 11:46:01 +00:00
|
|
|
python3 -m stestr.cli run --black-regex '(^osprofiler.tests.unit.drivers.test_jaeger.JaegerTestCase.*$)'
|
2016-05-04 06:19:29 +00:00
|
|
|
|
2020-03-14 11:46:01 +00:00
|
|
|
%files -n python3-osprofiler
|
2016-08-01 18:57:20 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst ChangeLog
|
2020-03-14 11:46:01 +00:00
|
|
|
%{python3_sitelib}/osprofiler
|
|
|
|
%{python3_sitelib}/*.egg-info
|
|
|
|
%{_bindir}/osprofiler
|
2016-08-01 18:57:20 +00:00
|
|
|
|
2018-01-15 12:04:16 +00:00
|
|
|
%files -n python-osprofiler-doc
|
2016-08-01 18:57:20 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc doc/build/html
|
2016-05-04 06:19:29 +00:00
|
|
|
|
|
|
|
%changelog
|