Accepting request 567254 from Cloud:OpenStack:Factory
- update to version 1.28.0 - move doc requirements to doc/requirements.txt - Remove -U from pip install - add bandit to pep8 job - Update reno for stable/pike - Remove setting of version/release from releasenotes - Add an ExtensionManager.items() method - Make openstackdocstheme an optional doc dependency - Avoid tox_install.sh for constraints support - Move reno to optional docs requirements - Remove duplicate optional requirement - Remove Pillow from test-requirements - Updated from global requirements OBS-URL: https://build.opensuse.org/request/show/567254 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-stevedore?expand=0&rev=29
This commit is contained in:
+32
-27
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-stevedore
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,26 +16,29 @@
|
||||
#
|
||||
|
||||
|
||||
%global pypi_name stevedore
|
||||
Name: python-stevedore
|
||||
Version: 1.25.0
|
||||
Version: 1.28.0
|
||||
Release: 0
|
||||
Summary: Manage dynamic plugins for Python applications
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
Url: http://docs.openstack.org/developer/stevedore/
|
||||
Source0: https://pypi.io/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
||||
Source0: https://files.pythonhosted.org/packages/source/s/stevedore/stevedore-1.28.0.tar.gz
|
||||
BuildRequires: openstack-macros
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-mock >= 2.0
|
||||
BuildRequires: python-pbr >= 2.0.0
|
||||
BuildRequires: python-reno >= 1.8.0
|
||||
BuildRequires: python-setuptools >= 16.0
|
||||
BuildRequires: python-testrepository >= 0.0.18
|
||||
Requires: python-pbr >= 2.0.0
|
||||
Requires: python-six >= 1.9.0
|
||||
Provides: python2-stevedore = %{version}
|
||||
BuildRequires: python2-mock
|
||||
BuildRequires: python2-pbr
|
||||
BuildRequires: python2-setuptools
|
||||
BuildRequires: python2-testrepository
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-mock
|
||||
BuildRequires: python3-pbr
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-testrepository
|
||||
Requires: python-pbr
|
||||
Requires: python-six >= 1.10.0
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Python makes loading code dynamically easy, allowing you to configure
|
||||
@@ -48,13 +51,13 @@ 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
|
||||
%package -n python-stevedore-doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Documentation
|
||||
BuildRequires: python-Sphinx
|
||||
BuildRequires: python-openstackdocstheme >= 1.16.0
|
||||
Group: Documentation/HTML
|
||||
BuildRequires: python2-Sphinx
|
||||
Provides: %{python_module stevedore-doc = %{version}}
|
||||
|
||||
%description doc
|
||||
%description -n python-stevedore-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
|
||||
@@ -68,31 +71,33 @@ dynamically loaded extensions.
|
||||
This package contains documentation in HTML format.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{pypi_name}-%{version}
|
||||
%autosetup -p1 -n stevedore-%{version}
|
||||
%py_req_cleanup
|
||||
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%python_build
|
||||
|
||||
# generate html docs
|
||||
%{__python2} setup.py build_sphinx
|
||||
# remove the Sphinx-build leftovers
|
||||
rm -rf html/.{doctrees,buildinfo}
|
||||
|
||||
%check
|
||||
%{__python2} setup.py test
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%python_install
|
||||
|
||||
%files
|
||||
%check
|
||||
%{python_expand rm -rf .testrepository
|
||||
$python setup.py test
|
||||
}
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python2_sitelib}/%{pypi_name}
|
||||
%{python2_sitelib}/%{pypi_name}-*.egg-info
|
||||
%{python_sitelib}/stevedore
|
||||
%{python_sitelib}/stevedore-*.egg-info
|
||||
|
||||
%files doc
|
||||
%files -n python-stevedore-doc
|
||||
%license LICENSE
|
||||
%doc doc/build/html
|
||||
|
||||
|
||||
Reference in New Issue
Block a user