17
0
Files
python-stevedore/python-stevedore.spec
Ana Guerrero c72118b240 Accepting request 1321563 from devel:languages:python
- Update to 5.6.0
  * Deprecate warn_on_missing_entrypoint parameter
  * Add py.typed file
  * Unskip test
  * Add conflict resolution support
  * Make better use of super
  * typing: Remove use of _init_attributes (2/2)
  * typing: Remove use of _init_attributes (1/2)
  * typing: Remove unnecessary method subclass
  * docs: Update to use pyproject.toml
  * tests: Trivial fixups
  * Remove unnecessary type docstring field lists
  * typing: Add hints to tests
  * typing: Make better use of ParamSpec
  * typing: Add initial type hints
  * Deprecate verify_requirements flag
  * Remove use of mutable default param
  * trivial: Remove references to importlib_metadata
  * Enable ruff, ruff-format
  * Apply ruff, ruff-format
  * docs: Remove cruft from configuration files
  * pre-commit: Bump versions
  * reno: Update master for unmaintained/2024.1
  * Bump pyupgrade target to 3.10+
  * Migrate bandit options to pyproject.toml
  * pre-commit: Bump dependencies
  * Migrate setup configuration to pyproject.toml
  * Drop Python 3.9 support
  * Update master for stable/2025.2
- Remove empty file stevedore/tests/extension_unimportable.py

OBS-URL: https://build.opensuse.org/request/show/1321563
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-stevedore?expand=0&rev=49
2025-12-09 11:50:02 +00:00

80 lines
2.7 KiB
RPMSpec

#
# spec file for package python-stevedore
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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 https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-stevedore
Version: 5.6.0
Release: 0
Summary: Manage dynamic plugins for Python applications
License: Apache-2.0
URL: https://docs.openstack.org/stevedore/latest/
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 < 5.6.0
%endif
BuildArch: noarch
%python_subpackages
%description
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.
%prep
%autosetup -p1 -n stevedore-%{version}
# Remove empty file stevedore/tests/extension_unimportable.py
rm stevedore/tests/extension_unimportable.py
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc AUTHORS ChangeLog README.rst
%license LICENSE
%{python_sitelib}/stevedore
%{python_sitelib}/stevedore-%{version}.dist-info
%changelog