2012-11-28 13:35:01 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-stevedore
|
|
|
|
#
|
2016-03-16 09:35:29 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2012-12-14 09:47:35 +00:00
|
|
|
#
|
2012-11-28 13:35:01 +00:00
|
|
|
|
|
|
|
|
2016-10-13 09:32:35 +00:00
|
|
|
%global pypi_name stevedore
|
2012-11-28 13:35:01 +00:00
|
|
|
Name: python-stevedore
|
2016-09-16 09:01:38 +00:00
|
|
|
Version: 1.17.1
|
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
|
2016-10-13 09:32:35 +00:00
|
|
|
Url: http://docs.openstack.org/developer/stevedore/
|
|
|
|
Source0: https://tarballs.openstack.org/stevedore/%{pypi_name}-%{version}.tar.gz
|
|
|
|
BuildRequires: openstack-macros
|
2012-11-28 13:35:01 +00:00
|
|
|
BuildRequires: python-devel
|
2016-10-13 09:32:35 +00:00
|
|
|
BuildRequires: python-mock >= 2.0
|
|
|
|
BuildRequires: python-oslotest >= 1.10.0
|
|
|
|
BuildRequires: python-pbr >= 1.6
|
|
|
|
BuildRequires: python-setuptools >= 16.0
|
|
|
|
Requires: python-pbr >= 1.6
|
2015-07-21 11:27:28 +00:00
|
|
|
Requires: python-six >= 1.9.0
|
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.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation
|
|
|
|
BuildRequires: python-Sphinx
|
|
|
|
BuildRequires: python-oslosphinx >= 2.5.0
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
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
|
2016-10-13 09:32:35 +00:00
|
|
|
%setup -q -n %{pypi_name}-%{version}
|
2012-11-28 13:35:01 +00:00
|
|
|
|
|
|
|
%build
|
2016-10-13 09:32:35 +00:00
|
|
|
%py2_build
|
2012-11-28 13:35:01 +00:00
|
|
|
|
2016-10-13 09:32:35 +00:00
|
|
|
# generate html docs
|
|
|
|
%{__python2} setup.py build_sphinx
|
|
|
|
# remove the Sphinx-build leftovers
|
|
|
|
rm -rf html/.{doctrees,buildinfo}
|
2012-11-28 13:35:01 +00:00
|
|
|
|
2016-04-28 14:55:29 +00:00
|
|
|
%check
|
2016-10-13 09:32:35 +00:00
|
|
|
%{__python2} setup.py testr
|
|
|
|
|
|
|
|
%install
|
|
|
|
%py2_install
|
2012-11-28 13:35:01 +00:00
|
|
|
|
|
|
|
%files
|
2016-10-13 09:32:35 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
|
|
|
%{python2_sitelib}/%{pypi_name}
|
|
|
|
%{python2_sitelib}/%{pypi_name}-*.egg-info
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%license LICENSE
|
|
|
|
%doc doc/build/html
|
2012-11-28 13:35:01 +00:00
|
|
|
|
|
|
|
%changelog
|