Package init for version 1.5.0

This commit is contained in:
wangdi 2021-07-13 17:54:42 +08:00
parent b2e607efb0
commit 6aab68d2c6
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,54 @@
Name: python-straight-plugin
Version: 1.5.0
Release: 1
Summary: Python plugin loader
License: BSD
URL: https://github.com/ironfroggy/straight.plugin/
# Version 1.5.0 was released on pypi but not tagged on github
# Use source from pypi
Source0: https://files.pythonhosted.org/packages/48/89/34ae6a87784d0b607af61c84a52c313c598f1d86ce5c1e9eb6da038fee5f/straight.plugin-1.5.0.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: /usr/bin/2to3
BuildRequires: python3-setuptools
%description
straight.plugin is a Python plugin loader inspired by twisted.plugin.
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.
%package -n python3-straight-plugin
Summary: Python plugin loader
%description -n python3-straight-plugin
straight.plugin is a Python plugin loader inspired by twisted.plugin.
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
%setup -q -n straight.plugin-%{version}
2to3 --write --nobackups .
%build
%py3_build
%install
%py3_install
%check
%{__python3} tests.py
%files -n python3-straight-plugin
%{python3_sitelib}/straight*
%changelog
* Tue Jul 13 2021 wangdi <wangdi@kylinos.cn> - 1.5.0-1
- Package init

Binary file not shown.