2012-11-28 13:35:01 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-stevedore
|
|
|
|
#
|
2025-03-19 21:34:15 +00:00
|
|
|
# Copyright (c) 2025 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
|
|
|
|
|
|
|
|
2025-03-19 21:34:15 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2012-11-28 13:35:01 +00:00
|
|
|
Name: python-stevedore
|
2025-03-19 21:34:15 +00:00
|
|
|
Version: 5.4.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
|
2021-05-02 17:26:15 +00:00
|
|
|
URL: https://docs.openstack.org/stevedore/latest/
|
2024-01-05 20:45:34 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/stevedore/stevedore-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module pbr >= 2.0.0}
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module Sphinx >= 2.0.0}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module testtools}
|
|
|
|
# /SECTION
|
|
|
|
BuildRequires: fdupes
|
|
|
|
Requires: python-importlib-metadata
|
|
|
|
Requires: python-pbr
|
|
|
|
%if "%{?python_provides}" == "python3"
|
|
|
|
Provides: python3-stevedore = %{version}
|
|
|
|
Obsoletes: python3-stevedore <= %{version}
|
|
|
|
%endif
|
2012-11-28 13:35:01 +00:00
|
|
|
BuildArch: noarch
|
2024-01-05 20:45:34 +00:00
|
|
|
%python_subpackages
|
2012-11-28 13:35:01 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2012-11-28 13:35:01 +00:00
|
|
|
%prep
|
2018-01-24 14:26:40 +00:00
|
|
|
%autosetup -p1 -n stevedore-%{version}
|
2012-11-28 13:35:01 +00:00
|
|
|
|
|
|
|
%build
|
2024-01-05 20:45:34 +00:00
|
|
|
%pyproject_wheel
|
2012-11-28 13:35:01 +00:00
|
|
|
|
2016-10-13 09:32:35 +00:00
|
|
|
%install
|
2024-01-05 20:45:34 +00:00
|
|
|
%pyproject_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2018-01-24 14:26:40 +00:00
|
|
|
|
|
|
|
%check
|
2024-01-05 20:45:34 +00:00
|
|
|
%pytest
|
2016-10-13 09:32:35 +00:00
|
|
|
|
2024-01-05 20:45:34 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%doc AUTHORS ChangeLog README.rst
|
2016-10-13 09:32:35 +00:00
|
|
|
%license LICENSE
|
2024-01-05 20:45:34 +00:00
|
|
|
%{python_sitelib}/stevedore
|
|
|
|
%{python_sitelib}/stevedore-%{version}.dist-info
|
2012-11-28 13:35:01 +00:00
|
|
|
|
|
|
|
%changelog
|