2018-09-04 06:19:28 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-straight-plugin
|
|
|
|
#
|
2025-06-13 11:07:22 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2018-09-04 06:19:28 +00:00
|
|
|
# Copyright (c) 2018 Neal Gompa <ngompa13@gmail.com>.
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-05-27 16:12:56 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-09-04 06:19:28 +00:00
|
|
|
#
|
|
|
|
|
2020-05-27 16:12:56 +00:00
|
|
|
|
2018-09-04 06:19:28 +00:00
|
|
|
Name: python-straight-plugin
|
|
|
|
Version: 1.5.0
|
|
|
|
Release: 0
|
|
|
|
Summary: Python plugin loader
|
|
|
|
License: MIT
|
2020-05-27 16:12:56 +00:00
|
|
|
Group: Development/Libraries/Python
|
2018-09-04 06:19:28 +00:00
|
|
|
URL: https://github.com/ironfroggy/straight.plugin/
|
2020-05-27 16:12:56 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/s/straight.plugin/straight.plugin-%{version}.tar.gz
|
2020-05-27 19:27:01 +00:00
|
|
|
# PATCH-FIX-UPSTREAM pip_no_plugins.patch gh#ironfroggy/straight.plugin#24 mcepl@suse.com
|
|
|
|
# Fixes pipe with no plugins installed
|
|
|
|
Patch0: pip_no_plugins.patch
|
2025-06-13 11:07:22 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2018-09-04 06:19:28 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-06-13 11:07:22 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2020-05-27 16:12:56 +00:00
|
|
|
BuildRequires: fdupes
|
2018-09-04 06:19:28 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2020-05-27 16:12:56 +00:00
|
|
|
BuildArch: noarch
|
2018-09-04 06:19:28 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
straight.plugin is a Python plugin loader inspired by twisted.plugin with two
|
|
|
|
important distinctions:
|
|
|
|
|
|
|
|
- Fewer dependencies
|
|
|
|
- Python 3 compatible
|
|
|
|
|
|
|
|
The system is used to allow multiple Python packages to provide plugins within
|
|
|
|
a namespace package, where other packages will locate and utilize. The plugins
|
|
|
|
themselves are modules in a namespace package where the namespace identifies
|
|
|
|
the plugins in it for some particular purpose or intent.
|
|
|
|
|
|
|
|
%prep
|
2020-05-27 20:06:12 +00:00
|
|
|
%setup -q -n straight.plugin-%{version}
|
|
|
|
%autopatch -p1
|
2025-06-13 11:24:40 +00:00
|
|
|
# import from imp https://github.com/ironfroggy/straight.plugin/pull/30
|
|
|
|
sed -i '/from imp import find_module/d' straight/plugin/loaders.py
|
2018-09-04 06:19:28 +00:00
|
|
|
|
|
|
|
%build
|
2025-06-13 11:07:22 +00:00
|
|
|
%pyproject_wheel
|
2018-09-04 06:19:28 +00:00
|
|
|
|
|
|
|
%install
|
2025-06-13 11:07:22 +00:00
|
|
|
%pyproject_install
|
2020-05-27 16:12:56 +00:00
|
|
|
%fdupes %{buildroot}%{python_sitelib}
|
2018-09-04 06:19:28 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
2025-06-13 11:07:22 +00:00
|
|
|
%{python_sitelib}/straight
|
2025-06-13 11:24:40 +00:00
|
|
|
%{python_sitelib}/straight[._]plugin-%{version}*-info
|
|
|
|
%{python_sitelib}/straight[._]plugin-%{version}*-nspkg.pth
|
2018-09-04 06:19:28 +00:00
|
|
|
|
|
|
|
%changelog
|