2012-11-28 13:35:01 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-stevedore
|
|
|
|
#
|
2020-03-31 09:12:43 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2012-11-28 13:35:01 +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.
|
|
|
|
|
2018-11-14 13:40:28 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-12-14 09:47:35 +00:00
|
|
|
#
|
2012-11-28 13:35:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
Name: python-stevedore
|
2020-10-09 19:19:35 +00:00
|
|
|
Version: 3.2.2
|
2012-11-28 13:35:01 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Manage dynamic plugins for Python applications
|
2012-12-14 09:47:35 +00:00
|
|
|
License: Apache-2.0
|
2012-11-28 13:35:01 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-11-14 13:40:28 +00:00
|
|
|
URL: https://docs.openstack.org/developer/stevedore/
|
2020-10-09 19:19:35 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/s/stevedore/stevedore-3.2.2.tar.gz
|
2016-10-13 09:32:35 +00:00
|
|
|
BuildRequires: openstack-macros
|
2018-11-14 13:40:28 +00:00
|
|
|
BuildRequires: python3-docutils
|
2018-01-24 14:26:40 +00:00
|
|
|
BuildRequires: python3-mock
|
2019-01-22 09:31:08 +00:00
|
|
|
BuildRequires: python3-pbr >= 2.0.0
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
BuildRequires: python3-testtools
|
2012-11-28 13:35:01 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
2016-10-13 09:32:35 +00:00
|
|
|
Python makes loading code dynamically easy, allowing you to configure
|
|
|
|
and extend your application by discovering and loading extensions
|
|
|
|
(plugins) at runtime. Many applications implement their own
|
|
|
|
library for doing this, using ``__import__`` or ``importlib``.
|
|
|
|
stevedore avoids creating yet another extension
|
|
|
|
mechanism by building on top of setuptools entry points. The code
|
|
|
|
for managing entry points tends to be repetitive, though, so stevedore
|
|
|
|
provides manager classes for implementing common patterns for using
|
|
|
|
dynamically loaded extensions.
|
|
|
|
|
2020-03-31 09:12:43 +00:00
|
|
|
%package -n python3-stevedore
|
|
|
|
Summary: Manage dynamic plugins for Python applications
|
|
|
|
Group: Development/Languages/Python
|
2020-10-09 19:19:35 +00:00
|
|
|
Requires: python3-importlib_metadata >= 1.7.0
|
2020-03-31 09:12:43 +00:00
|
|
|
Requires: python3-pbr >= 2.0.0
|
2020-10-09 19:19:35 +00:00
|
|
|
Requires: python3-six
|
2020-03-31 09:12:43 +00:00
|
|
|
|
|
|
|
%description -n python3-stevedore
|
|
|
|
Python makes loading code dynamically easy, allowing you to configure
|
|
|
|
and extend your application by discovering and loading extensions
|
|
|
|
(plugins) at runtime. Many applications implement their own
|
|
|
|
library for doing this, using ``__import__`` or ``importlib``.
|
|
|
|
stevedore avoids creating yet another extension
|
|
|
|
mechanism by building on top of setuptools entry points. The code
|
|
|
|
for managing entry points tends to be repetitive, though, so stevedore
|
|
|
|
provides manager classes for implementing common patterns for using
|
|
|
|
dynamically loaded extensions.
|
|
|
|
|
|
|
|
This package contains the Python 3.x module
|
|
|
|
|
2018-01-24 14:26:40 +00:00
|
|
|
%package -n python-stevedore-doc
|
2016-10-13 09:32:35 +00:00
|
|
|
Summary: Documentation for %{name}
|
2018-01-24 14:26:40 +00:00
|
|
|
Group: Documentation/HTML
|
2018-11-14 13:40:28 +00:00
|
|
|
BuildRequires: python3-Sphinx
|
2018-01-24 14:26:40 +00:00
|
|
|
Provides: %{python_module stevedore-doc = %{version}}
|
2016-10-13 09:32:35 +00:00
|
|
|
|
2018-01-24 14:26:40 +00:00
|
|
|
%description -n python-stevedore-doc
|
2016-10-13 09:32:35 +00:00
|
|
|
Python makes loading code dynamically easy, allowing you to configure
|
|
|
|
and extend your application by discovering and loading extensions
|
|
|
|
(plugins) at runtime. Many applications implement their own
|
|
|
|
library for doing this, using ``__import__`` or ``importlib``.
|
|
|
|
stevedore avoids creating yet another extension
|
|
|
|
mechanism by building on top of setuptools entry points. The code
|
|
|
|
for managing entry points tends to be repetitive, though, so stevedore
|
|
|
|
provides manager classes for implementing common patterns for using
|
|
|
|
dynamically loaded extensions.
|
|
|
|
|
|
|
|
This package contains documentation in HTML format.
|
2012-11-28 13:35:01 +00:00
|
|
|
|
|
|
|
%prep
|
2018-01-24 14:26:40 +00:00
|
|
|
%autosetup -p1 -n stevedore-%{version}
|
2017-04-24 07:49:03 +00:00
|
|
|
%py_req_cleanup
|
2012-11-28 13:35:01 +00:00
|
|
|
|
|
|
|
%build
|
2020-03-31 09:12:43 +00:00
|
|
|
%py3_build
|
2012-11-28 13:35:01 +00:00
|
|
|
|
2016-10-13 09:32:35 +00:00
|
|
|
# generate html docs
|
2020-10-09 19:19:35 +00:00
|
|
|
PBR_VERSION=3.2.2 PYTHONPATH=. %sphinx_build -b html doc/source doc/build/html
|
2016-10-13 09:32:35 +00:00
|
|
|
# remove the Sphinx-build leftovers
|
2018-11-14 13:40:28 +00:00
|
|
|
rm -rf doc/build/html/.{doctrees,buildinfo}
|
2012-11-28 13:35:01 +00:00
|
|
|
|
2016-10-13 09:32:35 +00:00
|
|
|
%install
|
2020-03-31 09:12:43 +00:00
|
|
|
%py3_install
|
2018-01-24 14:26:40 +00:00
|
|
|
|
|
|
|
%check
|
2019-01-22 09:31:08 +00:00
|
|
|
# use pytest instead of stestr to break a build cycle between python-cliff, python-stestr and python-stevedore
|
2020-03-31 09:12:43 +00:00
|
|
|
python3 -m pytest stevedore/tests
|
2012-11-28 13:35:01 +00:00
|
|
|
|
2020-03-31 09:12:43 +00:00
|
|
|
%files -n python3-stevedore
|
2016-10-13 09:32:35 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
2020-03-31 09:12:43 +00:00
|
|
|
%{python3_sitelib}/stevedore
|
|
|
|
%{python3_sitelib}/stevedore-*.egg-info
|
2016-10-13 09:32:35 +00:00
|
|
|
|
2018-01-24 14:26:40 +00:00
|
|
|
%files -n python-stevedore-doc
|
2016-10-13 09:32:35 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc doc/build/html
|
2012-11-28 13:35:01 +00:00
|
|
|
|
|
|
|
%changelog
|