diff --git a/python-straight-plugin.spec b/python-straight-plugin.spec new file mode 100644 index 0000000000000000000000000000000000000000..d2929990dfea268903c365ee42a45fd59d07b4c6 --- /dev/null +++ b/python-straight-plugin.spec @@ -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 - 1.5.0-1 +- Package init + diff --git a/straight.plugin-1.5.0.tar.gz b/straight.plugin-1.5.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..32b9575fafb34fc6255efc0d7614bc1915fc45fc Binary files /dev/null and b/straight.plugin-1.5.0.tar.gz differ